From f16818ca0b53180f62b55e012c2ddd31ca73ec54 Mon Sep 17 00:00:00 2001 From: Mathew Goldsborough <1759329+mgoldsborough@users.noreply.github.com> Date: Wed, 24 Dec 2025 08:42:59 -1000 Subject: [PATCH] Add ASGI app export for HTTP deployment Exposes the FastMCP application as an ASGI app, enabling HTTP-based deployment via uvicorn or other ASGI servers: uvicorn mcp_clickhouse.mcp_server:app This enables running the MCP server in containerized and cloud environments that require HTTP transport instead of stdio. --- mcp_clickhouse/mcp_server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcp_clickhouse/mcp_server.py b/mcp_clickhouse/mcp_server.py index e90c2b11..e666960b 100644 --- a/mcp_clickhouse/mcp_server.py +++ b/mcp_clickhouse/mcp_server.py @@ -579,3 +579,7 @@ def _init_chdb_client(): ) mcp.add_prompt(chdb_prompt) logger.info("chDB tools and prompts registered") + + +# ASGI application for HTTP deployment (e.g., uvicorn mcp_clickhouse.mcp_server:app) +app = mcp.http_app()