Skip to content

fix: cap mcp dependency to <2.0.0 - #56

Open
johnathanneals-dev wants to merge 1 commit into
benclawbot:masterfrom
johnathanneals-dev:fix/cap-mcp-sdk-version
Open

fix: cap mcp dependency to <2.0.0#56
johnathanneals-dev wants to merge 1 commit into
benclawbot:masterfrom
johnathanneals-dev:fix/cap-mcp-sdk-version

Conversation

@johnathanneals-dev

Copy link
Copy Markdown

Closes #55.

MCP SDK 2.0 removes the 1.x Server decorator API (@app.list_tools(), @app.call_tool(), mcp.server.stdio.stdio_server). A fresh install resolves mcp>=1.0.0 to 2.0.0 and the MCP server crashes on import.

Pins to <2.0.0 so existing installs keep working. A future PR can migrate to the 2.x API surface when ready.

Change: one line in pyproject.toml"mcp>=1.0.0""mcp>=1.0.0,<2.0.0".

MCP SDK 2.0 removes the 1.x Server decorator API that src/main.py
uses (@app.list_tools, @app.call_tool, mcp.server.stdio.stdio_server).
A fresh install resolves mcp>=1.0.0 to 2.0.0 and crashes on import.

Pin to <2.0.0 so existing installs keep working. A future PR can
migrate to the 2.x API surface when ready.
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.

Unbounded mcp>=1.0.0 dependency resolves to MCP SDK 2.0, breaking the MCP server on import

1 participant