chore(deps): update dependency fastmcp to v4 - #911
Conversation
|
8b06950 to
6a0a1d3
Compare
6a0a1d3 to
37cbaca
Compare
|
Superseded by #917, which bumps fastmcp 4 depends on 🤖 Generated with Claude Code |
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
>= 3.0.0, < 4.0.0→>=4.0.2, <4.1.0>= 3.0.0, < 4.0.0→>=4.0.2, <4.1.0Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
PrefectHQ/fastmcp (fastmcp)
v4.0.2: : Root AccessCompare Source
ClientGroupis now importable from the package root,from fastmcp import ClientGroup, with the same lazy export and install hint asClient, so integrations no longer couple to FastMCP's internal module layout.What's Changed
Enhancements ✨
Fixes 🐞
Docs 📚
Other Changes 🦾
Full Changelog: PrefectHQ/fastmcp@v4.0.1...v4.0.2
v4.0.1: : Come Back Any TimeCompare Source
ClientGroupnow reference-counts its context the wayClientdoes, so entering a connected group from a nested block or a concurrent task reuses the existing connections instead of raising. Adapters written againstClient's reentrancy can hold aClientGroupthe same way.What's Changed
Fixes 🐞
Docs 📚
Other Changes 🦾
Full Changelog: PrefectHQ/fastmcp@v4.0.0...v4.0.1
v4.0.0: : Four RealCompare Source
FastMCP 4 is stable. Five betas, five weeks, 23 contributors, and more than 80 pull requests later — the new protocol engine held up under real gateways, agent frameworks, and production servers, and most FastMCP 3 applications upgrade without code changes.
This is the FastMCP release for the new MCP. On July 28, MCP released the
2026-07-28protocol revision and the rewritten Python SDK v2 shipped the same day. FastMCP 4 is built on both: modern requests are sessionless and self-contained, so any replica behind an ordinary load balancer can answer them, and one FastMCP 4 deployment negotiates the best protocol version per connection — new clients get the new protocol, old clients keep working, andClient(url)does the same negotiation from the other side.The new protocol's capabilities come through FastMCP's usual high-level surfaces:
@mcp.tool(task=True)) run outside the request path via theio.modelcontextprotocol/tasksextension, shipped in the optionalfastmcp-taskspackage on the same Docket engine as FastMCP 3.add_extension(): a negotiated capability, additive request methods, tool-call interception, and a lifespan. Tasks are built this way, outside core.Mcp-Method/Mcp-Namerouting headers so gateways can route without parsing JSON-RPC.The framework grew alongside the protocol: dependency injection can bind a dependency to arguments of the call it serves (
Depends(get_account, user_id=CallArgument("owner"))) while keeping it out of the tool schema, andClientGroupmanages one client per server with collision-checked namespacing — each member negotiating its own protocol version.The beta period motivated a bunch of correctness work. Most of it was auth: hardened OAuth consent flows, issuer validation, and JWT verification, plus proxies that strip cookies and connection-owned headers at trust boundaries. The rest was durability and compatibility — encrypted task snapshots, serialized event-store writes, response caching handling empty results, errors, and versioned components, and dozens of smaller fixes from CodeMode to Python 3.14 compat.
Breaking changes: server-initiated sampling and roots are removed (no live connection exists to call back into mid-request),
ctx.elicit()is old-protocol-only, FastMCP 3's deprecated APIs are gone, MCP model fields are snake_case (with a warning compatibility bridge for the old names), and background tasks moved tofastmcp-tasks. Passing a bare string likeClient("server.py")to run local code is deprecated in favor ofPath, for removal in FastMCP 5.The upgrade guide covers every change and includes a copyable prompt for auditing an application with a coding agent.
Happy (context) engineering!
What's Changed
New Features 🎉
Breaking Changes⚠️
Enhancements ✨
valid_scopesparameter to OIDC proxy valid scopes by @Educg550 in #4660Security 🔒
Fixes 🐞
requiredorder deterministic by @Kludex in #4564Docs 📚
Dependencies 📦
Other Changes 🦾
New Contributors
Full Changelog: PrefectHQ/fastmcp@v3.4.7...v4.0.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.