Skip to content

fix(deps): pin MCP SDK below v2 - #4

Open
HyperionD wants to merge 1 commit into
adoresever:mainfrom
HyperionD:fix/pin-mcp-sdk
Open

fix(deps): pin MCP SDK below v2#4
HyperionD wants to merge 1 commit into
adoresever:mainfrom
HyperionD:fix/pin-mcp-sdk

Conversation

@HyperionD

Copy link
Copy Markdown

Summary

Fixes MCP server startup failure caused by an incompatible mcp 2.x release.

Root cause

requirements.txt specified mcp>=1.0.0, which allowed pip to install mcp==2.0.0. The current server imports mcp.server.fastmcp, but that module is provided by the 1.x SDK and is unavailable in 2.0.0.

Changes

  • Constrain the MCP SDK to mcp>=1.0.0,<2.0.0.
  • Add a regression test preventing the dependency constraint from being relaxed to an incompatible major version.

Verification

  • python -m unittest discover -s tests -v
  • python -m pip check
  • mcp==1.29.0 imports FastMCP successfully.
  • mcp_server.py registers all 27 tools and starts successfully over stdio.

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