unstale

pypi / fastmcp-slim

fastmcp-slim

What changed in fastmcp-slim 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

132 breaking43 security12 deprecations63 new APIs and options7 performance31 behavior and defaults171 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

fastmcp-slim 4235 changes

Breaking changes 32

  • JWTs with an nbf time in the future are rejected.

    4.2.1release notes

  • Remembered consent is now tracked per redirect URI and scope set; users in remember mode are asked for consent once more per client after upgrading.

    4.2.1release notes

  • Client and server extras now require a patched Authlib.

    4.2.0release notes

  • FastMCP now requires patched joserfc.

    4.2.0release notes

  • The resource-era list_skills helper is renamed list_skill_summaries.

    4.2.0release notes

  • Strict input validation now rejects OpenAPI tool arguments that are not declared.

    4.2.0release notes

  • Python 3.11 or newer is now required.

    4.2.0release notes

  • Skill is now a storage-neutral authoring value with a name, description, instructions, and files; it can be built in code or loaded from a directory or package.

    4.2.0release notesdocs

  • Certifi-backed server dependencies and optional SDK integrations now require certifi 2026.10.19 or later following the eMudhra CA compromise.

    4.1.3release notes

  • A tool with an output schema now raises ToolError when it returns an unserializable value.

    4.1.2release notes

  • Search now rejects patterns over 1,000 characters and stops after about a second.

    4.1.1release notes

  • Non-Bearer Authorization schemes are treated as missing authentication.

    4.1.0release notes

  • CodeMode requires Monty 1.1, where max_duration_secs is renamed to max_feed_duration_secs.

    4.1.0release notes

  • HTTP sessions now expire after the MCP SDK's 30-minute idle default instead of never.

    4.1.0release notes

  • Client identities are now qualified by source, creating new ownership scopes for existing sessions and tasks; finish pending tasks before upgrading.

    4.1.0release notes

  • OpenAPI path parameters reject . and .. segments.

    3.4.9, 4.1.0release notesrelease notes

  • A required path parameter that is missing now raises an error.

    4.1.0release notes

  • Positional-only parameters are rejected.

    4.1.0release notes

  • Skill files must resolve inside their configured directories.

    4.1.0release notes

  • Missing and unexpected arguments are rejected when submitting tasks.

    4.1.0release notes

  • The dev apps preview now requires a startup-URL session.

    3.4.8, 4.0.11release notesrelease notes

  • A cancelled task can no longer stop the worker.

    4.0.11release notes

  • Rejects ID-JAG tokens unless identity assertion is configured.

    4.0.4release notes

  • Multipart string-array values are encoded as repeated fields instead of using the previous default encoding.

    4.0.4release notes

  • Calls raise on modern connections, which is what a default client now negotiates; use a guard tool, branch on protocol version, or keep clients in legacy mode.

    3.0.0, 4.0.0upgrade guiderelease notes

  • ctx.sample is deprecated; push features are unavailable on 2026 connections.

    4.0.0release notes

  • Deprecated FastMCP 3 APIs and compatibility shims have been removed.

    4.0.0release notes

  • Cookie is excluded from forwarded HTTP headers.

    3.4.8, 4.0.0release notesrelease notes

  • on_message, on_request, and on_notification now observe every inbound message, including notifications and requests that fail before reaching a handler. Guard on message type if needed.

    3.0.0, 4.0.0upgrade guiderelease notes

  • Tool definitions with positional-only parameters are rejected.

    4.0.0release notes

  • Server-initiated sampling and roots were removed because there is no live connection to call back into mid-request.

    4.0.0release notes

  • Background tasks are provided by the io.modelcontextprotocol/tasks extension in a separate package. Install the tasks extra and register TasksExtension or task-enabled tools cause startup failure.

    3.0.0, 4.0.0upgrade guiderelease notes

Security 29

  • OAuth pre-registered clients can be bound to their issuer.

    4.2.1release notes

  • Provider required scopes are preserved when a custom token verifier is passed.

    4.2.1release notes

  • Generated SKILL.md invocations quote tool names.

    4.2.1release notes

  • Upstream claims are refreshed when the OAuth proxy transparently refreshes.

    4.2.1release notes

  • Authorization now covers hashed app-tool names and synthesized Prefab resources.

    4.2.0release notes

  • Read a skill with the FastMCP client; the method verifies every file's size and digest.

    4.2.0release notesdocs

  • Reading skill content verifies that its advertised frontmatter matches.

    4.2.0release notes

  • Completion no longer suggests values for prompts or templates that a caller cannot see.

    4.2.0release notes

  • Skill limits are checked before directory and remote files are read.

    4.2.0release notes

  • Skills pass through proxies when skills=True; they also namespace under mounts, list across ClientGroup, and respect AuthMiddleware.

    4.2.0release notesdocs

  • FastMCP 4 uses system trust by default; update operating-system, container, custom, and installer trust stores because upgrading FastMCP alone is insufficient.

    4.1.3release notes

  • Set issuer to bind OAuth client credentials to a configured issuer across fresh and cached-token flows; upgrading alone does not enable this protection.

    4.1.2release notessecurity advisory

  • Authorization now applies after component transforms, so transformed components are checked before being served.

    3.4.10, 4.1.2release notesrelease notessecurity advisory

  • Denied resources no longer fall through to matching templates, preventing disabled resources from being served.

    4.1.2release notes

  • CLI OAuth tokens are now persisted in encrypted form.

    4.1.0release notes

  • Component manager routes now use the server's auth provider.

    3.4.8, 4.0.11release notesrelease notes

  • Hashed tool lookups now apply transforms, enabled state, and auth.

    3.4.8, 4.0.11release notesrelease notes

  • Injected tools are now resolved through the server's tool lookup.

    3.4.8, 4.0.11release notesrelease notes

  • OpenAPI components send only declared arguments and retain configured headers.

    3.4.8, 4.0.11release notesrelease notes

  • Schema inlining keeps $ref pointers when inlining would produce an oversized schema.

    3.4.8, 4.0.11release notesrelease notes

  • Host and Origin protection settings now apply to the SSE transport.

    3.4.8, 4.0.11release notesrelease notes

  • Client CLI arguments are passed literally to Windows .cmd wrappers.

    3.4.8, 4.0.11release notesrelease notes

  • Completion returns to its 4.0.5 behavior, reverting the list-based visibility check that could let a response cache serve hidden prompts to other clients.

    4.0.8release notes

  • OAuthProxy revokes the upstream refresh token instead of sending its own token upstream.

    4.0.8release notes

  • Completion answers only reference prompts and templates the caller can list.

    4.0.6release notes

  • Google access tokens are kept out of request URLs.

    4.0.6release notes

  • Client data is kept out of tool validation warnings.

    4.0.4release notes

  • Non-positive upstream token expiries are rejected.

    4.0.4release notes

  • Templated resource parameters are screened for path traversal by default.

    4.0.0release notes

Deprecations 6

  • The 4.1 skills API, including the old providers in this module, is deprecated and will be removed in 4.3; the old providers still work and warn with their replacements.

    4.2.0release notes

  • The 4.1 skills API, including helpers in this module, is deprecated and will be removed in 4.3; the old helpers still work and warn with their replacements.

    4.2.0release notes

  • The wire model formerly named Skill is now named MCPSkill; the old import remains available until 4.3.

    4.2.0release notes

  • A burst_capacity below 1 is deprecated.

    4.0.11release notes

  • Passing a bare string path to Client to infer a stdio transport is deprecated and warns; use Path(...) or StdioTransport, as the behavior is removed in FastMCP 5.

    3.0.0, 4.0.0upgrade guiderelease notes

  • MCP model fields are now snake_case; old names have a warning compatibility bridge.

    4.0.0release notes

New APIs and options 37

  • Dependencies can be declared in an Annotated parameter while preserving the parameter's real type.

    4.2.0release notes

  • The TTL for background task execution is now configurable.

    4.2.0release notes

  • A dependency can own the tool argument it reads through CallArgument.

    4.2.0release notes

  • List skills across servers in a client group.

    4.2.0docs

  • FastMCP dev apps now support the npm_config_registry override.

    4.2.0release notes

  • Add --skills to fastmcp list to discover skills.

    4.2.0release notesdocs

  • Add KeystoneTokenVerifier for authentication.

    4.2.0release notes

  • Load a skill from a directory.

    4.2.0docs

  • Load a skill from a package.

    4.2.0docs

  • Clients can read skills and their files as ordinary resources using skill URIs.

    4.2.0docs

  • Serve skills on a server through SkillCatalogProvider; skills are exposed as ordinary resources and can be discovered through the Skills extension.

    4.2.0release notesdocs

  • Serve skills without loading their files.

    4.2.0release notes

  • Serve skills stored in object storage or a database, reading files on client request.

    4.2.0docs

  • Servers expose skills/list to clients that support the experimental Skills extension, with a hashed manifest per skill.

    4.2.0release notesdocs

  • Serve skills from a directory on a server, exposing them as ordinary resources and supporting discovery through the Skills extension.

    4.2.0release notesdocs

  • Install a skill into an agent's skills folder.

    4.2.0release notesdocs

  • Adds a foundation for the SEP-2640 Skills extension.

    4.1.2release notes

  • Adds experimental Skills discovery to SkillsDirectoryProvider.

    4.1.2release notes

  • HTTP header forwarding by proxies is now configurable.

    4.1.0release notes

  • Token introspection audiences can now be configured.

    4.1.0release notes

  • GoogleTokenVerifier and GoogleProvider now support TokenCache.

    4.1.0release notes

  • Retention of uploads in memory can now be configured.

    4.1.0release notes

  • An experimental JevSearchTransform is available.

    4.0.6release notes

  • ClientGroup is importable from the package root with the same lazy export and install hint as Client, so integrations no longer need to depend on FastMCP's internal module layout.

    4.0.2release notes

  • Extensions can register a negotiated capability, additive request methods, tool-call interception, and a lifespan.

    4.0.0release notes

  • Servers can answer argument-completion requests for prompt and resource-template inputs, with already-supplied arguments visible to the handler.

    4.0.0release notes

  • Dependency injection can bind a dependency to arguments of the call it serves while keeping the bound argument out of the tool schema.

    4.0.0release notes

  • Adds machine-to-machine client authentication.

    4.0.0release notes

  • Manages one client per server with collision-checked namespacing, while each member negotiates its own protocol version.

    4.0.0release notes

  • Adds server-side identity assertion support for agents and services using SEP-990.

    4.0.0release notes

  • Authorization challenges include the scopes needed for incremental authorization.

    4.0.0release notes

  • Tools can request input such as approval or a missing field, then rerun with the client's answers available on the context.

    4.0.0release notes

  • Adds a routable transport header so gateways can route requests without parsing JSON-RPC.

    4.0.0release notes

  • The task=True option runs tools as background tasks through the optional fastmcp-tasks package.

    4.0.0release notes

  • OAuthProxy adds RFC 9207 issuer responses.

    4.0.0release notes

  • Adds a provider-neutral role-checking authentication API.

    4.0.0release notes

  • Adds server-level cache hints for infrastructure integrations.

    4.0.0release notes

Performance 7

  • Forwarded authorization server metadata is cached.

    4.2.1release notes

  • JWT verifiers share JWKS refreshes instead of fetching on every unknown key ID.

    3.4.9, 4.1.0release notesrelease notes

  • Every compiled resource template pattern is cached without a size limit, so servers with thousands of templates read fast again.

    4.0.8release notes

  • Compiled URI template patterns are cached, making resource template reads faster.

    4.0.7release notes

  • Multi-server clients with legacy-only backends avoid unnecessary startup retries.

    4.0.3release notes

  • Lightweight imports avoid loading MCP and CLI stacks.

    4.0.0release notes

  • HTTP server startup is faster.

    4.0.0release notes

Behavior and default changes 12

  • Background task logging is allowed even when there is no session.

    4.2.0release notes

  • Colon-terminated prose lines are retained in tool descriptions generated from docstrings.

    4.2.0release notes

  • The command bypasses proxy environment variables when listing tools.

    4.2.0release notes

  • Telemetry spans now report JSON-RPC error codes and request ids, making request failures easier to identify.

    4.2.0release notes

  • Templated MCPMixin resources are registered as resource templates.

    4.1.8release notesrelease notes

  • The default burst capacity is now at least 1.

    4.0.11release notes

  • Detailed CodeMode schemas name nested fields.

    4.0.6release notes

  • FileSystemProvider discovery failures are exposed.

    4.0.6release notes

  • Supports anthropic 1.x alongside 0.x.

    4.0.4release notes

  • CallArgument resolution is supported for background tasks.

    4.0.0release notes

  • The default mode is auto, negotiating the newest protocol both sides share. Against a FastMCP server this is the sessionless 2026-07-28 era; use mode="legacy" for session-based behavior.

    3.0.0, 4.0.0upgrade guiderelease notes

  • JWTVerifier supports EdDSA verification.

    4.0.0release notes

Fixes and other changes 112

  • Middleware edits to a returned CallToolResult are kept.

    4.2.1release notes

  • Template parameters are coerced from resolved hints.

    4.2.1release notes

  • Structured content is preserved on bulk tool results.

    4.2.0release notes

  • The server advertises the MCP Apps extension only when it serves an app.

    4.2.0release notes

  • A missing required argument now returns invalid params.

    4.2.0release notes

  • Skill listing follows empty pagination cursors so additional pages are not skipped.

    4.2.0release notes

  • The SSE endpoint no longer sends a second response after its stream.

    4.2.0release notes

  • A timeout that fires before a synchronous tool's thread starts is accepted.

    4.2.0release notes

  • Object schemas without a type now retain additionalProperties during hydration.

    4.1.8release notes

  • Apps development log retention is now bounded.

    4.1.8release notes

  • Async-generator tools can now run as background tasks.

    4.1.8release notes

  • Failed authorization forms are no longer reread.

    4.1.8release notes

  • The whole body is sent when a body $ref with siblings cannot be flattened.

    4.1.8release notes

  • The client timeout no longer caps the HTTP read timeout.

    4.1.8release notes

  • Code Mode search limits are honored after BM25 ranking.

    4.1.8release notes

  • The proxy now receives the transport so it can forward server-initiated requests.

    4.1.8release notes

  • Filesystem component construction failures are isolated.

    4.1.8release notes

  • GitHub sessions are preserved across transient verification failures.

    4.1.8release notes

  • Schema hydration now handles mutually recursive types.

    4.1.8release notes

  • A caller-provided OAuth httpx client factory is preserved when verify is set.

    4.1.8release notes

  • Revocation ownership is kept separate from user identity so revocation works for the client that owns the token.

    4.1.8release notes

  • PingMiddleware no longer errors when the client has no back-channel.

    4.1.8release notes

  • Postponed annotations are resolved when prompts are rendered.

    4.1.8release notes

  • Prompt argument titles are carried through PromptArgument and proxies.

    4.1.8release notes

  • OpenAPI resource templates with non-identifier path parameters are now readable.

    4.1.8release notes

  • Proxies relay the client's sampling result unchanged.

    4.1.8release notes

  • The CLI now forwards path, stateless, and log-level settings to SDK MCPServer servers.

    4.1.8release notes

  • Log levels for sessionless clients are stored on the connection.

    4.1.8release notes

  • Single-server tool transforms are applied before tag filters.

    4.1.8release notes

  • Mutable defaults are isolated between transformed tool calls.

    4.1.8release notes

  • OpenAPI hydration now handles wrapped non-object responses when validate_output=False.

    4.1.8release notes

  • Per-server MCP config timeouts are honored for ordinary requests.

    4.1.3release notes

  • Empty session visibility selections are preserved instead of being lost.

    4.1.3release notes

  • A TimeoutError raised by a tool body's own code is no longer classified as the tool timeout.

    4.1.3release notes

  • Generator results from transform_fn are materialized when run, fixing generator transforms.

    4.1.3release notes

  • The upstream token auth method now defaults to none when there is no client secret, fixing public-client OAuth authentication.

    4.1.3release notes

  • CIMD private_key_jwt assertions now accept ES256 and other RSA/EC algorithms.

    4.1.2release notes

  • Falls back to the client timeout when resolving claimed results.

    4.1.2release notes

  • Fixes ctx.log() failures when extra contains names of LogRecord attributes.

    4.1.2release notes

  • The MCP format of fastmcp inspect now follows pagination.

    4.1.2release notes

  • Keeps fastmcp.json resolvable when deployment.cwd changes the working directory.

    4.1.2release notes

  • Data-backed File resources are named consistently with their MIME subtype.

    4.1.2release notes

  • An explicit is_binary=False is now respected.

    4.1.2release notes

  • FileUpload and session visibility are scoped to a stable client on MCP 2026-07-28.

    4.1.2release notes

  • Adds discovery of Goose Streamable HTTP extensions.

    4.1.2release notes

  • An unbindable OAuth callback port is reported instead of causing SystemExit.

    4.1.2release notes

  • The OAuth callback server no longer requires websockets.

    4.1.2release notes

  • Accepts private_key_jwt without a form client_id.

    4.1.2release notes

  • Python stdio child processes now run in UTF-8 mode.

    4.1.2release notes

  • Built-in read contents preserve public metadata.

    4.1.2release notes

  • Component metadata is preserved for list[ResourceContent] returns.

    4.1.2release notes

  • Valid schema defaults are hydrated while invalid defaults are preserved.

    4.1.2release notes

  • Non-string skill frontmatter descriptions are treated as absent.

    4.1.2release notes

  • Icons are preserved on transformed tools.

    4.1.2release notes

  • The CLI now honors an explicitly selected URL transport.

    4.1.2release notes

  • An unparseable proxy setting no longer aborts the update check.

    4.1.1release notes

  • Discovers skill folders that are links again, including links outside the skills root; a skill's own files must still resolve inside the linked folder.

    4.1.1release notes

  • Relative URLs are resolved against the server origin.

    4.1.0release notes

  • Output schemas are found across all tools/list pages.

    4.1.0release notes

  • Responses to dict and nested-list elicitation choices are now validated.

    4.1.0release notes

  • The --skip-source option is now forwarded to the uv run subprocess.

    4.1.0release notes

  • The stdio transport now advertises the same list_changed capabilities as other transports.

    4.1.0release notes

  • Upstream HTTP errors are treated as HTTP status errors.

    4.1.0release notes

  • Full Python 3.15 support is restored.

    4.1.0release notes

  • Tool search uses Pydantic's regex engine, which does not support lookarounds or backreferences.

    4.1.0release notes

  • The server advertises resource_metadata only when a route actually serves it.

    4.1.0release notes

  • Startup failures are raised instead of leaving the caller hanging.

    4.1.0release notes

  • Strict tool input is validated in JSON mode.

    4.1.0release notes

  • Cancelling a finished task no longer changes its status.

    4.1.0release notes

  • Tool results returned after timeout deadlines are rejected.

    4.1.0release notes

  • get_tool, get_resource, and get_prompt now respect include_unversioned=False.

    4.1.0release notes

  • writeOnly properties are omitted from OpenAPI tool output schemas.

    4.1.0release notes

  • The client now decodes empty structured content into CallToolResult.data.

    4.0.11release notes

  • Explicit Field(title=...) values on tool parameters are retained in the input schema.

    4.0.11release notes

  • Image jpg, svg, and tif formats now map to canonical MIME types.

    4.0.11release notes

  • The CLI now reads MCP and fastmcp.json config files as UTF-8.

    4.0.11release notes

  • Runtime tracking for mounted extensions is fixed.

    4.0.11release notes

  • Referenced body fields are retained when a request body schema adds sibling properties.

    4.0.11release notes

  • Calls to task-enabled tools from another tool run in the foreground and return the result instead of an empty task receipt.

    4.0.10release notes

  • The destructor tolerates a transport whose construction failed.

    4.0.10release notes

  • Task-enabled tools are registered with the task backend even when hidden by search transforms or CodeMode, allowing them to work behind those features.

    4.0.10release notes

  • Each template retains its compiled URI pattern for its lifetime while the shared cache remains bounded, preventing dynamic proxies from growing process memory without restoring the 4,096-template performance cliff.

    4.0.9release notes

  • The visibility check runs only list-specific middleware hooks, so rate limits, logging, and metrics see a single request per completion.

    4.0.7release notes

  • Binary resource contents are preserved in the response cache.

    4.0.6release notes

  • A Client releases its session hold before awaiting when its context exits, preventing a cancelled exit from leaking the session.

    4.0.6release notes

  • Data-backed file names are encoded.

    4.0.6release notes

  • get_schema renders enums and defaults.

    4.0.6release notes

  • String length and pattern constraints are preserved when a format is set.

    4.0.6release notes

  • JSON schemas accept integral float counts such as minLength 2.0 and counts larger than any real length, instead of failing to load.

    4.0.6release notes

  • The markdown tool serializer renders non-JSON schema defaults and enums.

    4.0.6release notes

  • OIDC discovery configuration is cached.

    4.0.6release notes

  • OpenAPI model references in prefixItems are rewritten.

    4.0.6release notes

  • Resource templates match literals whether clients send them raw or percent-encoded, and support exploded or comma-joined list query parameters.

    4.0.6release notes

  • Strict parameters declared with Field(strict=True), StrictInt, or a strict model config are honored again on direct calls and task submission, preventing silent coercion.

    4.0.5release notes

  • The local provider now applies transforms in get_tasks.

    4.0.4release notes

  • Version entries are now ordered deterministically.

    4.0.4release notes

  • Dictionary request bodies are preserved rather than altered during OpenAPI handling.

    4.0.4release notes

  • JSON scalar request bodies are encoded correctly.

    4.0.4release notes

  • OpenAPI query parameter explode defaults are corrected.

    4.0.4release notes

  • Raw body content types are preserved during OpenAPI handling.

    4.0.4release notes

  • Whole-body arguments no longer overwrite HTTP parameters with matching names.

    4.0.4release notes

  • Servers reject malformed pagination cursor offsets.

    4.0.4release notes

  • Clients now follow empty pagination cursors when listing results.

    4.0.4release notes

  • Frontmatter is parsed with yaml.safe_load, falling back to the line parser.

    4.0.4release notes

  • Unconstrained sequences no longer have an inferred output schema, preventing images from being sent twice.

    4.0.3release notes

  • Task timing values are serialized so strict clients no longer reject them.

    4.0.3release notes

  • Unfinished Monty callbacks are cleaned up when execution ends.

    4.0.3release notes

  • ClientGroup now reference-counts its context, allowing nested or concurrent entries to reuse existing connections instead of raising.

    4.0.1release notes

  • The client supports the modern protocol in multi-server clients.

    4.0.0release notes

  • Fixes proxy forwarding of MCP transport headers.

    4.0.0release notes

  • Response caching no longer caches error results and can serve empty-list results.

    4.0.0release notes

  • Response caching preserves component metadata and correctly partitions cache entries for versioned components.

    4.0.0release notes

fastmcp-slim 3224 changes

Breaking changes 100

  • FastMCP's HTTP stack now requires certifi 2026.10.19 or later. Update custom, system, and installer trust stores too; upgrading FastMCP alone is insufficient.

    3.4.11release notes

  • Denied concrete resources are no longer served by matching templates.

    3.4.10release notes

  • 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.

    3.4.6release notes

  • Rejects unsafe redirect schemes and unregistered DCR redirect URIs.

    3.4.3release notes

  • Adds an explicit >=1.0.1 floor so installs can no longer resolve to a version affected by CVE-2026-48710.

    3.4.1release notes

  • Caps tool calls at 50 per execute block by default; max_tool_calls=None opts out.

    3.4.0release notes

  • When constructed without limits, applies a 30-second duration and 100 MB memory baseline; limits=None opts out.

    3.4.0release notes

  • Rejects dot-segment paths that could bypass prefix checks.

    3.3.0release notes

  • Raises on unhandled content types in sampling handler dispatch chains instead of silently passing them through.

    3.2.4release notes

  • Google authentication now uses the user ID from sub for client_id instead of the app ID from aud.

    3.2.1release notes

  • CSP is no longer included in tool metadata; it remains on resources.

    3.2.1release notes

  • add_tool_transformation(...) is removed.

    3.0.0upgrade guide

  • Replace the removed API with create_proxy.

    3.0.0upgrade guide

  • Caching wrapper model names correct the Cachable spelling to Cacheable; the old names have no compatibility alias.

    3.0.0upgrade guide

  • Replace client-side call_tool(..., task=True) with plain call_tool or call_tool_task.

    3.0.0upgrade guide

  • Use call_tool_task instead of the removed task=True argument to call_tool.

    3.0.0upgrade guide

  • The client now defaults to mode="auto"; use mode="legacy" for servers relying on legacy behavior.

    3.0.0upgrade guide

  • client.call_tool(..., task=True) is removed.

    3.0.0upgrade guide

  • client.ping() returns bool on handshake-era connections, but on the sessionless 2026-07-28 era it is not routed and raises MCPError: Method not found; pin mode="legacy" if health checks depend on it.

    3.0.0upgrade guide

  • Raises on sessionless 2026-07-28 connections because logging/setLevel requires session state.

    3.0.0upgrade guide

  • Use create_proxy in place of the removed as_proxy API.

    3.0.0upgrade guide

  • ctx.elicit(...) is era-gated in 4.0 and raises on modern connections, which Client negotiates by default.

    3.0.0upgrade guide

  • Server-authoring calls must provide response_type; omitting it or passing None raises TypeError. Use bool for a confirmation.

    3.0.0upgrade guide

  • Elicitation via server-initiated requests works on handshake-era connections but raises on the modern 2026-07-28 protocol. Use the guard pattern, branch by protocol version, or keep clients on legacy mode.

    3.0.0upgrade guide

  • ctx.list_roots(...) is removed.

    3.0.0upgrade guide

  • ctx.sample(...) is removed.

    3.0.0upgrade guide

  • ctx.sample_step(...) is removed.

    3.0.0upgrade guide

  • This Context API is gone; call an LLM directly from the server for generation.

    3.0.0upgrade guide

  • State values set with ctx.set_state and read back in a later call do not survive a modern connection.

    3.0.0upgrade guide

  • Moved to fastmcp_tasks.dependencies.

    3.0.0upgrade guide

  • The setting and its object mode were removed. Decorators always return the original function with metadata attached; retrieve the component through the server.

    3.0.0upgrade guide

  • The tool exclude_args keyword is removed.

    3.0.0upgrade guide

  • The tool exclude_args= parameter was removed; use Depends() instead.

    3.0.0upgrade guide

  • FastAPI 0.133.0 is the first release that admits Starlette 1.x; projects pinned below it may encounter an unsatisfiable dependency resolution.

    3.0.0upgrade guide

  • The FASTMCP_DECORATOR_MODE environment variable is removed.

    3.0.0upgrade guide

  • Removed along with decorator_mode; decorators always return the original function with metadata attached.

    3.0.0upgrade guide

  • FastMCP no longer accepts the sampling_handler keyword.

    3.0.0upgrade guide

  • CurrentDocket and CurrentWorker are no longer imported from fastmcp.dependencies; use fastmcp_tasks.dependencies.

    3.0.0upgrade guide

  • fastmcp.server.apps and fastmcp.server.app are removed; use fastmcp.apps for AppConfig or fastmcp for FastMCPApp.

    3.0.0upgrade guide

  • FastMCP.as_proxy(...) is removed.

    3.0.0upgrade guide

  • Removed; use create_proxy from fastmcp.server. Its target is the first positional argument, so replace keyword calls such as as_proxy(backend=server) with create_proxy(server).

    3.0.0upgrade guide

  • Prompt and Message imports from fastmcp.prompts.prompt are removed; import them from fastmcp.prompts.

    3.0.0upgrade guide

  • FunctionPrompt and prompt imports from fastmcp.prompts.prompt are removed; use fastmcp.prompts.function_prompt.

    3.0.0upgrade guide

  • Resource imports from fastmcp.resources.resource are removed; import them from fastmcp.resources.

    3.0.0upgrade guide

  • FunctionResource and resource imports from fastmcp.resources.resource are removed; use fastmcp.resources.function_resource.

    3.0.0upgrade guide

  • Authorization helpers and types are no longer imported from fastmcp.server.auth.authorization; use fastmcp.server.auth.

    3.0.0upgrade guide

  • This import module was removed; update imports to the supported location.

    3.0.0upgrade guide

  • The old fastmcp.server.proxy import is removed; use fastmcp.server.providers.proxy instead.

    3.0.0upgrade guide

  • This import module was removed; update imports to the supported location.

    3.0.0upgrade guide

  • Tool and ToolResult imports from fastmcp.tools.tool are removed; import them from fastmcp.tools.

    3.0.0upgrade guide

  • FunctionTool, ParsedFunction, and tool imports from fastmcp.tools.tool are removed; use fastmcp.tools.function_tool.

    3.0.0upgrade guide

  • This component shim was removed; update imports from it.

    3.0.0upgrade guide

  • fastmcp.types no longer re-exports protocol types; it contains only types defined by FastMCP itself, currently Textarea.

    3.0.0upgrade guide

  • run_auth_checks_with_shortfall and scope_requirements are no longer imported from fastmcp.server.auth.authorization; use fastmcp.utilities.authorization.

    3.0.0upgrade guide

  • The old fastmcp.experimental.utilities.openapi import is removed; use fastmcp.utilities.openapi.

    3.0.0upgrade guide

  • Import TaskConfig from this module after its move.

    3.0.0upgrade guide

  • get_prompt(task=True) is removed.

    3.0.0upgrade guide

  • FastMCP uses httpx2 across its HTTP stack. Custom clients, factories, auth objects, and exception handlers supplied to FastMCP must use httpx2; httpx.AsyncClient is temporarily accepted with a deprecation warning.

    3.0.0upgrade guide

  • FastMCP HTTP logger names change from httpx and httpcore.* to httpx2 and httpcore2.*; logging filters selecting the HTTP stack may need updates.

    3.0.0upgrade guide

  • Use httpx2 imports for exception handling and custom HTTP client or auth objects handed to FastMCP.

    3.0.0upgrade guide

  • import_server(...) is removed. mount() replaces it but is not equivalent: import_server took a static snapshot and skipped the child's lifespan and middleware, while mount is live composition that runs both.

    3.0.0upgrade guide

  • When distinct from base_url, issuer_url now supplies OAuth metadata issuer and minted token and authorization-response issuer claims. Existing clients may need one-time full re-authorization.

    3.0.0upgrade guide

  • Removed; use mcp.add_transform with ToolTransform({name: cfg}).

    3.0.0upgrade guide

  • Removed; mount is a live composition rather than a one-time static snapshot. Register components directly on the parent if you need the former frozen-copy behavior.

    3.0.0upgrade guide

  • The as_proxy keyword was removed. Wrap the child with create_proxy and mount the proxy to preserve the MCP-client execution boundary; a direct mount composes in-process.

    3.0.0upgrade guide

  • The prefix keyword was removed; use namespace to name the mounted child.

    3.0.0upgrade guide

  • Removed; use mcp.local_provider.remove_tool. The replacement raises KeyError for a missing tool rather than NotFoundError.

    3.0.0upgrade guide

  • Removed; it was a no-op. Hide tools with mcp.disable(keys={...}) instead.

    3.0.0upgrade guide

  • Positional construction with ErrorData no longer works; construct the error with code and message keyword arguments. Catching errors and reading err.error.code are unchanged.

    3.0.0upgrade guide

  • Middleware now sees notifications and unroutable requests, so guard middleware accordingly.

    3.0.0upgrade guide

  • Middleware.on_initialize hooks do not survive a modern connection.

    3.0.0upgrade guide

  • The as_proxy keyword is removed from mount().

    3.0.0upgrade guide

  • Use namespace= in place of the removed prefix= keyword.

    3.0.0upgrade guide

  • The prefix keyword is removed from mount().

    3.0.0upgrade guide

  • The prefix= keyword is replaced by namespace=.

    3.0.0upgrade guide

  • Clients need one-time re-authorization when OAuth tokens are minted under an issuer_url different from base_url.

    3.0.0upgrade guide

  • An OAuth server using an issuer_url different from base_url forces a one-time re-authorization of every client.

    3.0.0upgrade guide

  • The old experimental sampling-handler import is removed; use fastmcp.client.sampling.handlers.openai.

    3.0.0upgrade guide

  • The old OpenAPI module and FastMCPOpenAPI import are removed; use FastMCP with OpenAPIProvider from fastmcp.server.providers.openapi.

    3.0.0upgrade guide

  • PromptToolMiddleware is removed in favor of the PromptsAsTools transform from fastmcp.server.transforms.

    3.0.0upgrade guide

  • The minimum supported version is 2.12. Projects pinned below that must raise the pin before upgrading.

    3.0.0upgrade guide

  • Pydantic AI users need version 2.45 or newer; releases 2.32 through 2.44 may fail to import their MCP module because httpx is no longer installed by FastMCP.

    3.0.0upgrade guide

  • read_resource(task=True) is removed.

    3.0.0upgrade guide

  • The replacement for remove_tool raises KeyError where the old method raised NotFoundError; update surrounding exception handling.

    3.0.0upgrade guide

  • remove_tool_transformation(...) is removed.

    3.0.0upgrade guide

  • The core resources/read handler now returns -32602 instead of -32002 for a missing resource; update clients that match on the numeric code.

    3.0.0upgrade guide

  • ResourceToolMiddleware is removed in favor of the ResourcesAsTools transform from fastmcp.server.transforms.

    3.0.0upgrade guide

  • Calling ctx.elicit(...) without response_type is identified as a runtime break.

    3.0.0upgrade guide

  • Removed from FastMCP constructor arguments.

    3.0.0upgrade guide

  • The sampling_handler_behavior keyword is removed.

    3.0.0upgrade guide

  • The tool serializer keyword is removed.

    3.0.0upgrade guide

  • The sessionless era removes the server's ability to call back into a client mid-request.

    3.0.0upgrade guide

  • The settings.decorator_mode setting is removed.

    3.0.0upgrade guide

  • SkillsProvider is removed; use SkillsDirectoryProvider from fastmcp.server.providers.skills.

    3.0.0upgrade guide

  • The server extra requires Starlette 1.0.1 or newer, which may require raising FastAPI pins to versions that admit Starlette 1.x.

    3.0.0upgrade guide

  • The sse_read_timeout keyword is removed from StreamableHttpTransport.

    3.0.0upgrade guide

  • The task keyword is no longer supported on @mcp.resource or @mcp.prompt; tasks are tools only now.

    3.0.0upgrade guide

  • TaskConfig is no longer imported from fastmcp.server.tasks; import it from fastmcp.utilities.tasks.

    3.0.0upgrade guide

  • Using @mcp.tool(task=True) or TaskConfig now requires registering TasksExtension with mcp.add_extension.

    3.0.0upgrade guide

  • HTTP TLS verification uses the operating system trust store via truststore and honors SSL_CERT_FILE and SSL_CERT_DIR instead of using the bundled certifi CA set.

    3.0.0upgrade guide

Security 14

  • Regex tool search is bounded in time and pattern length.

    3.4.9release notes

  • CIMD cache growth is bounded.

    3.4.8release notes

  • Client schema types are built with create_model and bounded caches.

    3.4.8release notes

  • Schemas are inlined when their pointers pass through alias definitions.

    3.4.8release notes

  • NAT64, 6to4, Teredo, and ISATAP transition addresses can no longer bypass the SSRF allow-list to reach private IPv4 targets.

    3.4.3release notes

  • Validates Host and Origin before session handling to prevent DNS rebinding against localhost-bound servers.

    3.4.3release notes

  • Silent consent is guarded against authorization-server-in-the-middle attacks.

    3.3.0release notes

  • Rejects dot-segment paths that could bypass prefix checks.

    3.3.0release notes

  • Partitions cached responses by access token so different users cannot see each other's cached responses.

    3.3.0release notes

  • Automatically binds token audience to the resource URL per RFC 8707, closing a token-reuse gap across MCP resources.

    3.2.4release notes

  • Validates decoded base64 data size instead of trusting the client-reported size, preventing oversized uploads from bypassing size checks.

    3.2.4release notes

  • Stops forwarding inbound HTTP headers to unrelated remote servers, preventing headers intended for one server from leaking to another.

    3.2.4release notes

  • Azure token validation uses identifier_uri as the expected audience.

    3.2.1release notes

  • Consent cookies are capped as an LRU to prevent unbounded growth and reverse proxy header overflow.

    3.2.1release notes

Deprecations 6

  • Calling ctx.elicit() without response_type now emits a deprecation warning.

    3.2.4release notes

  • Bridged camelCase reads warn and are planned for removal; migrate reads to snake_case. Setting mcp_camelcase_compat to False makes remaining reads raise AttributeError.

    3.0.0upgrade guide

  • Inferring stdio transport from a string is deprecated and will be removed in FastMCP 5. Pass a pathlib.Path for a script or construct a StdioTransport.

    3.0.0upgrade guide

  • Ordinary client logging emits an SDK MCPDeprecationWarning, but ctx.info and other logging methods continue to work on every protocol era.

    3.0.0upgrade guide

  • SDK v2 protocol model fields use snake_case in Python instead of camelCase; FastMCP temporarily bridges old field reads with deprecation warnings.

    3.0.0upgrade guide

  • Templated resources with parameters containing .. or absolute paths are flagged for upgrade review.

    3.0.0upgrade guide

New APIs and options 26

  • Adds a remote command flag for TLS certificate verification.

    3.4.3release notes

  • Lets providers set the FastMCP-issued token lifetime independently of upstream expires_in; when the upstream issues no refresh token, the lifetime is capped to match.

    3.4.0release notes

  • Adds the --host option to the dev CLI.

    3.4.0release notes

  • Adds --log-panel and --no-log-panel options to control the dev CLI log panel.

    3.4.0release notes

  • Adds a standalone command that bridges a remote HTTP MCP server to a local stdio MCP host, with automatic OAuth for HTTPS and support for bearer tokens and custom headers.

    3.4.0release notes

  • Adds support for pre-bound HTTP sockets.

    3.4.0release notes

  • Treats tokens as expired a specified number of seconds early to close refresh races.

    3.4.0release notes

  • Adds is_error so tools can return rich error results, including structured content, instead of raising and reducing errors to text-only results.

    3.4.0release notes

  • The OAuth server metadata endpoint now responds at this additional alias.

    3.4.0release notes

  • Adds the extra_authorize_params option to WorkOSProvider.

    3.4.0release notes

  • Adds the valid_scopes option to WorkOSProvider.

    3.4.0release notes

  • Adds first-class support for Azure AD B2C user flows.

    3.3.0release notes

  • The constructor accepts raw capability flags through experimental_capabilities.

    3.3.0release notes

  • A dependency-light distribution provides the client and transport layer without the server stack, for client-only installs.

    3.3.0release notes

  • Supports a default prefill value.

    3.3.0release notes

  • Tool errors accept a log_level parameter to control how they are logged.

    3.3.0release notes

  • Sync tools run in a thread pool by default; set run_in_thread=False to opt out when a tool has thread-local state or is bound to a specific thread.

    3.3.0release notes

  • Adds a public API to update the proxy's required scopes after initialization, useful when scope requirements are determined at runtime.

    3.3.0release notes

  • Adds response_description to ctx.elicit() so callers can set a response description.

    3.2.4release notes

  • Adds response_title to ctx.elicit() so callers can set a response title.

    3.2.4release notes

  • Adds a Keycloak OAuth provider for enterprise authentication and local development.

    3.2.4release notes

  • Auth providers can now override protected resource base URLs.

    3.2.4release notes

  • Returns a task handle immediately for callers that want to do other work, check progress, or cancel.

    3.0.0upgrade guide

  • Setting this environment variable to false turns off the camelCase compatibility shims.

    3.0.0upgrade guide

  • This setting controls the camelCase compatibility shims and defaults to on; setting it to False disables the shims.

    3.0.0upgrade guide

  • Protocol types now live in the standalone mcp_types package and remain available through the preferred mcp.types spelling.

    3.0.0upgrade guide

Behavior and default changes 19

  • Component manager auth challenges now include resource metadata.

    3.4.8release notes

  • Restores acceptance of HTTP traffic that worked before 3.4.3 by default; deployments can opt in to the guard with explicit trusted hosts and origins.

    3.4.4release notes

  • Invalid tool arguments now raise fastmcp.ValidationError.

    3.4.3release notes

  • Logs refresh-token cache misses instead of failing silently.

    3.4.1release notes

  • Proxies forward initialize upstream and report a successful handshake only after upstream initialization, surfacing backend, URL, authentication, and protocol failures to downstream clients.

    3.4.0release notes

  • The proxy now forwards ping requests to the upstream server.

    3.4.0release notes

  • Hoists $defs introduced by ArgTransform to the schema root.

    3.3.0release notes

  • Proxy-server delegate spans are enriched with backend attributes.

    3.3.0release notes

  • List operations are instrumented with OTEL in compliance with MCP semantic conventions.

    3.3.0release notes

  • Mounted servers enter their own lifespan, allowing servers with startup or shutdown logic to work when composed into a larger server.

    3.3.0release notes

  • Plain mcp.tool app-only tools are no longer completely hidden.

    3.3.0release notes

  • 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.

    3.2.4release notes

  • Parameter descriptions are extracted automatically from docstrings, so tool signatures document their parameters.

    3.2.4release notes

  • Azure token validation now accepts both the bare client ID GUID and the custom Application ID URI as audience values.

    3.2.2release notes

  • Tasked calls are handled transparently: the client polls background execution to completion and returns the synchronous-call result.

    3.0.0upgrade guide

  • get_session_id() returns None on protocol eras without sessions instead of raising.

    3.0.0upgrade guide

  • Middleware must not assume on_message only sees routable requests.

    3.0.0upgrade guide

  • A single server now serves sessionless 2026-07-28 and earlier session-based protocol eras, with the SDK negotiating the era per client.

    3.0.0upgrade guide

  • Templated resources that legitimately accept .. or absolute paths are exempted from the changed path behavior.

    3.0.0upgrade guide

Fixes and other changes 59

  • A skill's SKILL.md must stay inside its skill folder.

    3.4.9release notes

  • 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.

    3.4.7release notes

  • The Azure scope fallback is fixed.

    3.4.5release notes

  • compress_schema no longer mutates the caller's schema.

    3.4.5release notes

  • Deep object query parameters are serialized.

    3.4.5release notes

  • Unsupported keys in a JWKS are skipped, so a single unsupported Ed25519 key no longer causes tokens signed by supported keys in the same set to be rejected.

    3.4.5release notes

  • The required order for transformed tools is deterministic.

    3.4.5release notes

  • Empty environment variable keys are rejected.

    3.4.3release notes

  • Rate-limiting middleware now supports asynchronous get_client_id callbacks.

    3.4.3release notes

  • Identity provider authentication errors are forwarded to the MCP client instead of being shown as an HTML error page.

    3.4.3release notes

  • The default OIDC discovery timeout is bounded and exposed on provider wrappers.

    3.4.3release notes

  • JSON schema conversion now preserves required discriminator tags.

    3.4.3release notes

  • Resource path values containing reserved characters now round-trip correctly in URI templates.

    3.4.3release notes

  • Tool result serialization now honors serialize_by_alias.

    3.4.3release notes

  • Proxy disconnect during session teardown is shielded to avoid teardown races.

    3.4.3release notes

  • Calling clear during session teardown no longer causes a KeyError.

    3.4.3release notes

  • Task tool arguments are now validated against their declared types.

    3.4.3release notes

  • Private, non-critical JWS header parameters no longer cause JWTs to be rejected before signature and claim validation; unsupported critical headers remain rejected.

    3.4.2release notes

  • MCP config files are now read as UTF-8.

    3.4.0release notes

  • Resources created from templates now preserve annotations, meta, title, and icons.

    3.4.0release notes

  • Resource templates with query parameters now work on proxied servers.

    3.4.0release notes

  • The CLI now forwards the stateless flag in the uv run path.

    3.4.0release notes

  • Component imports no longer pull in the server/provider stack through auth and task primitives, avoiding circular imports on clean installs; existing server-facing import paths remain compatible.

    3.3.1release notes

  • Cancels an orphaned session task when disconnect times out.

    3.3.0release notes

  • Active HTTP transports are terminated before lifespan shutdown.

    3.3.0release notes

  • Honors upstream refresh token expiry.

    3.3.0release notes

  • Fixes the OCI provider for 3.x installs.

    3.3.0release notes

  • Preserves blank query string values in OpenAPI routing.

    3.3.0release notes

  • Exits cleanly when the session stream closes.

    3.3.0release notes

  • No longer crashes on non-TextContent error responses.

    3.3.0release notes

  • Hyphens are now allowed in resource template parameter names.

    3.3.0release notes

  • Sampling from background tasks now works correctly.

    3.3.0release notes

  • Rejects self-mounting to prevent infinite recursion.

    3.3.0release notes

  • No longer crashes on non-UTF-8 console output.

    3.3.0release notes

  • Hardens cleanup after forced client disconnects.

    3.2.4release notes

  • No longer crashes on Python keywords, boolean schemas, empty enums, or name collisions.

    3.2.4release notes

  • Fixes list[dict] return types being represented as Root() instead of dictionaries.

    3.2.4release notes

  • Fixes wildcard resource template parameters in mounted servers.

    3.2.4release notes

  • Generators are materialized before result conversion, and bytes are handled gracefully.

    3.2.4release notes

  • Retries tool errors that were not previously retried.

    3.2.4release notes

  • No longer hangs indefinitely when a task enters input_required.

    3.2.4release notes

  • Strips title fields from tool schemas for Gemini 2.5 Flash compatibility.

    3.2.4release notes

  • Fixes synchronous function crashes and schema mutation in TransformedTool.

    3.2.4release notes

  • The tasks extra pins fakeredis below 2.35.0 as a stopgap for an undocumented rename that broke pydocket's memory:// backend and caused startup ImportErrors.

    3.2.3release notes

  • allowed_client_redirect_uris on OAuthProxy can now be changed.

    3.2.1release notes

  • The deprecated asyncio.iscoroutinefunction fallback was removed, avoiding deprecation warnings on Python 3.14.

    3.2.1release notes

  • Background task context forwarding is unified, fixing concurrent dependency bugs.

    3.2.1release notes

  • Boolean property schemas are now handled correctly during JSON Schema parsing.

    3.2.1release notes

  • The client handles error responses with empty or non-text content from third-party servers without crashing.

    3.2.1release notes

  • Cognito token verification checks client_id instead of aud.

    3.2.1release notes

  • FastAPI TestClient compatibility and lifespan re-initialization were fixed.

    3.2.1release notes

  • JWT expiration validation now uses explicit None checks.

    3.2.1release notes

  • OpenAPI 3.0 nullable fields are converted into JSON Schema-compatible tool input schemas.

    3.2.1release notes

  • Proxy timeouts were added and networking in apps dev was modernized.

    3.2.1release notes

  • ResponseLimitingMiddleware no longer breaks tools that use outputSchema.

    3.2.1release notes

  • Defaults for server variables are substituted when building a base URL from an OpenAPI spec.

    3.2.1release notes

  • upstream_claims is now propagated in load_access_token.

    3.2.1release notes

  • Upgrade FastAPI if the resolver complains about Starlette below 1.0.1.

    3.0.0upgrade guide

  • Clients matching on resource-not-found error code -32002 are flagged for upgrade review.

    3.0.0upgrade guide