Upgrade keycardai-mcp-fastmcp to FastMCP 3.0#89
Merged
Larry-Osakwe merged 2 commits intomainfrom Apr 1, 2026
Merged
Conversation
Upgrade keycardai-mcp-fastmcp from fastmcp>=2.14.0,<3.0.0 to fastmcp>=3.0.0. Key changes: - ctx.get_state()/ctx.set_state() are now async (FastMCP 3.0 breaking change) - grant decorator uses await ctx.set_state(..., serializable=False) - All examples, docs, and tests updated for async state access - Test mocks updated to use async functions for get_state/set_state
📦 Release PreviewThis analysis shows the expected release impact: 📈 Expected Version Changes📋 Package Details[
{
"package_name": "keycardai-mcp-fastmcp",
"package_dir": "packages/mcp-fastmcp",
"has_changes": true,
"current_version": "0.19.0",
"next_version": "0.20.0",
"increment": "MINOR"
}
]📝 Changelog PreviewThis comment was automatically generated by the release preview workflow. |
The example pyproject.toml files still pinned fastmcp<3.0.0, preventing them from resolving against the updated SDK.
📦 Release PreviewThis analysis shows the expected release impact: 📈 Expected Version Changes📋 Package Details[
{
"package_name": "keycardai-mcp-fastmcp",
"package_dir": "packages/mcp-fastmcp",
"has_changes": true,
"current_version": "0.19.0",
"next_version": "0.20.0",
"increment": "MINOR"
}
]📝 Changelog PreviewThis comment was automatically generated by the release preview workflow. |
kamil-keycard
approved these changes
Apr 1, 2026
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
fastmcpdependency from>=2.14.0,<3.0.0to>=3.0.0ctx.get_state()/ctx.set_state()to async (FastMCP 3.0 breaking change)serializable=FalseforAccessContextstorage since it's a non-serializable Python class used within a single requestBreaking changes for users
ctx.get_state("keycardai")→await ctx.get_state("keycardai")in tool functions@grantmust beasync defTest plan
mcp-fastmcptests passmcptests passset_state(serializable=False)works for class instances@mcp.tool()+@grant) works in 3.0Linear: AGE-101, AGE-102, AGE-103, AGE-104
🤖 Generated with Claude Code