pypi / fastmcp
fastmcp
What changed in fastmcp 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
97 breaking42 security9 deprecations55 new APIs and options5 performance17 behavior and defaults154 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initfastmcp 4167 changes
Breaking changes 25
Certifi-backed server dependencies and optional SDK integrations now require certifi 2026.10.19 or later following the eMudhra CA compromise.
FastMCP 4 uses system trust by default; developers may need to update operating-system, container, custom, and installer trust stores because upgrading FastMCP alone is insufficient.
Search rejects patterns over 1,000 characters and stops after about a second.
Non-Bearer Authorization schemes are treated as missing authentication.
Sessions now expire after the MCP SDK's 30-minute idle default instead of never.
CodeMode requires Monty 1.1, which renames
max_duration_secstomax_feed_duration_secs.Client IDs are now qualified by source, creating new ownership scopes for existing MultiAuth sessions and tasks. Finish pending tasks before upgrading.
Path parameters reject
.and..segments to prevent dot-segment issues.Missing required OpenAPI path parameters now raise an error.
Prompts and resource templates now reject positional-only parameters.
Skill files must resolve inside their configured directories.
Missing and unexpected arguments are rejected at task submission.
Results returned after timeout deadlines are rejected.
The preview now requires a startup-URL session.
OAuthProxy revokes the upstream refresh token instead of sending its own token upstream.
OAuthProxy rejects self-contained ID-JAG tokens unless identity assertion is configured.
Unconstrained sequences no longer have an output schema inferred, preventing tools from sending images twice.
Proxies exclude Cookie from forwarded HTTP headers.
Elicitation works on handshake-era connections but raises on 2026-07-28 connections, which have no back-channel for server-initiated requests.
FastMCP 3's deprecated APIs are gone.
on_message, on_request, and on_notification now observe every inbound message, including notifications and requests that fail before reaching a handler.
Tool parameters that are positional-only are rejected.
Templated resource parameters are screened for path traversal by default.
Server-initiated roots are removed because no live connection exists for callbacks mid-request.
Server-initiated sampling is removed because no live connection exists for callbacks mid-request.
Security 18
Authorization now applies after component transforms, so transformed components are authorized before use.
OAuth client credentials can be bound to a configured issuer across fresh and cached-token flows. Users of ClientCredentialsOAuthProvider or PrivateKeyJWTOAuthProvider must set issuer to enable this protection.
Denied or disabled resources can no longer be served through matching templates.
CLI OAuth tokens are now persisted encrypted.
Client schema types are built with create_model and use bounded caches.
Component manager routes now use the server's auth provider.
Hashed tool lookups now apply transforms, enabled state, and auth.
Injected tools are now resolved through the server's tool lookup.
OpenAPI components send only declared arguments and retain configured headers.
$ref pointers are kept when inlining would produce an oversized schema.
Schema nesting is bounded before client type conversion.
Host/Origin protection settings now apply to the SSE transport.
Client CLI arguments are now passed literally to Windows .cmd wrappers.
Completion returns to its 4.0.5 behavior; the list-based visibility check is reverted because middleware simulation could let response caches serve hidden prompts to other clients.
Completion responses no longer include references the caller cannot list.
Google access tokens are kept out of request URLs.
GoogleTokenVerifier adds audience pinning.
Adds a provider-neutral role check for authorization.
Deprecations 4
A burst_capacity below 1 is deprecated.
Inferring stdio transport from a string is deprecated; pass a pathlib.Path for a script or build a StdioTransport.
Use Path instead of a bare string when passing a local server file to Client.
MCP model fields are snake_case; old names have a warning compatibility bridge.
New APIs and options 27
Adds a foundation for the SEP-2640 Skills extension.
Adds experimental Skills discovery to SkillsDirectoryProvider.
Proxy HTTP header forwarding can be configured.
HTTP header forwarding by proxies is now configurable.
Token introspection audiences can now be configured.
GoogleTokenVerifier and GoogleProvider now support TokenCache.
Upload retention in memory can now be configured.
An experimental JevSearchTransform is added.
Support is added for anthropic 1.x alongside 0.x.
ClientGroup is importable from the package root, so integrations no longer need to couple to FastMCP's internal module layout.
AccessToken initialization now accepts a subject field.
Register extensions that provide a negotiated capability, additive request methods, tool-call interception, and a lifespan.
Prompt and resource-template inputs support argument completion, with already-supplied arguments visible to the handler.
Dependency injection can bind a dependency to an argument of the call it serves while keeping that argument out of the tool schema.
Adds machine-to-machine client authentication for agents and services.
Manages one client per server with collision-checked namespacing; each member negotiates its own protocol version.
Background tasks are shipped in the optional fastmcp-tasks package.
Adds identity assertion for agents and services; SEP-990 identity assertion is beta.
Tools can request input such as approval or a missing field, then rerun with the client's answers available on the context.
Adds a key-value store for distributed client response caching.
Adds a routable transport header so gateways can route without parsing JSON-RPC.
Servers can provide cache hints.
Client exposes era-neutral server metadata.
Set task=True on @mcp.tool to run a tool outside the request path using the tasks extension.
Adds a telemetry interoperability mode for FastMCP.
Adds a switch to turn telemetry off.
Adds a valid_scopes parameter to OIDC proxy valid scopes.
Performance 5
JWT verifiers share JWKS refreshes instead of fetching on every unknown key ID.
Each template retains its compiled URI pattern while the shared cache is bounded, preventing dynamic proxies from growing process memory without restoring the 4,096-template performance cliff.
Compiled resource template patterns are cached without a size limit, so servers with thousands of templates read fast again.
Compiled URI template patterns are cached, making template reads faster than in 4.0.5.
HTTP server startup is faster.
Behavior and default changes 10
The upstream token auth method now defaults to none when there is no client secret, fixing public-client OAuth authentication.
Tool search uses Pydantic's regex engine, which does not support lookarounds or backreferences.
Nested fields in detailed CodeMode schemas are named.
Discovery failures are exposed to callers.
Client(url) negotiates the best protocol version with the server.
The SDK session manager drives the FastMCP lifespan.
Authorization challenges can name missing scopes and support incremental authorization.
JWTVerifier supports EdDSA verification.
A single server now handles sessionless 2026-07-28 and earlier session-based protocol eras through SDK negotiation.
Modern requests are self-contained, so any replica behind an ordinary load balancer can answer them.
Fixes and other changes 78
Ordinary requests now honor timeout settings in per-server MCP configuration.
Empty session visibility selections are now preserved.
A TimeoutError raised by a tool body's own code is no longer classified as the tool timeout.
Generator results from transform_fn are now materialized when run, fixing handling of generator transforms.
Preserves public metadata in built-in read contents.
Accepts ES256 and other RSA/EC algorithms for CIMD private_key_jwt assertions.
Uses the client timeout when resolving claimed results if no other timeout applies.
Fixes ctx.log() when extra contains names that are attributes of LogRecord.
The MCP-format inspect output follows pagination and escapes server metadata in its text summary.
Keeps fastmcp.json resolvable when deployment.cwd changes the working directory.
Data-backed File resources are named consistently with their MIME subtype.
Respects an explicit is_binary=False value.
FileUpload and session visibility are scoped to a stable client on MCP 2026-07-28.
Adds discovery of Goose Streamable HTTP extensions.
Reports an unbindable OAuth callback port instead of raising SystemExit.
The OAuth callback server no longer requires websockets.
Accepts private_key_jwt without a form client_id.
Python stdio child processes now run in UTF-8 mode.
Synchronous resource templates now run in the threadpool.
Preserves component metadata for list[ResourceContent] returns.
Valid schema defaults are hydrated while invalid defaults are preserved.
Preserves shared dependency scopes without optional task dependencies.
Treats non-string skill frontmatter descriptions as absent.
Raises ToolError when a tool with an output schema returns an unserializable value.
Preserves icons on transformed tools.
The CLI now honors an explicitly specified URL transport.
An unparseable proxy setting no longer aborts the update check.
Discovers linked skill folders again, including links outside the skills root; a skill's own files must still resolve inside the folder it links to.
The
--skip-sourceflag is now forwarded to theuv runsubprocess.Upstream HTTP errors from OpenAPI tools are treated as HTTP status errors.
Full Python 3.15 support is restored.
The server advertises resource_metadata only when a route serves it.
Startup failures are raised instead of leaving the call hanging; cleanup also runs when startup exits early.
Cancelling a finished task preserves its finished status.
Synchronous and asynchronous generator iteration stays within the dependency lifetime or dispatched invocation.
Strict tool input is validated in JSON mode.
The default burst capacity is now at least 1, avoiding a capacity below the supported minimum.
The client now decodes empty structured content into CallToolResult.data.
The CLI now reads fastmcp.json config files as UTF-8.
Explicit Field(title=...) values are now kept on parameters in the input schema.
Image jpg, svg, and tif formats now map to their canonical MIME types.
The CLI now reads MCP and fastmcp.json config files as UTF-8.
Referenced body fields are retained when a request body schema adds sibling properties.
Calls to task-enabled tools through ctx.fastmcp.call_tool now return the tool result instead of an empty task receipt, including when tools are hidden behind search transforms or CodeMode.
The check runs only list-specific middleware hooks, so rate limits, logging, and metrics see a single request per completion again.
Binary resource contents are preserved in the response cache.
A Client releases its session hold before awaiting when its context exits, preventing session leaks on cancellation.
Data-backed file names are encoded.
DNS resolver order is preserved when resolved IP addresses are deduplicated.
Enums and defaults are rendered in get_schema.
Schemas accept integral floating-point length counts and counts larger than any real length instead of failing.
Resource templates now support exploded list query parameters and comma-joined non-exploded values.
Non-JSON schema defaults and enums are rendered in the markdown tool serializer.
OIDC discovery configuration is cached.
Model references in prefixItems are rewritten.
Template literals now match whether clients send them raw or percent-encoded.
String length and pattern constraints are retained when a format is set.
Strict declarations using Field(strict=True), StrictInt, or a strict model config are honored again for direct calls and task submission, preventing silent coercion.
OpenAPI dictionary request bodies are preserved.
Clients now follow empty pagination cursors in lists.
The local provider applies transforms in get_tasks.
JSON scalar request bodies are encoded.
The ordering of meta.fastmcp.versions is deterministic.
OpenAPI multipart string arrays are sent as repeated fields, fixing their default encoding.
OpenAPI query explode defaults are corrected.
Servers reject malformed pagination cursor offsets.
OpenAPI raw body content types are preserved.
Skills frontmatter is parsed with yaml.safe_load, falling back to the line parser.
Non-positive upstream token expiries are rejected.
OpenAPI whole-body arguments no longer clobber same-named HTTP parameters.
Unfinished Monty callbacks are cleaned up when execution ends.
Multi-server clients with legacy-only backends avoid unnecessary startup retries.
Task timing values are serialized in a way strict clients accept.
ClientGroup now reuses existing connections when entered from a nested block or concurrent task, matching Client reentrancy.
Fixed proxy forwarding of MCP transport headers, so proxied requests preserve those headers.
OpenAPI discriminator subtypes are flattened into request bodies.
Response caching now handles empty list results and does not cache errors; component metadata and versioned-component partitioning are also addressed.
Middleware response limits are aligned with output schemas.
fastmcp 3207 changes
Breaking changes 72
Denied concrete resources are no longer served by matching templates.
A skill's
SKILL.mdmust stay inside its skill folder.OAuth metadata and JWKS fetches can use a mandated corporate proxy while preserving custom CA certificates; fetches are refused when no proxy is configured rather than sent directly.
Invalid tool arguments now raise fastmcp.ValidationError.
Rejects unsafe redirect schemes and unregistered DCR redirect URIs.
Adds an explicit >=1.0.1 dependency floor so installs cannot resolve to versions affected by CVE-2026-48710.
Caps tool calls at 50 per execute block by default; max_tool_calls=None opts out.
Proxies forward initialize upstream, so the downstream handshake succeeds only after the upstream server initializes and upstream failures are surfaced.
When constructed without limits, the provider now applies a 30-second duration and 100 MB memory baseline; limits=None opts out.
Rejects dot-segment paths that could otherwise bypass prefix checks.
Removes configurable deduplication from AggregateProvider; it always warns.
Background tasks are scoped to the authorization context rather than the MCP session, so they survive session churn and remain tied to the user who started them.
Raises on unhandled content types in sampling handler dispatch chains.
Google uses the user ID claim sub for client_id instead of aud.
CSP was removed from tool metadata and retained only on resources.
Removed; use add_transform with ToolTransform.
Replace this removed server API with create_proxy.
call_tool no longer accepts task=True; it transparently polls tasked calls to completion and returns their result.
Replace client-side call_tool(..., task=True) with plain call_tool or call_tool_task.
Use call_tool_task instead of passing task=True to client-side call_tool.
Client now defaults to mode="auto"; use mode="legacy" for servers relying on on_initialize, per-session state, or ctx.elicit().
Raises on 2026-07-28 sessionless connections because logging/setLevel requires session state.
ctx.list_roots was removed; ask for roots through the guard pattern or take file paths as tool arguments.
ctx.sample was removed; call an LLM directly from the server for generation.
Use create_proxy in place of the removed as_proxy server API.
Server calls must provide response_type; omitting it or passing None raises TypeError.
ctx.elicit raises on modern connections, which the default client now negotiates; rewrite the tool, branch on protocol version, or use legacy client mode.
Removed from Context; take paths as tool arguments or ask via the guard pattern.
Removed from Context; call an LLM server-side or use the guard pattern when the caller's model is needed.
State no longer persists across calls on sessionless connections because each request uses a fresh connection.
CurrentDocket moved to fastmcp_tasks.dependencies.
CurrentWorker moved to fastmcp_tasks.dependencies.
The setting and its object mode were removed; decorators always return the original function with metadata attached.
The tool exclude_args parameter was removed; use Depends() instead.
Removed; hide a parameter from the tool schema by injecting it with a Depends(factory) default.
The environment variable setting decorator mode was removed.
The sampling_handler argument was removed; passing it raises TypeError naming the migration.
The sampling_handler_behavior argument was removed.
The sampling_handler constructor parameter was removed.
Removed; use create_proxy from fastmcp.server, passing the target as the first positional argument.
Imports from this module were removed; update imports to the supported locations.
This component shim was removed; update imports to the supported locations.
TaskConfig moved to this module; update its import.
Use httpx2 in place of httpx for exception handling and custom HTTP client integrations handed to FastMCP.
Removed; mount is a live composition rather than a one-time snapshot, so register components directly on the parent if you need frozen-copy behavior.
Replace this removed server API with mount.
When different from base_url, issuer_url now supplies OAuth metadata issuer and minted token and authorization-response iss claims; existing clients may need one-time re-authorization.
Construct McpError with code and message keywords instead of positional ErrorData; catching it is unchanged.
Middleware now sees notifications and unroutable requests, so guard middleware that assumes routed requests.
A direct mount composes the child in-process, and the child's lifespan and middleware now run.
The as_proxy keyword was removed; wrap the child with create_proxy and mount the proxy to retain the MCP-client execution boundary.
Use namespace instead of the removed prefix keyword when calling mount.
The prefix keyword was removed; use namespace instead.
The mount prefix keyword was replaced by namespace.
Use mount in place of the removed import_server server API.
Clients need one-time re-authorization when OAuthProxy or derived providers mint tokens with issuer_url different from base_url.
FastMCP.remove_tool was removed; use local_provider.remove_tool, which raises KeyError rather than NotFoundError for a missing tool.
Removed; it was a no-op. Hide tools with disable instead.
Clients matching the old -32002 resource-not-found code need to be updated.
The core missing-resource wire error code changed from -32002 to -32602; clients matching the numeric code must update.
Templated resource parameter values are screened for traversal, absolute paths, and null bytes before handlers run; exempt legitimate parameters with ResourceSecurity.
This FastMCP setting was removed.
The tool serializer parameter was removed; return a ToolResult instead.
The tool serializer parameter was removed from tool decorators and constructors; return a ToolResult for control over serialization.
The sse_read_timeout parameter was removed; set the timeout through Client or use a custom httpx_client_factory for finer control.
The sse_read_timeout parameter was removed from StreamableHttpTransport.
Drop task= from resource and prompt decorators.
The task keyword is now tool-only; passing it to resource, resource-template, or prompt decorators raises TypeError.
TaskConfig moved from fastmcp.server.tasks to fastmcp.utilities.tasks.
Background tasks are provided by a registered extension; install the tasks extra and register TasksExtension or task-enabled tools fail at startup.
Register TasksExtension with mcp.add_extension for a task=True tool or the server will not start.
Templated resources that legitimately accept .. or absolute paths are exempted from the changed path behavior.
Security 19
Regex tool search is bounded in time and pattern length.
Schemas are inlined when their pointers pass through alias definitions.
CIMD cache growth is bounded.
Auth challenges now include resource metadata.
Cookie is excluded from forwarded HTTP headers.
Resource paths reject unsafe parameter values.
NAT64, 6to4, Teredo, and ISATAP transition addresses can no longer bypass the SSRF allow-list to reach private IPv4 targets.
Validates Host and Origin before session handling to block DNS rebinding against localhost-bound servers.
Guards silent consent against AS-in-the-middle attacks so a malicious authorization server cannot silently approve consent it was not meant to handle.
Partitions cached responses by access token, closing a gap where different users could see each other's cached responses.
AuthKit automatically binds the token audience to the resource URL per RFC 8707, closing a token-reuse gap across MCP resources.
Validates the actual decoded base64 data size instead of trusting the client-reported size.
The proxy client no longer forwards inbound HTTP headers to unrelated remote servers, preventing headers intended for one server from leaking to another.
Azure validation now uses identifier_uri as the expected audience for Entra v2.0 tokens.
Consent cookies are now capped as an LRU to prevent unbounded growth and reverse proxy header overflow.
FastMCP has a Command Injection vulnerability - Gemini CLI
FastMCP: Missing Consent Verification in OAuth Proxy Callback Facilitates Confused Deputy Vulnerabilities
FastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerability
Added a server-wide resource_security default for templated resource path screening.
Deprecations 5
Calling ctx.elicit() without response_type is deprecated and emits a warning.
CamelCase reads still work but warn and are planned for removal; migrate reads to snake_case.
Ordinary client logging through ctx.info emits an SDK-level MCPDeprecationWarning, but continues to work.
Set FASTMCP_MCP_CAMELCASE_COMPAT=false to make remaining camelCase reads raise AttributeError before the compatibility shims are removed.
Set mcp_camelcase_compat = False to make remaining camelCase reads raise AttributeError before the compatibility shims are removed.
New APIs and options 28
Adds Hugging Face OAuth provider support for public and private apps, PKCE, Dynamic Client Registration, and CIMD.
Adds a remote command flag for TLS certificate verification.
Sets the FastMCP-issued token lifetime independently of the upstream token lifetime; without an upstream refresh token, the lifetime is capped to match.
Adds the --host option to the dev CLI.
Adds the --log-panel option to the dev CLI.
Adds the --no-log-panel option to the dev CLI.
A standalone bridge connects stdio-only MCP hosts to servers hosted over HTTP, with automatic OAuth for HTTPS and support for bearer tokens and custom headers.
Adds spans covering the sampling step and tool execution.
FastMCP can now use pre-bound HTTP sockets.
Treats tokens as expired a configured number of seconds early to close refresh races.
ToolResult accepts is_error to return a structured error result through CallToolResult.isError instead of raising and losing structured content.
The OAuth server metadata endpoint now also answers at this alias.
Adds the extra_authorize_params option to WorkOSProvider.
Adds the valid_scopes option to WorkOSProvider.
Adds first-class support for Azure AD B2C user flows.
The constructor accepts raw capability flags through
experimental_capabilities.A dependency-light distribution ships the client and transport layer without the server stack, for client-only installs.
Supports a default prefill value.
Adds a public API to update the proxy's required scopes after initialization, including when scope requirements are determined at runtime.
Instrumentation complies with MCP semantic conventions, instruments list operations, and enriches delegate spans on proxy servers with backend attributes.
Lets sync tools opt out of the default thread-pool execution when they hold thread-local state or are bound to a specific thread.
Tool errors accept a
log_levelparameter to control how they're logged.Adds response_description to ctx.elicit().
Adds response_title to ctx.elicit().
Adds a Keycloak OAuth provider for enterprise authentication and local development.
Auth providers can override protected resource base URLs.
Added as the client API for immediately obtaining a task handle when a caller wants to monitor or cancel background work.
Importing fastmcp_tasks anywhere in the process enables client task support and makes Client advertise the capability.
Behavior and default changes 7
Logs refresh-token cache misses instead of failing silently, making these events visible to developers.
The proxy now forwards ping requests upstream.
Hoists
$defsintroduced byArgTransformto the schema root.Active HTTP transports are terminated before lifespan shutdown.
Parameter descriptions are extracted automatically from docstrings, so tool signatures can document their parameters.
Client now defaults to mode="auto", negotiating the newest protocol shared with the server.
Runs on session-based connections but never runs on the sessionless protocol, which has no initialize handshake.
Fixes and other changes 76
Update custom, system, and installer trust stores too; upgrading FastMCP alone is insufficient.
Restores CIMD private_key_jwt authentication for OAuthProxy deployments at a bare origin by validating client assertions against the exact token endpoint advertised in authorization server metadata.
Fixes Azure scope fallback.
No longer mutates the caller's schema.
Serializes deep object query parameters.
Unsupported keys in a JWKS no longer cause JWTVerifier to reject every token, including tokens correctly signed by supported keys in the same set.
Makes transformed tool required order deterministic.
Restores acceptance of traffic that worked before the 3.4.3 Host/Origin guard change; deployments can still opt in to the guard with explicit trusted hosts and origins.
Fixes a TypeError on cache misses caused by a mismatched call_next parameter.
Preserves required discriminator tags during schema conversion.
Rejects empty environment variable keys.
Async rate-limiting middleware callbacks are handled correctly.
Forwards identity-provider authentication errors to the MCP client instead of displaying an HTML error page.
Guards against recursive references during JSON schema conversion.
Bounds the default discovery timeout and exposes it on provider wrappers.
Round-trips path values containing reserved characters.
Tool result serialization now honors this setting.
No longer causes KeyError during session teardown.
Arguments are validated against declared types.
Private, non-critical JWS header parameters are accepted during JWT validation, while unsupported critical headers remain rejected.
Azure scopes echoed back to MCP clients are now unprefixed.
MCP config files are now read as UTF-8.
Resources created from templates now preserve annotations, meta, title, and icons.
Resource templates with query parameters now work on proxied servers.
The stateless flag is now forwarded in the uv run path.
Component imports no longer reach auth and task primitives through fastmcp.server, avoiding server/provider stack loading and circular imports; existing server-facing imports remain compatible.
Falls back gracefully for unsupported regex patterns.
Plain
mcp.toolapp-only tools are no longer completely hidden.Mounted servers enter their own lifespan so startup and shutdown logic works when composed into a larger server.
Honors the upstream refresh token expiry.
Fixes the OCI provider for 3.x installs.
Preserves blank query string values in OpenAPI routing.
Multipart and form-urlencoded requests are no longer sent as JSON.
Exits cleanly when the session stream closes.
No longer crashes on non-TextContent error responses.
Fixes
raise_on_errorhandling for tool tasks.Resource template parameter names can contain hyphens.
Sampling from background tasks works correctly.
Self-mounting is rejected to prevent infinite recursion.
Allows an upstream client ID to be used directly without DCR.
Windows startup no longer crashes on non-UTF-8 console output.
CIMD clients receive valid_scopes instead of required_scopes.
Hardens cleanup when clients disconnect forcibly.
Fixes state handling in Client.new().
Fixes scalar returns from elicitation.
Retries when an LLM returns text instead of calling final_response.
Caps consecutive final_response validation retries.
Strips title fields from tool schemas that Gemini 2.5 Flash rejects.
No longer leaks thought parts and provides more helpful errors on empty responses.
HTTP kwargs are no longer passed when the transport is unspecified.
Handles Python keywords, boolean schemas, empty enums, and name collisions without crashing.
Fixes list[dict] return types producing Root() instead of dictionaries.
Fixes prompt errors.
Fixes resource auto-serialization.
Fixes wildcard resource template parameters in mounted servers.
Materializes generators before converting results and handles bytes gracefully.
Fixes RetryMiddleware so it retries tool errors.
Fixes task.wait() hanging indefinitely when a task enters input_required.
Prevents pydantic 2.13 from leaking the _WrappedResult docstring into tool output schemas.
Fixes crashes with synchronous functions and prevents schema mutation.
Pins fakeredis below 2.35.0 in the tasks extra as a stopgap for an ImportError that caused installs to fail at startup.
Azure audience validation now accepts both client_id and identifier_uri, covering default Azure AD v2 tokens and custom Application ID URIs.
allowed_client_redirect_uris on OAuthProxy can now be changed.
Proxy timeouts were added and networking in apps dev was modernized.
The deprecated fallback was removed so asyncio.iscoroutinefunction no longer emits deprecation warnings on Python 3.14.
Background task context forwarding was unified and concurrent dependency bugs were fixed.
Boolean property schemas in JSON Schema parsing were fixed.
The client no longer crashes on error responses with empty or non-text content from third-party servers.
Cognito access tokens are now validated using client_id instead of the absent aud claim.
FastAPI TestClient compatibility and lifespan re-initialization were fixed.
JWT expiration validation now uses explicit None checks.
OpenAPI 3.0 nullable fields in tool input schemas are converted to JSON Schema's type array instead of leaking nullable: true.
Form submissions now preserve unchecked boolean checkbox values.
ResponseLimitingMiddleware no longer breaks tools with outputSchema.
Server variable templates in OpenAPI base URLs are now substituted with their defaults.
upstream_claims is now propagated in load_access_token.
fastmcp 25 changes
Security 5
FastMCP OAuth Proxy token reuse across MCP servers
FastMCP updated to MCP 1.23+ due to CVE-2025-66416
FastMCP Auth Integration Allows for Confused Deputy Account Takeover
FastMCP vulnerable to reflected XSS in client's callback page
FastMCP vulnerable to windows command injection in FastMCP Cursor installer via server_name