fix(time): cap mcp dependency to <2 to prevent ImportError on SDK 2.0.0 - #4571
Closed
cyforkk wants to merge 3 commits into
Closed
fix(time): cap mcp dependency to <2 to prevent ImportError on SDK 2.0.0#4571cyforkk wants to merge 3 commits into
cyforkk wants to merge 3 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>
The lockfile was stale after adding the <2 upper bound to the mcp dependency. Update it so CI's `uv sync --locked` step passes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The previous lockfile was 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>
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
Closes #4570
The
mcp-server-timefails to start whenuvxresolves tomcpSDK 2.0.0, which renamedMcpErrortoMCPError. Sincepyproject.tomlhad no upper bound on themcpdependency, all unpinned launchers broke as of 2026-07-28.This PR caps the dependency to
mcp>=1.23.0,<2as a short-term fix, matching the workarounduvx --with "mcp<2" mcp-server-timethat users confirmed working.A longer-term migration to the v2 API can follow separately.
Changes
src/time/pyproject.toml: added<2upper bound to themcpdependency.Checklist
Co-Authored-By: Claude Fable 5 noreply@anthropic.com