diff --git a/README.md b/README.md index bbe4ba3..d0d6a2a 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ CLICKHOUSE_PASSWORD=clickhouse 3. Run `uv sync` to install the dependencies. To install `uv` follow the instructions [here](https://docs.astral.sh/uv/). Then do `source .venv/bin/activate`. -4. For easy testing, you can run `mcp dev mcp_clickhouse/mcp_server.py` to start the MCP server. +4. For easy testing with the MCP Inspector, run `fastmcp dev mcp_clickhouse/mcp_server.py` to start the MCP server. ### Environment Variables @@ -146,6 +146,9 @@ The following environment variables are used to configure the ClickHouse connect * `CLICKHOUSE_DATABASE`: Default database to use * Default: None (uses server default) * Set this to automatically connect to a specific database +* `CLICKHOUSE_MCP_SERVER_TRANSPORT`: Sets the transport method for the MCP server. + * Default: `"stdio"` + * Valid options: `"stdio"`, `"http"`, `"streamable-http"`, `"sse"`. This is useful for local development with tools like MCP Inspector. #### Example Configurations @@ -217,7 +220,7 @@ uv sync --all-extras --dev # install dev dependencies uv run ruff check . # run linting docker compose up -d test_services # start ClickHouse -uv run pytest tests +uv run pytest -v tests ``` ## YouTube Overview diff --git a/pyproject.toml b/pyproject.toml index 58f56e1..4c2092a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mcp-clickhouse" -version = "0.1.8" +version = "0.1.9" description = "An MCP server for ClickHouse." readme = "README.md" license = "Apache-2.0" diff --git a/uv.lock b/uv.lock index e480d09..4fd59cd 100644 --- a/uv.lock +++ b/uv.lock @@ -391,7 +391,7 @@ wheels = [ [[package]] name = "mcp-clickhouse" -version = "0.1.8" +version = "0.1.9" source = { editable = "." } dependencies = [ { name = "clickhouse-connect" },