Skip to content

Commit cd6ebf9

Browse files
authored
FastMcp is now part of official mcp sdk (ClickHouse#17)
1 parent f9ee601 commit cd6ebf9

File tree

4 files changed

+26
-38
lines changed

4 files changed

+26
-38
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ CLICKHOUSE_PASSWORD=clickhouse
109109

110110
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`.
111111

112-
4. For easy testing, you can run `fastmcp dev mcp_clickhouse/mcp_server.py` to start the MCP server.
112+
4. For easy testing, you can run `mcp dev mcp_clickhouse/mcp_server.py` to start the MCP server.
113113

114114
### Environment Variables
115115

mcp_clickhouse/mcp_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import clickhouse_connect
55
from clickhouse_connect.driver.binding import quote_identifier, format_query_value
66
from dotenv import load_dotenv
7-
from fastmcp import FastMCP
7+
from mcp.server.fastmcp import FastMCP
88

99
from mcp_clickhouse.mcp_env import config
1010

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ license = "Apache-2.0"
77
license-files = ["LICENSE"]
88
requires-python = ">=3.13"
99
dependencies = [
10-
"mcp>=1.0.0",
10+
"mcp[cli]>=1.3.0",
1111
"python-dotenv>=1.0.1",
12-
"fastmcp>=0.4.0",
1312
"uvicorn>=0.34.0",
1413
"clickhouse-connect>=0.8.0",
1514
"pip-system-certs>=4.0",

uv.lock

+23-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)