fix(fetch, git): cap mcp dependency to <2 to prevent ImportError on SDK 2.0.0 - #4573
Closed
cyforkk wants to merge 8 commits into
Closed
fix(fetch, git): cap mcp dependency to <2 to prevent ImportError on SDK 2.0.0#4573cyforkk wants to merge 8 commits into
cyforkk wants to merge 8 commits into
Conversation
mcp 2.0.0 renamed McpError to MCPError, breaking the import in server.py. Since pyproject.toml had no upper bound, unpinned launchers like uvx resolved to 2.0.0 and failed at startup. Cap the dependency to mcp>=1.23.0,<2 as a short-term fix. Long-term migration to the v2 API can follow separately. Closes modelcontextprotocol#4570 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…DK 2.0.0 mcp 2.0.0 renamed McpError to MCPError, breaking imports in servers that had no upper bound on the mcp dependency. Cap both fetch (>=1.1.3,<2) and git (>=1.0.0,<2) as a short-term fix. Related: modelcontextprotocol#4560, modelcontextprotocol#4570 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The lockfiles were stale after adding the <2 upper bound to the mcp dependency. Update them so CI's `uv sync --locked` step passes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The previous lockfile was generated with a mirror index URL which caused CI's `uv sync --locked` to fail. Regenerate with the default PyPI index so the lockfile is compatible with CI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Regenerate with the default PyPI index so the lockfile is compatible with CI's `uv sync --locked` step. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The previous lockfiles were generated with a mirror index URL (UV_DEFAULT_INDEX env var) which caused CI's `uv sync --locked` to fail. Regenerate with the default PyPI index. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Author
|
Superseded by #4577 which combines all Python server fixes into a single PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related: #4560, #4570
The
mcp-server-fetchandmcp-server-gitfail to start whenuvxresolves tomcpSDK 2.0.0, which renamedMcpErrortoMCPError. Bothpyproject.tomlfiles had no upper bound on themcpdependency.This PR caps:
mcp-server-fetch:mcp>=1.1.3→mcp>=1.1.3,<2mcp-server-git:mcp>=1.0.0→mcp>=1.0.0,<2Short-term fix to prevent breakage. Long-term migration to v2 API can follow separately.
Changes
src/fetch/pyproject.toml: added<2upper boundsrc/git/pyproject.toml: added<2upper boundChecklist
Co-Authored-By: Claude Fable 5 noreply@anthropic.com