chore(fastmcp): pin fastmcp to >=3.2,<4#4
Closed
RobertoIskandarani wants to merge 1 commit into
Closed
Conversation
The adapter consumes the v3 surface (`fastmcp.FastMCP` plus `fastmcp.server.auth.require_scopes`); resolving against fastmcp 2.x fails at import. Tightening the lower bound makes the failure show up at resolution time instead of runtime, and adding an upper bound keeps fastmcp 4.x out until we re-verify the surface. Verified: 33/33 unit tests on fastmcp 3.2.4 and 3.3.0b2, and the calculator demo boots end-to-end against a local authserver with both versions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
fastmcp.FastMCPplusfastmcp.server.auth.require_scopes); the currentfastmcp>=2.0pin would resolve against fastmcp 2.x and crash at import.<4until we re-verify the surface against fastmcp 4.x (when it ships for Python — currently latest is 3.2.4 stable, 3.3.0b2 beta).Verification
pytest— 33/33 againstfastmcp==3.2.4, 33/33 againstfastmcp==3.3.0b2.demo/mcpserver.pyboots against a real authserver, exposes the protected-resource metadata, and rejects unauthenticated/mcprequests with the correctWWW-Authenticateheader on both versions.Notes
mcp1.28 (not yet released) will revertelicitationIdto snake_case, which will require an update toauthplane-mcp(the sibling adapter), as noted in its pyproject comment.Test plan
🤖 Generated with Claude Code