Adjust MCP server to be run in SSE mode and Docker #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces Docker support for the MCP ClickHouse server, including a Dockerfile, Docker Compose configuration, and related updates to the server code and documentation. It also adds an SSE transport mode to the server and updates the project dependencies.
Docker support:
Dockerfile
to build the MCP ClickHouse server with dependencies and environment setup for Docker. The image includes ClickHouse-related environment variables and exposes port 28123.docker-compose.yml
file to simplify running the server with Docker Compose, including environment variable configuration and port mapping.SSE transport mode:
main_sse
function inmcp_clickhouse/main.py
to support running the server with SSE transport.mcp_clickhouse/mcp_server.py
to allow specifying a server port, defaulting to 28123, and to support the SSE mode. [1] [2]Documentation updates:
README.md
with instructions for running the server using Docker Compose and configuring the MCP client for Docker.Dependency updates:
pyproject.toml
to bump the project version to 0.1.8, adduvicorn[standard]
as a dependency, and register a new script entry point for the SSE mode (mcp-clickhouse-sse
). [1] [2]