Skip to main content
Glama
by novvoo
health_routes.py•1.31 kB
"""Health check and info routes.""" from fastapi import APIRouter from mcp_server import __version__ router = APIRouter(tags=["health"]) @router.get("/") async def root(): """Root endpoint with server information.""" return { "name": "Gurddy MCP HTTP Server", "version": __version__, "protocol": "MCP over Streamable HTTP", "transports": { "http": { "description": "Single request/response with optional streaming", "endpoint": "/mcp/http", "method": "POST", "streaming": "Add 'Accept: text/event-stream' or 'X-Stream: true' header" } }, "examples": { "http_regular": "curl -X POST http://localhost:8080/mcp/http -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\",\"params\":{}}'", "http_streaming": "curl -X POST http://localhost:8080/mcp/http -H 'Content-Type: application/json' -H 'Accept: text/event-stream' -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\",\"params\":{}}'" }, "docs": "/docs - Interactive API documentation" } @router.get("/health") async def health(): """Health check endpoint.""" return {"status": "healthy", "service": "gurddy-mcp"}

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/novvoo/gurddy-mcp'

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