Repository navigation
FastMCP 4.2.1 is a security and correctness patch on top of 4.2.0. It tightens OAuth and token handling: JWTs aren't accepted before their nbf, provider required_scopes survive a custom verifier, pre-registered OAuth clients can be pinned to their issuer, and consent, metadata forwarding and upstream claims in the OAuth proxy are hardened. It also raises the opentelemetry-api floor past a traceparent ReDoS. If you install with pip and also have opentelemetry-sdk, upgrade it alongside FastMCP (pip install -U fastmcp opentelemetry-sdk). In require_authorization_consent="remember" mode, users are asked for consent once more per client after upgrading.
Thanks to our 5 contributors, including 2 first-time contributors.
What's Changed
Security 🔒
- Reject JWTs whose nbf is in the future by @zzstoatzz and @ratomirjovanovic in #6512
- Raise opentelemetry-api floor past traceparent ReDoS by @zzstoatzz in #6513
- Remember OAuth consent per redirect URI and scope set by @zzstoatzz in #6530
- Cache forwarded authorization server metadata in remote auth providers by @zzstoatzz in #6531
- Refresh upstream_claims when the OAuth proxy transparently refreshes by @zzstoatzz in #6532
- Normalize literal-query placeholder names in URI templates by @zzstoatzz in #6533
- Quote tool names in generated SKILL.md invocations by @zzstoatzz in #6534
- Keep provider required_scopes when a custom token_verifier is passed by @zzstoatzz in #6535
- Add issuer binding to OAuth pre-registered clients by @zzstoatzz in #6536
Fixes 🐞
- Keep middleware edits to a returned CallToolResult by @Max17190 in #6520
- fix(resources): coerce template parameters from resolved hints by @67-luck in #6471
Enhancements ✨
- Allow py-key-value-aio 0.5.x by @strawgate in #6521
Docs 📚
- Add 4.2 to the what's new page and match the 4.2.0 changelog to the release by @zzstoatzz in #6493
Other Changes 🦾
- Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 by @zzstoatzz in #6517
- Give triage's assess agent public facts about the people on an issue by @zzstoatzz in #6486
- Restore Marvin labeling and reopen disputed duplicates by @zzstoatzz in #6495
- chore(deps): Update dependency opentelemetry-api to v1.45.2 [SECURITY] by @prefect-renovate[bot] in #6505
- chore(deps): Update dependency dnspython to v2.9.2 [SECURITY] by @prefect-renovate[bot] in #6506
New Contributors
- @Max17190 made their first contribution in #6520
- @ratomirjovanovic made their first contribution in #6512
Full Changelog: v4.2.0...v4.2.1