Skip to content

fix: support MCP Python SDK v2 - #242

Open
fml09 wants to merge 1 commit into
cocoindex-io:mainfrom
fml09:fix/mcp-sdk-v2
Open

fix: support MCP Python SDK v2#242
fml09 wants to merge 1 commit into
cocoindex-io:mainfrom
fml09:fix/mcp-sdk-v2

Conversation

@fml09

@fml09 fml09 commented Jul 29, 2026

Copy link
Copy Markdown

Fresh installs now resolve mcp 2.0.0, but server startup still imports the removed mcp.server.fastmcp module.

  • Migrate FastMCP to MCPServer.
  • Require mcp>=2,<3 and refresh the lockfile.
  • Cover tool discovery and invocation through the v2 in-memory client.

This follows the official v1 to v2 migration guide.

Tests: uv run prek run --all-files

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.

1 participant