Skip to main content
Glama
http_answer_gateway.py414 B
from httpx import AsyncClient from app.domain.models import Answer class HttpAnswerGateway: NO_PATH = "/no" def __init__(self, base_url: str) -> None: self.base_url = base_url self._client = AsyncClient(base_url=base_url) async def get_answer(self) -> Answer: resp = await self._client.get(self.NO_PATH) resp.raise_for_status() return Answer(**resp.json())

Latest Blog Posts

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/clafoutis42/no-mcp'

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