fastmcp.mintlify.app

FastMCP Updates

5/21/2025Updated 11/29/2025

Excerpt

FastMCP 2.13 “Cache Me If You Can” represents a fundamental maturation of the framework. After months of community feedback on authentication and state management, this release delivers the infrastructure FastMCP needs to handle production workloads: persistent storage, response caching, and pragmatic OAuth improvements that reflect real-world deployment challenges.💾 … The new consent screen prevents confused deputy and authorization bypass attacks discovered in earlier versions, while the OAuth proxy now issues its own tokens with automatic key derivation. RFC 7662 token introspection support enables enterprise auth flows, and path prefix mounting enables OAuth-protected servers to integrate into existing web applications. ... ⚡ **Response Caching Middleware**dramatically improves performance for expensive operations, while **Server lifespans**provide proper initialization and cleanup hooks that run once per server instance instead of per client session.✨ **Developer experience improvements**include Pydantic input validation, icon support, RFC 6570 query parameters for resource templates, improved Context API methods, and async file/directory resources. ... **Sampling API Fallback**tackles adoption challenges by letting servers generate completions server-side when clients don’t support the feature, encouraging innovation while maintaining compatibility. ... **Elicitation Support**enables dynamic server-client communication and “human-in-the-loop” workflows, allowing servers to request additional information during execution.📊 **Output Schemas**provide structured outputs for tools, making results more predictable and easier to parse programmatically.🛠️ **Enhanced HTTP Routing**with OpenAPI extensions support and configurable algorithms for more flexible API integration.This release includes a breaking change to ... FastMCP 2.9 ... … *MCP Middleware*brings a flexible middleware system for intercepting and controlling server operations - think authentication, logging, rate limiting, and custom business logic without touching core protocol code.✨ *Server-side type conversion*for prompts solves a major developer pain point: while MCP requires string arguments, your functions can now work with native Python types like lists and dictionaries, with automatic conversion handling the complexity.These features transform FastMCP from a simple protocol implementation into a powerful framework for building sophisticated MCP applications. Combined with the new

Source URL

https://fastmcp.mintlify.app/updates

Related Pain Points