fix: cap mcp dependency to <2 to prevent breaking API changes - #8017
Open
PiedPiper911 wants to merge 1 commit into
Open
fix: cap mcp dependency to <2 to prevent breaking API changes#8017PiedPiper911 wants to merge 1 commit into
PiedPiper911 wants to merge 1 commit into
Conversation
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.
Problem
Fixes #8014
The
mcpPython SDK released version 2.0.0 with breaking API changes:streamablehttp_clientrenamed tostreamable_http_clientread_timeout_secondschanged fromtimedeltatofloatinputSchema->input_schema,isError->is_error)Since
autogen-extdeclaresmcp>=1.11.0with no upper bound, fresh installs resolve tomcp==2.0.0and immediately break.Solution
Cap the dependency at
mcp>=1.11.0,<2inpyproject.tomlto prevent automatic upgrade to the incompatible 2.x line.This is the minimal short-term fix. A full MCP 2.0 migration can be done as a follow-up.
Changes
python/packages/autogen-ext/pyproject.toml: Changedmcp>=1.11.0tomcp>=1.11.0,<2