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.

Functions

configure_root_logger([level, json_output])

Configure the root logger for the application.

health_check(_request)

Return health status.

main()

Run the MCP server.

setup_logger(name[, level, simple, json_output])

Create and configure a logger with structured JSON output.

Classes

HealthCheck()

Static health checks for Python, imports, storage, and GCS config.

JSONResponse(content[, status_code, ...])

Mount(path[, app, routes, name, middleware])

Request(scope, ~typing.Any], receive, ...)

Route(path, endpoint, *[, methods, name, ...])

Starlette([debug, routes, middleware, ...])

Creates an Starlette application.

async thoth.mcp.server.health_check(_request: Request) JSONResponse[source]

Return health status.

thoth.mcp.server.main() None[source]

Run the MCP server.