Skip to main content
Glama

Model Context Protocol Server

base.py559 B
from abc import ABC, abstractmethod from typing import Dict, Any, List class BaseModelProvider(ABC): """Base class for model providers""" @abstractmethod async def generate_response(self, prompt: str, context: Dict[str, Any]) -> str: """Generate a response using the model""" pass @abstractmethod async def validate_connection(self) -> bool: """Validate the connection to the model""" pass @abstractmethod async def close(self): """Close the model connection""" pass

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shekharmaheswari85/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server