pypi fastmcp 4.2.0a4
v4.2.0a4: Skills to Pay the Bills

one hour ago

FastMCP 4.2.0a4 requires Python 3.11 or newer and adds Annotated dependencies. Depends(...) and built-ins such as CurrentContext() can now be declared as Annotated metadata, so a type alias like Config = Annotated[dict, Depends(get_config)] works across tools, resources, and prompts. Skill discovery over plain resources no longer lists a nested supporting SKILL.md as its own skill, and download_skill URIs now encode manifest paths.

Since a3, the redirect URI helpers normalize raw strings the way browsers read them, the joserfc and Authlib floors pick up security fixes, and fixes land for OpenAPI request bodies, CIMD redirect URIs, multi-select elicitation schemas, search indexing, and docstring parsing. Skills support remains experimental; this prerelease is intended for integration testing.

Thanks to our 68 contributors, including 40 first-time contributors.

What's Changed

Breaking Changes ⚠️

Enhancements ✨

Security 🔒

Fixes 🐞

Docs 📚

  • Consolidate skills docs into one Skills over MCP page by @zzstoatzz in #6049
  • Rewrite skills docs around Skill and SkillCatalogProvider by @zzstoatzz in #6066
  • Tighten skills docs examples by @zzstoatzz in #6070
  • Shorten the skills docs page by @zzstoatzz in #6079
  • Badge the skills page as 4.2.0 by @zzstoatzz in #6083
  • Consolidate skills examples around verified Skill values by @zzstoatzz in #6093
  • docs: add v4.2.0a1 changelog entries by @zzstoatzz in #6105
  • Add MCP tool annotations to get_file example by @gl1tchdust in #5976
  • Fix dead links in current documentation by @zzstoatzz and @Wilson0511 in #6142
  • docs: rename Horizon to FastMCP Gateway in current docs by @parkedwards in #5653
  • Document strict-mode handling of undeclared OpenAPI arguments by @zzstoatzz in #6169
  • docs: add v4.2.0a2 changelog entries by @zzstoatzz in #6224
  • docs(settings): explain what FASTMCP_DEBUG actually does by @zzstoatzz and @ianw in #6255
  • docs: pass referrers on outbound links, add organization schema and page descriptions by @madureira-gabriel in #6287
  • docs: add v4.2.0a3 changelog entries by @zzstoatzz in #6306
  • docs: preserve docs routing metadata and release guidance by @zzstoatzz in #6320
  • Correct how tools docs describe bytes return values by @DivyaNarahari97 in #6275

Other Changes 🦾

  • chore(deps): Update dependency ruff to v0.17.2 by @prefect-renovate[bot] in #6233
  • chore(deps): Pin dependencies by @prefect-renovate[bot] in #6064
  • Require patched joserfc by @zzstoatzz in #6371
  • Keep colon-terminated prose lines in docstring tool descriptions by @zzstoatzz, @jlx1999s, and @ptrailblazer89 in #6372

New Contributors

Full Changelog: v4.1.6...v4.2.0a4

Don't miss a new fastmcp release

NewReleases is sending notifications on new releases.