Skip to content

Server

thoth.mcp.server

Thoth MCP Server - HTTP server for MCP protocol.

This module handles web traffic and endpoint setup. MCP tools are defined in tools.py.

logger = setup_logger(__name__) module-attribute

app = Starlette(routes=[Route('/health', endpoint=health_check), Route('/', endpoint=health_check), Mount('/mcp', app=(mcp.sse_app()))]) module-attribute

health_check(_request: Request) -> JSONResponse async

Return health status.

main() -> None

Run the MCP server.