FastMCP 4.2.1 release notes
FastMCP 4.2.1 was released on November 17, 2026. The latest version is 4.2.6.
Release notes
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 https://github.com/PrefectHQ/fastmcp/pull/6512
- Raise opentelemetry-api floor past traceparent ReDoS by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6513
- Remember OAuth consent per redirect URI and scope set by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6530
- Cache forwarded authorization server metadata in remote auth providers by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6531
- Refresh upstream_claims when the OAuth proxy transparently refreshes by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6532
- Normalize literal-query placeholder names in URI templates by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6533
- Quote tool names in generated SKILL.md invocations by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6534
- Keep provider required_scopes when a custom token_verifier is passed by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6535
- Add issuer binding to OAuth pre-registered clients by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6536
Fixes ๐
- Keep middleware edits to a returned CallToolResult by @Max17190 in https://github.com/PrefectHQ/fastmcp/pull/6520
- fix(resources): coerce template parameters from resolved hints by @67-luck in https://github.com/PrefectHQ/fastmcp/pull/6471
Enhancements โจ
- Allow py-key-value-aio 0.5.x by @strawgate in https://github.com/PrefectHQ/fastmcp/pull/6521
Docs ๐
- Add 4.2 to the what's new page and match the 4.2.0 changelog to the release by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6493
Other Changes ๐ฆพ
- Fix nightly upgrade checks: declare httpx, adopt ty 0.0.100 by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6517
- Give triage's assess agent public facts about the people on an issue by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6486
- Restore Marvin labeling and reopen disputed duplicates by @zzstoatzz in https://github.com/PrefectHQ/fastmcp/pull/6495
- chore(deps): Update dependency opentelemetry-api to v1.45.2 [SECURITY] by @prefect-renovate[bot] in https://github.com/PrefectHQ/fastmcp/pull/6505
- chore(deps): Update dependency dnspython to v2.9.2 [SECURITY] by @prefect-renovate[bot] in https://github.com/PrefectHQ/fastmcp/pull/6506
New Contributors
- @Max17190 made their first contribution in https://github.com/PrefectHQ/fastmcp/pull/6520
- @ratomirjovanovic made their first contribution in https://github.com/PrefectHQ/fastmcp/pull/6512
Full Changelog: https://github.com/PrefectHQ/fastmcp/compare/v4.2.0...v4.2.1
Source: GitHub release v4.2.1