Skip to main content
Glama
main.py719 B
from contextlib import asynccontextmanager from fastapi import FastAPI from fastapi.responses import JSONResponse from graph_service.config import get_settings from graph_service.routers import ingest, retrieve from graph_service.zep_graphiti import initialize_graphiti @asynccontextmanager async def lifespan(_: FastAPI): settings = get_settings() await initialize_graphiti(settings) yield # Shutdown # No need to close Graphiti here, as it's handled per-request app = FastAPI(lifespan=lifespan) app.include_router(retrieve.router) app.include_router(ingest.router) @app.get('/healthcheck') async def healthcheck(): return JSONResponse(content={'status': 'healthy'}, status_code=200)

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/getzep/graphiti'

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