Repository navigation
commerce-common: cap the mcp extras below 2 so mcp_server imports - #42
Open
vishalhabib99 wants to merge 1 commit into
Open
vishalhabib99 wants to merge 1 commit into
vishalhabib99 wants to merge 1 commit into
Conversation
The [sdk], [mcp] and [dev] extras allowed mcp>=1.2, so a fresh install resolved mcp 2.3.0, where mcp.server.fastmcp no longer exists and commerce_common.mcp_server fails to import. requirements.txt already pins mcp==1.29.0; this keeps installs through the extras on 1.x too.
Author
|
Hi, just checking whether this one is on your radar. A fresh |
Author
|
Friendly ping on this one. Happy to rebase or change anything that would help it land. Thanks! |
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.
commerce-common/README.mdsays the[mcp]extra installs whatmcp_server.pyneeds. The[sdk],[mcp]and[dev]extras allowmcp>=1.2, so a fresh install today resolves mcp 2.3.0.commerce_common/mcp_server.py(like both managed-agent servers) importsfrom mcp.server.fastmcp import Context, FastMCP, a module mcp 2.x removed:requirements.txtalready pinsmcp==1.29.0, so the README's main install path is unaffected. Only installs through the extras break, such as a project that listscommerce-common[mcp]as a dependency.This caps the three extras at
mcp>=1.2,<2, until the servers move tomcp.server.mcpserver.MCPServer.Checked (main at fd4d592, Python 3.12, clean venvs):
[mcp]→ mcp 2.3.0 → the import above fails[mcp],[sdk]and[dev]each resolve mcp 1.30.0, andimport commerce_common.mcp_serversucceedspytest commerce-common/testsplus both managed-agent MCP server test suites, installed fromrequirements-dev.txt: 175 passed