Skip to content

fix(python): cap mcp<2 dependency in fetch, git, and time servers - #4657

Closed
AbhiPra24 wants to merge 1 commit into
modelcontextprotocol:mainfrom
AbhiPra24:fix/python-servers-mcp2-compat
Closed

fix(python): cap mcp<2 dependency in fetch, git, and time servers#4657
AbhiPra24 wants to merge 1 commit into
modelcontextprotocol:mainfrom
AbhiPra24:fix/python-servers-mcp2-compat

Conversation

@AbhiPra24

@AbhiPra24 AbhiPra24 commented Aug 17, 2026

Copy link
Copy Markdown

Summary

Fixes #4570, #4580, #4600, #4560.

Problem

src/time/pyproject.toml, src/git/pyproject.toml, and src/fetch/pyproject.toml declared unpinned mcp>=... dependencies without an upper bound <2. When mcp 2.0.0 is resolved (e.g. via uvx), the servers crash on startup with ImportError: cannot import name 'McpError' due to breaking changes in MCP Python SDK 2.0.0.

Solution

  • Bounded mcp dependency to <2 across fetch, git, and time servers (pyproject.toml and updated lockfiles uv.lock).

Verification

  • pytest executed across all three servers:
    • src/fetch: 20 passed
    • src/git: 43 passed
    • src/time: 38 passed

cc @olaservo for review when available. Thank you!

@olaservo

Copy link
Copy Markdown
Member

Thank you for the PR! This was superseded by #4663, released as 2026.8.18, which caps mcp<2 across all three Python servers and raises the floor to 1.29.0. Closing as superseded.

@olaservo olaservo closed this Aug 19, 2026
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.

time: ImportError on startup with mcp SDK 2.0.0 (McpError renamed to MCPError)

2 participants