fix(deps): cap mcp below 2.0.0 to prevent streamable-http break - #70
Open
syf2211 wants to merge 1 commit into
Open
fix(deps): cap mcp below 2.0.0 to prevent streamable-http break#70syf2211 wants to merge 1 commit into
syf2211 wants to merge 1 commit into
Conversation
mcp 2.0.0 removed the streamablehttp_client alias that mcp2cli imports. Without an upper bound, fresh uvx/CI installs resolve mcp 2.x and the streamable-http transport fails at import time. Cap the dependency at <2 until a full MCP SDK v2 migration lands. Fixes knowsuchagency#68
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.
Summary
Cap the
mcpdependency at<2so fresh installs no longer resolve MCP SDK 2.x, which breaks mcp2cli's streamable-http transport at import time.Motivation
Fixes #68. MCP SDK
2.0.0removed thestreamablehttp_clientalias that mcp2cli imports in three places. Because the published constraint was onlymcp>=1.0, newuvx/CI environments resolvemcp2.x and fail with:Stdio and SSE paths are unaffected at import time, but streamable-http users lose the transport entirely. With
--transport auto, theImportErroris caught and SSE is attempted instead, producing a misleading405from the server.Changes
pyproject.toml:mcp>=1.0,<2uv.lockFull MCP SDK v2 migration (import renames and runtime surface checks) can be tracked separately.
Tests
Result: 352 passed
Notes
3.3.2) may be needed after merge souvx mcp2clipicks up the cap.Fixes #68