feat(mcp): migrate to mcp 2.x (MCPServer) (#10)

Co-authored-by: claude <[email protected]>
This commit was merged in pull request #10.
This commit is contained in:
2026-09-10 20:51:43 -04:00
committed by claude
parent b63b623514
commit 66ba683ee1
4 changed files with 50 additions and 20 deletions
+2 -7
View File
@@ -1,11 +1,6 @@
# MCP server
# Pinned below 2.0: mcp 2.0.0 removed `mcp.server.fastmcp`, which this
# server imports. The unpinned floor pulled 2.0.0 into a rebuild on
# 2026-08-11 and crash-looped zerto-docs with
# "ModuleNotFoundError: No module named 'mcp.server.fastmcp'".
# 2.0 also drops the [fastmcp] extra. Migrating to the 2.x API is a
# deliberate piece of work — do not lift this pin without it.
mcp[fastmcp]>=1.0.0,<2
# 2.x: no [fastmcp] extra; FastMCP -> MCPServer (see docs_mcp/server.py).
mcp>=2,<3
pydantic>=2.0
httpx>=0.27