Skip to main content
Glama

MCP Chat

chat.py515 B
from core.agent_service import AgentService from mcp_client import MCPClient class Chat: def __init__(self, agent_serve: AgentService, clients: dict[str, MCPClient]): self.agent_serve: AgentService = agent_serve self.clients: dict[str, MCPClient] = clients async def run( self, query: str, ) -> str: response = await self.agent_serve.chat( query=query, mcp_clients=self.clients, ) return response.final_output

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/Abdullah-1121/MCP-2'

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