Repository navigation
fix(deps): keep FastMCP 2 on the MCP 1.x SDK - #307
Open
Elon-Jiang wants to merge 1 commit into
Open
Elon-Jiang wants to merge 1 commit into
Elon-Jiang wants to merge 1 commit into
Conversation
This branch has not been deployed
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
A fresh
uv sync --all-extras --python 3.12on maine3df9006selects FastMCP 2.14.1 with MCP SDK 2.3.0.from evoagentx.workflow import WorkFlowthen fails before any workflow runs:FastMCP 2's dependency has a lower bound but allows SDK 2, whose exception/API names changed. This is inside the installed FastMCP package, distinct from the EvoAgentX-owned exception import already fixed in #239.
Change
Keep the existing FastMCP 2 integration on
mcp<2in thetoolsandallextras and the matching flat requirements. No core API or tool implementation changes.Add a real local stdio regression: import the public workflow entry point, start a Python FastMCP server, discover its arithmetic tool through EvoAgentX's
MCPClient, and call it throughToolkit/MCPTool(2 + 3 -> 5). There are no transport/server mocks or external MCP/model services.Validation
uv sync --locked --all-extrasselects MCP 1.30.0 without a manual SDK override. Four related checks pass; full suite 270 passed, 9 warnings.requirements.txtresolution selects MCP 1.30.0. Built-wheel metadata contains the SDK upper bound for bothtoolsandall. Distribution build and new-test Ruff checks pass.Prepared with AI assistance. No independent human review is claimed.