Skip to content

Add ASGI app export for HTTP deployment#108

Open
mgoldsborough wants to merge 1 commit into
ClickHouse:mainfrom
NimbleBrainInc:upstream-http-export
Open

Add ASGI app export for HTTP deployment#108
mgoldsborough wants to merge 1 commit into
ClickHouse:mainfrom
NimbleBrainInc:upstream-http-export

Conversation

@mgoldsborough

Copy link
Copy Markdown

Exposes the FastMCP application as an ASGI app, enabling HTTP-based deployment via uvicorn or other ASGI servers:

uvicorn mcp_clickhouse.mcp_server:app --host 0.0.0.0 --port 8000

This enables running the MCP server in containerized and cloud environments that require HTTP transport instead of stdio.

Changes

  • Added single line: app = mcp.http_app() at the end of mcp_server.py

Test plan

  • Verified server starts with uvicorn
  • Verified MCP protocol handshake works over HTTP
  • Existing stdio functionality unchanged

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.
@CLAassistant

CLAassistant commented Dec 24, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants