unstale

pypi / mcp

mcp

What changed in mcp 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

250 breaking8 security13 deprecations80 new APIs and options1 performance26 behavior and defaults34 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

mcp 2334 changes

Breaking changes 243

  • After a HeaderMismatch (-32020) rejection, call_tool re-lists the tools and retries once.

    2.3.0release notes

  • initialize omits experimental when none is configured; client code reading capabilities.experimental on a legacy connection should handle None.

    2.3.0release notes

  • The required version is now httpx2>=2.10.0, up from >=2.5.0; the new max_sse_event_size option depends on it.

    2.3.0release notes

  • Validation now looks up the registered tool schema by name instead of running tools/list for every tools/call; middleware filtering or rewriting tools/list no longer affects validation.

    2.3.0release notes

  • Empty _meta is omitted from outbound requests; on the receiving side ctx.meta is None rather than an empty mapping.

    2.3.0release notes

  • Ping and list requests without a cursor omit params; middleware sees ctx.params as None for a request without params.

    2.3.0release notes

  • Invalid header annotations now fail during tool registration with InvalidSignature, naming the tool and the problem.

    2.3.0release notes

  • On the legacy OAuth discovery path, metadata is rejected when its issuer differs from the server's origin.

    2.2.0release notes

  • MCP HTTP clients and OAuth providers follow redirects only within the endpoint's origin, with an HTTP-to-HTTPS upgrade on the same host allowed; other redirects fail.

    2.2.0release notes

  • Streamable HTTP servers now allow at most 10,000 sessions by default; set this parameter to None to disable the limit.

    1.30.0, 2.2.0release notesrelease notessecurity advisory

  • A 403 response without an insufficient_scope challenge is returned to the caller instead of being retried.

    2.2.0release notes

  • OAuth discovery stops instead of falling back to legacy endpoints when protected resource metadata cannot be fetched because of a 5xx or 429 response.

    1.30.0, 2.2.0release notesrelease notes

  • Stateful legacy Streamable HTTP sessions now expire after 30 minutes of inactivity by default; set this parameter to None to disable the timeout.

    1.30.0, 2.2.0release notesrelease notes

  • Redirects are followed only within the endpoint's origin, or when upgrading HTTP to HTTPS on the same host; other redirects fail with httpx.HTTPStatusError.

    1.30.0, 2.2.0release notessecurity advisory

  • Tool output-schema references are resolved only within the schema document.

    1.30.0, 2.2.0release notessecurity advisory

  • Tools annotated to return content blocks no longer advertise outputSchema or return structuredContent; pass structured_output=True to keep the previous shape.

    2.1.0release notes

  • Unexpected tool, resource, or prompt handler exceptions are logged once at ERROR with a traceback; clients receive a generic error instead of the exception text. ToolError and ResourceError messages still reach clients and are logged at INFO without a traceback.

    2.1.0release notes

  • NotRequired keys in TypedDict tool results are omitted instead of serialized as null.

    2.1.0release notes

  • The 4 MiB request body limit now also applies to the SSE transport and OAuth endpoints.

    2.1.0release notes

  • The SSE message endpoint answers 405 to non-POST requests.

    2.1.0release notes

  • AnyFunction is removed; use Callable[..., Any] directly.

    2.0.0upgrade guide

  • The minimum anyio version is raised to >=4.9 for Python <3.14 and >=4.10 for Python >=3.14.

    2.0.0upgrade guide

  • OAuth discovery now rejects authorization-server metadata whose issuer does not exactly match the advertised authorization-server URL.

    2.0.0upgrade guide

  • Path-less issuer_url and resource_server_url strings keep their empty path, changing the issuer URL served in metadata.

    2.0.0upgrade guide

  • BaseSession and its receive loop were removed; ClientSession now runs on JSONRPCDispatcher.

    2.0.0upgrade guideupgrade guide

  • The callback now returns AuthorizationCodeResult rather than a (code, state) tuple; forward the redirect's iss value so issuer validation can run.

    2.0.0upgrade guideupgrade guide

  • Cancelled requests generally receive no further response; the 2025-era streamable HTTP transport instead terminates the stream with a valid -32800 REQUEST_CANCELLED error.

    2.0.0upgrade guideupgrade guiderelease notes

  • Client(cache=False) changes to cache=None, with CacheConfig() as the default.

    2.0.0release notes

  • Client now defaults to mode='auto', which can cause servers to receive an unexpected server/discover request.

    2.0.0upgrade guideupgrade guide

  • Client adds mode to control version negotiation; auto is the default and legacy reproduces v1's initialize-only handshake.

    2.0.0upgrade guideupgrade guide

  • Exported TypeAdapter for validating ClientNotification union values.

    2.0.0upgrade guide

  • Exported TypeAdapter for validating ClientRequest union values.

    2.0.0upgrade guideupgrade guide

  • Exported TypeAdapter for validating ClientResult union values.

    2.0.0upgrade guide

  • Using token_endpoint_auth_method="client_secret_post" now changes the token request body to include client_id.

    2.0.0upgrade guideupgrade guide

  • A single Client replaces the transport-plus-ClientSession-plus-initialize() layering and can connect to URLs, stdio subprocesses, custom transports, or in-memory server objects.

    2.0.0release notes

  • Renamed the requested-scope keyword from scopes to scope to reflect that its value is a single space-separated string.

    2.0.0upgrade guideupgrade guide

  • Union message types are no longer RootModel subclasses: construct member values directly and use the exported TypeAdapter for validation instead of .root or model_validate().

    2.0.0upgrade guide

  • Union message types are no longer RootModel subclasses: construct member values directly and use the exported TypeAdapter for validation instead of .root or model_validate().

    2.0.0upgrade guide

  • A client-specific request context replaces the client-side use of the shared RequestContext.

    2.0.0upgrade guideupgrade guide

  • The *Type aliases for client and server request, notification, and result unions are removed; use the bare union names.

    2.0.0upgrade guide

  • Union message types are no longer RootModel subclasses: construct member values directly and use the exported TypeAdapter for validation instead of .root or model_validate().

    2.0.0upgrade guide

  • Inbound callbacks and notifications now run concurrently in separate tasks; deliveries start in arrival order but may interleave without a built-in concurrency bound.

    2.0.0upgrade guideupgrade guide

  • The method was removed; use the server_capabilities, server_info, instructions, and protocol_version properties.

    2.0.0upgrade guideupgrade guide

  • The cursor parameter was removed; pass params=PaginatedRequestParams(cursor=...) instead.

    2.0.0upgrade guide

  • List methods now take a keyword-only PaginatedRequestParams value through params for pagination.

    2.0.0upgrade guide

  • Notifications sent after connection closure are dropped with a debug log instead of raising a transport error.

    2.0.0upgrade guideupgrade guide

  • The client send_notification method no longer accepts related_request_id.

    2.0.0upgrade guideupgrade guide

  • Calling send_request before entering the context manager now immediately raises RuntimeError; after connection closure it raises MCPError with CONNECTION_CLOSED.

    2.0.0upgrade guideupgrade guide

  • The client send_request method no longer accepts ServerMessageMetadata.

    2.0.0upgrade guideupgrade guide

  • Sessions are no longer generic; send_request takes a concrete request model and a result model class or pydantic TypeAdapter.

    2.0.0upgrade guide

  • Negotiated server capabilities are available as a property populated by initialize() or discover().

    2.0.0upgrade guideupgrade guide

  • Exposes negotiated server identity metadata, which can be None when a 2026-era server omits it.

    2.0.0upgrade guide

  • The uri parameter now accepts str; convert AnyUrl values to strings.

    2.0.0upgrade guide

  • The deprecated args parameter was removed; pass arguments instead.

    2.0.0upgrade guideupgrade guide

  • Content is removed from the protocol types; use ContentBlock.

    2.0.0upgrade guideupgrade guide

  • The ServerSessionT type parameter was dropped; the remaining lifespan and request type parameters have defaults.

    2.0.0upgrade guideupgrade guide

  • Context.client_id was removed; read custom request metadata from ctx.request_context.meta or obtain the authenticated OAuth client from the access token.

    2.0.0upgrade guideupgrade guiderelease notes

  • Elicitation now renders and validates schemas against PrimitiveSchemaDefinition at the call site; unsupported schema shapes raise TypeError, and accepted answers that mismatch the schema raise ValueError.

    2.0.0upgrade guideupgrade guide

  • Context logging helpers take data: Any instead of message: str, and the convenience methods no longer accept extra.

    2.0.0upgrade guide

  • Context logging methods take data: Any instead of message: str, remove extra, and Context.log accepts all eight RFC 5424 levels.

    2.0.0upgrade guide

  • Progress reporting takes an absolute current value rather than a delta and is a no-op when the caller did not request progress.

    2.0.0upgrade guide

  • Memory-stream helpers now yield context-propagating wrappers rather than plain anyio streams; send_nowait, receive_nowait, and statistics are unavailable.

    2.0.0upgrade guide

  • The in-memory testing helper was removed; use mcp.client.Client, which accepts a Server or MCPServer and handles transport and session setup.

    2.0.0upgrade guide

  • Replaces the ctx.fastmcp property with ctx.mcp_server.

    2.0.0upgrade guideupgrade guide

  • Cursor is removed; use str directly.

    2.0.0upgrade guideupgrade guide

  • ElicitationResult is now a TypeAliasType and supports generic annotations such as ElicitationResult[Confirm], but runtime isinstance checks against the alias raise TypeError.

    2.0.0upgrade guideupgrade guide

  • Unknown fields are silently dropped rather than preserved; use _meta for custom data. ClientCapabilities and ServerCapabilities retain unknown top-level keys in model_extra.

    2.0.0upgrade guideupgrade guide

  • FastMCP is renamed to MCPServer; update imports and references.

    2.0.0upgrade guideupgrade guide

  • The server exception is renamed to MCPServerError.

    2.0.0upgrade guideupgrade guide

  • Replaces is_binary with encoding: a string decodes and serves text, while None serves bytes. Defaults use a MIME charset, UTF-8 with BOM tolerance for textual MIME types, or bytes otherwise.

    2.0.0upgrade guideupgrade guiderelease notes

  • The is_binary argument was removed; passing it now raises ValidationError at construction.

    2.0.0upgrade guide

  • The type alias was removed; wrappers that need the type can inline Callable[[], str | None].

    2.0.0upgrade guideupgrade guide

  • The SDK no longer installs httpx; applications that use it must declare it as their own dependency or port calls to httpx2.

    2.0.0upgrade guide

  • The streamable HTTP client factory parameter is gone with no replacement; call your factory yourself and pass its result as http_client.

    2.0.0upgrade guideupgrade guide

  • The httpx-sse dependency is removed because httpx2 includes server-sent events support.

    2.0.0upgrade guide

  • The SDK replaces httpx and httpx-sse with httpx2; client objects, auth providers, exception handling, and SSE usage must use httpx2 types and APIs.

    2.0.0upgrade guideupgrade guide

  • The client-credentials providers now use httpx2.Auth as their base class, and the auth APIs and helper request/response objects are retyped to httpx2.

    2.0.0upgrade guide

  • The message_handler parameter is now IncomingMessage, a union of ServerNotification and Exception; requests are handled by typed callbacks.

    2.0.0upgrade guideupgrade guiderelease notes

  • Protocol model fields use snake_case for Python attribute access; camelCase remains accepted as constructor kwargs.

    2.0.0upgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • Client-authentication failures at /token now return invalid_client instead of unauthorized_client; update code that matches the old error code.

    2.0.0upgrade guide

  • Unclosed braces, duplicate variable names, unsupported syntax, and adjacent variables without a delimiter now raise InvalidUriTemplate when the decorator runs.

    2.0.0upgrade guideupgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • The union is no longer a RootModel; use jsonrpc_message_adapter for validation and pass concrete message members directly.

    2.0.0upgrade guide

  • Removed the model; use SignedJWTParameters to build an assertion or static_assertion_provider(token) for a prebuilt JWT.

    2.0.0upgrade guideupgrade guide

  • Exported named scalar for the latest handshake protocol version.

    2.0.0upgrade guideupgrade guide

  • Exported named scalar for the latest modern protocol version.

    2.0.0upgrade guideupgrade guide

  • Now identifies the newest revision spoken in any era, not the version offered during initialization; use LATEST_HANDSHAKE_VERSION for negotiation.

    2.0.0upgrade guideupgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • The deprecated logging capability is gone; log delivery is now opted into per request.

    2.0.0upgrade guide

  • The automatic jsonschema validation previously performed by the call_tool decorator is gone; validate inputs yourself in the handler if needed.

    2.0.0upgrade guideupgrade guide

  • Lowlevel handlers must construct full result types themselves; automatic wrapping of tool, resource, and list return values has been removed.

    2.0.0upgrade guideupgrade guide

  • Automatic wrapping of bare list or dict handler returns is removed; these returns fail result validation.

    2.0.0upgrade guideupgrade guide

  • Tool handler exceptions no longer become CallToolResult values with isError=true; clients receive a JSON-RPC error.

    2.0.0upgrade guideupgrade guide

  • Streamable HTTP POST bodies now have a 4 MiB default limit and oversized requests receive HTTP 413 before parsing or session creation; configure a larger positive byte limit when needed.

    1.29.0, 2.0.0upgrade guideupgrade guiderelease notes

  • The command pins the spawned environment's mcp requirement to the installed SDK version; source builds and unpublished versions remain unpinned.

    2.0.0upgrade guideupgrade guide

  • MCP_* environment variables are gone with pydantic-settings.

    2.0.0release notes

  • The command pins the spawned environment's mcp requirement to the installed SDK version; source builds and unpublished versions remain unpinned.

    2.0.0upgrade guideupgrade guide

  • The header-name constant moved; import MCP_PROTOCOL_VERSION_HEADER from mcp.shared.inbound instead.

    2.0.0upgrade guide

  • The header-name constant moved to mcp.shared.inbound and is now named MCP_PROTOCOL_VERSION_HEADER.

    2.0.0upgrade guide

  • mcp-types becomes a required dependency pinned exactly to the SDK version.

    2.0.0upgrade guide

  • The optional WebSocket dependency extra no longer exists.

    2.0.0upgrade guideupgrade guide

  • The extension no longer re-exports OAuthTokenError; import it from mcp.client.auth.

    2.0.0upgrade guide

  • Experimental Tasks support and its client, server, and shared experimental modules and properties were removed; this SDK does not implement the reintroduced official Tasks extension yet.

    2.0.0upgrade guide

  • The WebSocket client transport was removed; use the streamable HTTP transport instead.

    2.0.0upgrade guideupgrade guide

  • The old FastMCP module path no longer imports; use mcp.server.mcpserver and its corresponding submodules.

    2.0.0upgrade guideupgrade guide

  • The WebSocket server transport was removed; use streamable HTTP instead.

    2.0.0upgrade guide

  • The mcp.shared.session module and its generic typing helpers were removed; sessions are no longer generic.

    2.0.0upgrade guide

  • The mcp.shared.session module is gone, along with RequestResponder and its response and cancellation-tracking members.

    2.0.0upgrade guide

  • The module is removed; import the version registry from mcp.types.version instead.

    2.0.0upgrade guideupgrade guide

  • McpError is renamed to MCPError; update imports and references.

    2.0.0upgrade guideupgrade guide

  • MCPError adds the e.code convenience property for reading the protocol error code.

    2.0.0upgrade guide

  • Renames McpError, is exported from the top-level mcp package, and takes code, message, and optional data directly.

    2.0.0upgrade guideupgrade guide

  • Raising MCPError in an @mcp.tool() handler now returns a top-level JSON-RPC error preserving code, message, and data; callers of Client.call_tool() and ClientSession.call_tool() now raise it.

    2.0.0upgrade guideupgrade guide

  • Renames FastMCP and moves its imports and submodules from mcp.server.fastmcp to mcp.server.mcpserver.

    2.0.0upgrade guideupgrade guide

  • Transport-specific settings moved from the constructor to run() and app factories; run() overloads validate accepted keywords by transport, and HTTP transports raise TypeError for unrecognized keywords.

    2.0.0upgrade guide

  • The server remains generic over its lifespan result; FastMCP[MyState] becomes MCPServer[MyState].

    2.0.0upgrade guide

  • A server constructed without a name now reports mcp-server as serverInfo.name instead of FastMCP.

    2.0.0upgrade guideupgrade guide

  • Direct calls now return CallToolResult or InputRequiredResult instead of exposing internal conversion shapes; read content and structured_content from the result.

    2.0.0upgrade guideupgrade guide

  • Ambient context lookup was removed; accept an injected ctx: Context parameter in tool, resource, or prompt handlers instead.

    2.0.0upgrade guideupgrade guide

  • Direct calls may now return InputRequiredResult in addition to GetPromptResult; narrow the union when handling results.

    2.0.0upgrade guideupgrade guide

  • Direct calls may now return InputRequiredResult in addition to resource contents; narrow the union when handling results.

    2.0.0upgrade guideupgrade guide

  • Constructor positional parameters now include title and description before instructions and version after icons; pass all parameters other than name by keyword to avoid silently changing their meaning.

    2.0.0upgrade guideupgrade guide

  • Transport-specific configuration moved from the constructor to run(), sse_app(), and streamable_http_app(); pass those options where the transport is started or its app is built.

    2.0.0upgrade guideupgrade guide

  • MCPServer replaces FastMCP and serves both protocol eras over Streamable HTTP and stdio.

    2.0.0release notes

  • Delivered notifications are concrete member instances rather than RootModel wrappers; access message.params instead of message.root.params.

    2.0.0upgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • Pass by_alias=True when serializing models to produce camelCase wire-format keys; the default now emits snake_case keys.

    2.0.0upgrade guideupgrade guide

  • Exported tuple of per-request-envelope protocol versions.

    2.0.0upgrade guide

  • The parameter was removed from MCPServer methods and Settings; SSE sub-path mounting uses ASGI root_path instead.

    2.0.0upgrade guideupgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • Server-initiated requests without a channel now fail with NoBackChannelError instead of stalling.

    2.0.0upgrade guideupgrade guide

  • The public handler dictionary is removed; register handlers through constructor on_* arguments or add_notification_handler, and look them up by method string.

    2.0.0upgrade guide

  • The nested class is gone; notification _meta is a plain dict and extras use dictionary access.

    2.0.0upgrade guideupgrade guide

  • Path-less URLs parsed from strings or JSON preserve their empty path instead of gaining a trailing slash, affecting issuer comparisons and redirect URI serialization.

    2.0.0upgrade guideupgrade guide

  • No longer subclasses OAuthClientMetadata; it tolerates server-substituted registration metadata, while record validation methods now belong to this type.

    2.0.0upgrade guide

  • Registered client credentials record their issuing authorization server; credentials bound to a different server are discarded and re-registered.

    2.0.0upgrade guide

  • Now represents the strict registration request separately from the tolerant server record; validate_scope() and validate_redirect_uri() are no longer available on it.

    2.0.0upgrade guide

  • Path-less redirect URIs passed as strings serialize without an added trailing slash and are sent verbatim; re-register persisted URIs if their stored form includes the slash.

    2.0.0upgrade guide

  • Removed the unused timeout constructor argument; apply authorization-wait bounds in the redirect or callback handler instead.

    2.0.0upgrade guideupgrade guiderelease notes

  • Removed the stored timeout value because it was never read and did not bound runtime behavior.

    2.0.0upgrade guideupgrade guide

  • Exported named scalar for the oldest supported protocol version.

    2.0.0upgrade guideupgrade guide

  • Generic handler exceptions are no longer converted to is_error tool results; they propagate as top-level JSON-RPC errors, so handlers must build error results themselves when desired.

    2.0.0upgrade guideupgrade guide

  • opentelemetry-api >=1.28.0 becomes a required dependency because OpenTelemetry trace propagation ships enabled.

    2.0.0upgrade guideupgrade guide

  • Renamed the requested-scope keyword from scopes to scope to reflect that its value is a single space-separated string.

    2.0.0upgrade guideupgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • The mcp.shared.progress module, including ProgressContext, Progress, and progress(), has been removed; use Context.report_progress() or session.report_progress().

    2.0.0upgrade guideupgrade guide

  • Path-less URLs parsed from strings or JSON retain an empty path instead of gaining a trailing slash.

    2.0.0upgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • The minimum pydantic version is raised to >=2.12 and the <3 cap is dropped.

    2.0.0upgrade guide

  • On Windows, the minimum pywin32 version is raised to >=311.

    2.0.0upgrade guide

  • Client and ClientSession resource methods now accept str for uri; convert AnyUrl values to strings.

    2.0.0upgrade guideupgrade guide

  • Timeout parameters that previously accepted datetime.timedelta now take plain seconds as float, including client and server session request timeouts.

    2.0.0upgrade guideupgrade guide

  • The SDK's registration endpoint returns all registered metadata, including application_type and client_secret_expires_at when a secret is issued, and rejects private_key_jwt registrations.

    2.0.0upgrade guide

  • On 2026 log delivery, related_request_id on send_log_message no longer selects the standalone stream; delivered messages ride the requesting stream.

    2.0.0upgrade guide

  • A raising request callback now returns code 0 and the exception text; ValidationError still maps to INVALID_PARAMS.

    2.0.0upgrade guideupgrade guide

  • The module-level context variable was removed.

    2.0.0upgrade guideupgrade guide

  • The public request_handlers and notification_handlers dictionaries are removed; register through constructor on_* arguments or add_* methods, and use method-string lookup methods to check registrations.

    2.0.0upgrade guide

  • The public handler dictionary is removed; register handlers through constructor on_* arguments or add_request_handler, and look them up by method string.

    2.0.0upgrade guide

  • On 2026-07-28 connections, servers send log messages only for requests that opt in through _meta with io.modelcontextprotocol/logLevel, and only at or above the requested level.

    2.0.0upgrade guiderelease notes

  • Client request timeouts now use the JSON-RPC code -32001 instead of HTTP status 408; compare against REQUEST_TIMEOUT.

    2.0.0upgrade guideupgrade guide

  • The shared generic RequestContext was removed; use ClientRequestContext or ServerRequestContext instead.

    2.0.0upgrade guideupgrade guide

  • Replaces the nested RequestParams.Meta Pydantic model with a top-level TypedDict; read progress_token through dictionary access.

    2.0.0upgrade guideupgrade guide

  • RequestResponder and its response and cancellation-tracking members were removed; inbound cancellation is handled by JSONRPCDispatcher.

    2.0.0upgrade guide

  • Elicit, Sample, and ListRoots resolver markers now enforce declared client capabilities on every protocol version; missing capabilities fail with -32021 MISSING_REQUIRED_CLIENT_CAPABILITY.

    2.0.0upgrade guideupgrade guide

  • Resource classes now reject unrecognised keyword arguments with ValidationError; subclasses can opt into arbitrary extras with model_config = ConfigDict(extra="allow").

    2.0.0upgrade guideupgrade guide

  • Reading a missing resource now returns JSON-RPC error code -32602 with the requested URI in error.data.

    2.0.0upgrade guideupgrade guide

  • Template matching now supports RFC 6570, matches literals and structural delimiters exactly, allows empty simple-variable values, and applies decoded-value path-safety checks by default.

    2.0.0upgrade guide

  • Template parameter values containing traversal components, null bytes, or absolute paths are rejected by default, including encoded forms; rejected strict templates do not fall through to later permissive templates.

    2.0.0upgrade guide

  • Resource URIs now have type str rather than AnyUrl.

    2.0.0upgrade guideupgrade guide

  • The resource URI field is now a plain str instead of AnyUrl, allowing relative paths and preserving the supplied string.

    2.0.0upgrade guideupgrade guide

  • ResourceTemplate.create_resource() now raises ResourceError when the template function fails instead of ValueError.

    2.0.0upgrade guideupgrade guide

  • Resource lookups now raise ResourceNotFoundError when no resource or template matches; it subclasses ResourceError and replaces ValueError for this case.

    2.0.0upgrade guideupgrade guide

  • ResourceReference is removed from the protocol types; use ResourceTemplateReference.

    2.0.0upgrade guideupgrade guide

  • Removed the deprecated provider; use the provider for the specific client-credentials or identity-assertion flow instead.

    2.0.0upgrade guideupgrade guiderelease notes

  • Message unions are plain unions rather than RootModel instances; use TypeAdapter validation where needed.

    2.0.0upgrade guideupgrade guide

  • The client-credentials providers use scope= instead of scopes=.

    2.0.0upgrade guiderelease notes

  • Clients explicitly configured for secret-based authentication but lacking a stored secret are rejected before grant processing.

    2.0.0upgrade guide

  • The v1-style session change-notification helpers push bare notifications that are dropped on 2026-07-28 connections; publish through the subscription bus instead.

    2.0.0upgrade guide

  • Lowlevel decorator-based handlers are replaced with on_* constructor parameters.

    2.0.0upgrade guideupgrade guide

  • All constructor parameters after name are keyword-only, so positional version and other arguments must be changed to keyword arguments.

    2.0.0upgrade guideupgrade guide

  • Handler results are validated against the negotiated protocol schema before serialization; invalid results raise server-side and produce an INTERNAL_ERROR response for the client.

    2.0.0upgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • Lowlevel handlers are registered as constructor keyword arguments and receive a ServerRequestContext plus typed params, returning full result types instead of using decorator methods.

    2.0.0upgrade guideupgrade guide

  • Exported TypeAdapter for validating ServerRequest union values.

    2.0.0upgrade guideupgrade guide

  • Exported TypeAdapter for validating ServerResult union values.

    2.0.0upgrade guide

  • The generic type parameter count drops from two to one; the RequestT parameter has been removed.

    2.0.0upgrade guideupgrade guide

  • Private dispatch methods _handle_message, _handle_request, and _handle_notification are removed; use middleware to intercept requests.

    2.0.0upgrade guideupgrade guide

  • The lowlevel Server now supports arbitrary request handlers through add_request_handler; decorator methods are gone, and MCPServer users can access it through the private _lowlevel_server.

    2.0.0upgrade guideupgrade guide

  • Middleware can observe or intercept dispatch, with method and raw params available on the context; its signature and semantics are provisional.

    2.0.0upgrade guideupgrade guide

  • The property was removed; request context is passed directly to handlers as the first argument.

    2.0.0upgrade guideupgrade guide

  • raise_exceptions now governs handler exceptions only; transport errors are debug-logged and dropped rather than re-raised.

    2.0.0upgrade guideupgrade guide

  • The stateless parameter was removed; stateless serving is determined by how the connection is constructed.

    2.0.0upgrade guideupgrade guide

  • Servers without an explicit version now report an empty string instead of the installed mcp package version; pass version to identify your server.

    2.0.0upgrade guideupgrade guide

  • Union message types are no longer RootModel subclasses: construct member values directly and use the exported TypeAdapter for validation instead of .root or model_validate().

    2.0.0upgrade guide

  • Union message types are no longer RootModel subclasses: construct member values directly and use the exported TypeAdapter for validation instead of .root or model_validate().

    2.0.0upgrade guide

  • A server-specific request context replaces the server-side use of the shared RequestContext and adds protocol_version, method, and raw params fields.

    2.0.0upgrade guideupgrade guide

  • Union message types are no longer RootModel subclasses: construct member values directly and use the exported TypeAdapter for validation instead of .root or model_validate().

    2.0.0upgrade guide

  • ServerSession is no longer an async context manager.

    2.0.0upgrade guideupgrade guide

  • Direct construction now takes request_outbound and connection instead of streams, init_options, and stateless.

    2.0.0upgrade guideupgrade guide

  • The public inbound message stream was removed; register handlers or use Server.middleware to observe inbound traffic.

    2.0.0upgrade guideupgrade guide

  • Notifications sent after the connection closes are dropped and debug-logged instead of raising closed-resource exceptions.

    2.0.0upgrade guideupgrade guide

  • The schema keyword was renamed from requestedSchema to requested_schema.

    2.0.0upgrade guide

  • The schema keyword was renamed from requestedSchema to requested_schema; keyword callers must update.

    2.0.0upgrade guideupgrade guide

  • The method now takes the notification model itself; the types.ServerNotification wrapper is gone.

    2.0.0upgrade guide

  • A fresh proxy is created for every inbound message, so proxy identity cannot be used as a stable per-connection key.

    2.0.0upgrade guideupgrade guide

  • Settings is now a plain Pydantic model, so MCP_* environment variables and .env files are no longer read; read environment values yourself and pass them to the constructor.

    2.0.0upgrade guideupgrade guide

  • Settings retains only constructor-owned fields; assigning removed transport fields such as port now raises ValueError, so pass transport values to run() or app factories.

    2.0.0upgrade guide

  • Protocol fields change from camelCase to snake_case, so update field access such as inputSchema to input_schema.

    2.0.0upgrade guideupgrade guide

  • The minimum sse-starlette version is raised to >=3.0.0.

    2.0.0upgrade guide

  • A non-template resource URI paired with a handler that takes only Context now raises ValueError at decoration time.

    2.0.0upgrade guideupgrade guide

  • On POSIX, children left behind by a server that exits gracefully are deliberately left alive; servers that exceed the grace period are still terminated with their process group.

    2.0.0upgrade guideupgrade guide

  • The client now closes its pipe ends deterministically at shutdown, and failed writes to a running server surface as CONNECTION_CLOSED on the read side.

    2.0.0upgrade guide

  • The transport moves protocol I/O to private descriptors and redirects fd 0 to the null device and fd 1 to stderr while serving, restoring both on exit.

    2.0.0upgrade guideupgrade guiderelease notes

  • A second concurrent call using the process's default streams now raises RuntimeError instead of contending for stdin.

    2.0.0upgrade guideupgrade guide

  • Child processes that write large output to inherited stdout now send it to the client's stderr channel.

    2.0.0upgrade guide

  • While serving, stdout is diverted to stderr.

    2.0.0release notes

  • The function now yields a 2-tuple, (read_stream, write_stream), instead of a 3-tuple that included the get_session_id callback.

    2.0.0upgrade guideupgrade guide

  • The server lifespan now runs once when the session manager starts and shares its state across sessions and requests; move per-connection resource acquisition into handlers.

    2.0.0upgrade guideupgrade guide

  • HTTP status failures now surface as per-request JSON-RPC errors raised as MCPError; the connection remains usable instead of failing pending requests through the transport context.

    2.0.0upgrade guideupgrade guide

  • Streamable HTTP servers reject request bodies over 4 MiB with HTTP 413.

    2.0.0release notes

  • The streamablehttp_client alias is removed.

    2.0.0upgrade guideupgrade guide

  • The deprecated function was removed; use streamable_http_client instead and configure headers, timeout, and auth on an httpx2.AsyncClient.

    2.0.0upgrade guide

  • The deprecated function was removed; use streamable_http_client instead.

    2.0.0upgrade guide

  • The timeout and sse_read_timeout fields now take float seconds instead of datetime.timedelta; an explicit timedelta fails model validation.

    2.0.0upgrade guideupgrade guide

  • The headers, timeout, sse_read_timeout, and auth parameters were removed; configure them on an httpx2.AsyncClient instead.

    2.0.0upgrade guideupgrade guide

  • The method that backed the removed session-ID callback was removed; event hooks can capture the session ID from response headers.

    2.0.0upgrade guideupgrade guide

  • The transport attribute was removed; read the negotiated version from session.protocol_version or client.protocol_version.

    2.0.0upgrade guideupgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • Resource capabilities now report subscribe as true when an on_subscribe_resource handler is provided, which may change client behavior.

    2.0.0upgrade guide

  • On 2026-07-28 connections, change notifications reach clients only through a subscriptions/listen stream that requested them; bare standalone notifications are dropped.

    2.0.0upgrade guide

  • Synchronous tools, resources, prompts, and resolver functions now run on a worker thread; they can run concurrently, and asyncio.get_running_loop() raises inside them.

    2.0.0upgrade guide

  • Synchronous tool, resource, prompt, and resolver functions now execute in worker threads, enabling concurrency but changing thread affinity and making asyncio.get_running_loop() fail inside them.

    2.0.0upgrade guideupgrade guide

  • The TASK_REQUIRED, TASK_OPTIONAL, and TASK_FORBIDDEN constants were removed; task_support takes the plain required, optional, or forbidden literal.

    2.0.0upgrade guideupgrade guide

  • TaskExecutionMode and TASK_* constants are removed; use string literals, with TaskStatus remaining as a literal-union type.

    2.0.0upgrade guide

  • The function now requires the process to lead its own process group, spawned with start_new_session=True; the lookup and per-process fallback were removed.

    2.0.0upgrade guideupgrade guide

  • The deprecated function was removed; process termination is handled internally by the stdio_client context manager.

    2.0.0upgrade guideupgrade guide

  • The timeout_seconds argument was removed because Job Object termination is immediate and the value was never used.

    2.0.0upgrade guideupgrade guide

  • DNS rebinding protection now auto-enables for loopback hosts when no transport_security is passed, including for app factories that default to 127.0.0.1; host allowlist matching can reject bare Host headers with 421.

    1.23.0, 2.0.0upgrade guideupgrade guiderelease notessecurity advisory

  • The minimum typing-extensions version is raised to >=4.13.0.

    2.0.0upgrade guide

  • Methods the receiver does not serve now receive JSON-RPC -32601 Method not found, with the method name in data, rather than -32602.

    2.0.0upgrade guide

  • Protocol model fields use snake_case for Python attribute access; serialize with by_alias=True to retain camelCase wire keys.

    2.0.0upgrade guide

  • Template matching now supports RFC 6570, matches literals and structural delimiters exactly, and lets simple {var} expressions match empty values.

    2.0.0upgrade guide

Security 4

  • Controls whether to accept only tokens that the TokenVerifier reports as issued for this server.

    1.30.0, 2.2.0release notesrelease notessecurity advisory

  • New callback result object includes code, state, and iss, enabling authorization-response issuer validation.

    2.0.0upgrade guideupgrade guide

  • OAuthAuthorizationServerProvider gained an overridable identity-assertion exchange method that rejects the grant by default.

    2.0.0upgrade guide

  • OAuth adds RFC 9207 issuer validation.

    2.0.0release notes

Deprecations 8

  • When resource_server_url is set, leaving validate_token_resource unset emits an MCPDeprecationWarning; set it to True or False because 3.0 defaults it to True.

    2.2.0release notes

  • Constructing this provider without issuer= emits an MCPDeprecationWarning; pass the authorization server's issuer URL because 3.0 will require it.

    1.30.0, 2.2.0release notesrelease notes

  • Client.send_ping is deprecated and emits MCPDeprecationWarning when called; ping is removed in 2026-07-28.

    2.0.0upgrade guideupgrade guide

  • Client-to-server progress notifications are deprecated and emit MCPDeprecationWarning; they continue working against servers negotiating 2025-11-25 or earlier.

    2.0.0upgrade guideupgrade guide

  • Client resource-subscription methods are deprecated and emit MCPDeprecationWarning; on 2026-07-28 servers, use Client.listen() with resource_subscriptions instead.

    2.0.0upgrade guide

  • Passing the on_progress constructor parameter is deprecated and emits MCPDeprecationWarning at construction time.

    2.0.0upgrade guide

  • Sampling, roots, and logging user-facing methods are deprecated with type-checker and runtime warnings; they continue working for sessions negotiating 2025-11-25 and earlier.

    2.0.0upgrade guideupgrade guide

  • Deprecated; use HANDSHAKE_PROTOCOL_VERSIONS when referring specifically to initialize-handshake versions.

    2.0.0upgrade guideupgrade guide

New APIs and options 50

  • Adds an option to streamable_http_client and StreamableHttpParameters for setting the maximum SSE event size; pass None or raise it for larger tool results.

    2.3.0release notes

  • Setting subscriptions=False stops serving subscriptions/listen and advertises listChanged and subscribe as false.

    2.3.0release notes

  • Adds a way for a low-level server to supply a tool's schema for header validation without running its tools/list handler.

    2.3.0release notes

  • ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider accept an issuer URL, which is required in 3.0.

    2.2.0release notes

  • AssistantMessage is exported from mcp.server.mcpserver.

    2.1.0release notes

  • Prompt messages now accept Audio content.

    2.1.0release notes

  • Client accepts StdioServerParameters directly, so callers can pass stdio server parameters without constructing them separately.

    2.1.0release notes

  • Prompt messages now accept Image content.

    2.1.0release notes

  • MCPServer.sse_app() takes max_request_body_size to set the request body limit for the SSE app.

    2.1.0release notes

  • Message is exported from mcp.server.mcpserver.

    2.1.0release notes

  • SseServerTransport takes max_request_body_size to set the request body limit for the SSE transport.

    2.1.0release notes

  • UserMessage is exported from mcp.server.mcpserver.

    2.1.0release notes

  • OAuth adds the client-credentials extension.

    2.0.0release notes

  • Exported TypeAdapter for validating ClientNotification union values.

    2.0.0upgrade guide

  • Exported TypeAdapter for validating ClientResult union values.

    2.0.0upgrade guide

  • Use Client.listen() to receive resource subscription events on 2026-07-28 connections; it accepts a resource_subscriptions filter.

    2.0.0upgrade guiderelease notes

  • A new keyword-only dispatcher argument accepts a pre-built dispatcher, such as DirectDispatcher for in-process embedding.

    2.0.0upgrade guideupgrade guide

  • The raw discover result is retained on the session after discover().

    2.0.0upgrade guideupgrade guide

  • The raw initialize handshake result is retained on the session after initialize().

    2.0.0upgrade guideupgrade guide

  • Server instructions are available as a property populated by initialize() or discover().

    2.0.0upgrade guideupgrade guide

  • The negotiated protocol version is available as a property populated by initialize() or discover().

    2.0.0upgrade guideupgrade guide

  • Negotiated server identity is available as a property populated by initialize() or discover().

    2.0.0upgrade guide

  • Context.log() now accepts all eight RFC 5424 log levels via LoggingLevel.

    2.0.0upgrade guide

  • ctx.report_progress works across dispatchers, sending a notification when a token is present and otherwise routing updates through the dispatcher's progress channel.

    2.0.0upgrade guide

  • Servers and clients can compose protocol extensions through pluggable extension APIs, with MCP Apps built in.

    2.0.0release notes

  • The helper gained an optional client_grant_types parameter.

    2.0.0upgrade guideupgrade guide

  • Exported tuple naming the protocol versions accepted during the initialize handshake.

    2.0.0upgrade guideupgrade guide

  • Identity-assertion support can be enabled through AuthSettings or create_auth_routes.

    2.0.0upgrade guide

  • InitializationOptions gained optional title and description fields.

    2.0.0upgrade guide

  • Exported TypeAdapter for validating JSONRPCMessage values, including raw JSON.

    2.0.0upgrade guideupgrade guide

  • Client accepts a log_level argument that opts modern requests into log delivery; None is the default, and individual requests can override it through meta=.

    2.0.0upgrade guide

  • Protocol wire types are available as a standalone distribution for projects that need schema serialization without the full SDK.

    2.0.0upgrade guiderelease notes

  • Protocol wire types move to the standalone mcp-types distribution, while mcp.types remains a permanent alias when depending on the SDK.

    2.0.0upgrade guideupgrade guiderelease notes

  • Constructs an MCPError from an existing ErrorData value.

    2.0.0upgrade guideupgrade guide

  • call_tool(), read_resource(), and get_prompt() accept an optional Context; direct calls without one construct a context with no active request.

    2.0.0upgrade guideupgrade guide

  • Context is exported from mcp.server.mcpserver for annotating injected ctx parameters.

    2.0.0upgrade guide

  • The constructor adds keyword-only resources, extensions, resource_security, request_state_security, cache_hints, subscriptions, and middleware parameters.

    2.0.0upgrade guide

  • Added application_type to Dynamic Client Registration metadata, defaulting to native; browser-based clients on non-local hosts should set it to web.

    2.0.0upgrade guide

  • An optional callback was added to override the RFC 8707 resource check.

    2.0.0upgrade guideupgrade guide

  • A Resolve parameter is filled by the function invisibly to the model and can put a question to the user, supporting multi-round-trip requests.

    2.0.0release notes

  • ResourceSecurity(exempt_params=...) exempts selected template parameters from the default path-safety checks.

    2.0.0upgrade guideupgrade guide

  • OAuth adds the SEP-990 identity-assertion flow.

    2.0.0release notes

  • The 2026-07-28 protocol revision adds stateless requests with no handshake and server discovery.

    2.0.0release notes

  • Exported TypeAdapter for validating ServerNotification union values.

    2.0.0upgrade guideupgrade guide

  • Exported TypeAdapter for validating ServerResult union values.

    2.0.0upgrade guide

  • get_capabilities arguments are now optional, and the method gained an optional extensions argument.

    2.0.0upgrade guide

  • The dispatcher-agnostic report_progress method is preferred over the raw token-taking notification method; it handles the no-op case when the caller did not request progress.

    2.0.0upgrade guide

  • A new OAuth utility helper was added.

    2.0.0upgrade guide

  • A new discovery and registration helper was added.

    2.0.0upgrade guide

  • A new OAuth utility helper was added.

    2.0.0upgrade guideupgrade guide

Performance 1

  • On Windows, stdio_client resolves the executable off the event loop.

    2.3.0release notes

Behavior and default changes 18

  • Client OpenTelemetry spans now record JSON-RPC error responses; in auto mode, a server without server/discover produces one ERROR span for the probe.

    2.3.0release notes

  • ctx: Context[AppState] now works on prompts and resource templates, not only on tools.

    2.3.0release notes

  • Request timeouts pause while redirect_handler and callback_handler wait for an interactive OAuth login; add a limit inside callback_handler if needed.

    2.3.0release notes

  • References resolve only within the tool's output schema; an unresolvable reference raises a RuntimeError identifying the invalid tool schema.

    2.2.0release notes

  • Prompt functions may return bare content blocks.

    2.1.0release notes

  • Pre-2026 sessions now accept boolean sub-schemas in tool schema properties.

    2.1.0release notes

  • Path-less issuer_url and resource_server_url strings preserve their empty path, so advertised issuer metadata retains the supplied form.

    2.0.0upgrade guide

  • Client negotiates the protocol version automatically.

    2.0.0release notes

  • Inbound server requests, notifications, and results are validated against the negotiated protocol schema before parsing into mcp.types models.

    2.0.0upgrade guide

  • A captured session proxy remains usable after its handler returns for sends on the connection's standalone stream.

    2.0.0upgrade guide

  • The required id field now accepts None, allowing validation of JSON-RPC error responses with a null id.

    2.0.0upgrade guideupgrade guide

  • Cancelling an awaited request or timing out now sends a cancellation notification so the server can interrupt its handler.

    2.0.0upgrade guideupgrade guide

  • When supported by server metadata and refresh tokens are enabled, the client adds offline_access to its requested scope and sends prompt=consent.

    2.0.0upgrade guide

  • Trace propagation is enabled by default: servers install tracing middleware and clients open a span per outbound request; configured global providers record spans and outbound _meta receives traceparent.

    2.0.0upgrade guiderelease notes

  • request_id is now optional because notification handlers receive the context with request_id set to None.

    2.0.0upgrade guideupgrade guide

  • The uri parameter now accepts str or AnyUrl.

    2.0.0upgrade guide

  • The client now closes its pipe ends deterministically at shutdown, and failed writes to a running server surface as CONNECTION_CLOSED on the read side.

    2.0.0upgrade guide

  • On an insufficient_scope challenge, re-authorization requests the union of previously requested scopes and newly challenged scopes.

    1.18.0, 2.0.0upgrade guiderelease notes

Fixes and other changes 10

  • A progress_callback that raises no longer fails the call on an in-process Client(server).

    2.3.0release notes

  • Pre-2026 sessions ignore cache-hint fields from later revisions instead of failing list_tools().

    2.1.0release notes

  • mcp install reads and preserves Claude Desktop config containing non-ASCII text on any Windows code page.

    2.1.0release notes

  • On the 2026-07-28 HTTP entry, a POSTed notification such as notifications/cancelled is acknowledged with 202 instead of rejected with 400.

    2.1.0release notes

  • Recursive tool return types now get an object-rooted outputSchema accepted by pre-2026 clients.

    2.1.0release notes

  • Registration of TypedDict tool results no longer fails on Python 3.10.

    2.1.0release notes

  • Imports of mcp.server.fastmcp point to the migration guide, helping developers encountering the import error.

    2.0.1release notes

  • The SDK supports the 2026-07-28 protocol revision and serves earlier revisions from the same server.

    2.0.0release notes

  • Packages depending on mcp should keep a <2 upper bound until they have migrated to v2.

    2.0.0upgrade guide

  • Resource capabilities now report subscribe: true when an on_subscribe_resource handler is registered.

    2.0.0upgrade guide

mcp 178 changes

Breaking changes 7

  • Authorization server metadata is rejected when its issuer does not match the server it was fetched for; client registrations are remembered per issuer.

    1.30.0release notes

  • OAuth provider requests follow the same-origin redirect rule as MCP HTTP clients.

    1.30.0release notes

  • The request body limit now applies to the SSE and OAuth endpoints.

    1.29.1release notes

  • Recursive tool return types now receive an output schema rooted in an object.

    1.29.1release notes

  • Requests with unknown session IDs now return HTTP 404 instead of HTTP 400.

    1.26.0release notes

  • Adds streamable_http_client, which accepts an httpx.AsyncClient instead of httpx_client_factory.

    1.24.0release notes

  • The SDK requires Python 3.10 or later.

    1.0.0release notes

Security 4

Deprecations 5

  • Setting resource_server_url without validate_token_resource emits a DeprecationWarning; set it to True or False.

    1.30.0release notes

  • Using the provider without issuer= emits a DeprecationWarning; pass the authorization server's issuer URL.

    1.30.0release notes

  • Emits a DeprecationWarning when called ahead of removal in v2; tasks were removed from the MCP specification and are expected to return as a separate extension.

    1.28.0release notes

  • The ClientSession keyword argument emits a DeprecationWarning when used ahead of removal in v2; tasks are expected to return as a separate MCP extension.

    1.28.0release notes

  • Emits a DeprecationWarning when called ahead of removal in v2; use the streamable HTTP transport instead.

    1.28.0release notes

New APIs and options 30

  • Accepts issuer= to specify the authorization server's issuer URL.

    1.30.0release notes

  • The WebSocket server transport now supports TransportSecuritySettings.

    1.28.1release notes

  • AccessToken now includes a claims field, allowing developers to access token claims.

    1.27.2release notes

  • AccessToken now includes a subject field, allowing developers to access the token subject.

    1.27.2release notes

  • Resource metadata is supported, allowing developers to provide metadata on resources.

    1.26.0release notes

  • ResourceTemplate metadata is supported, allowing developers to provide metadata on resource templates.

    1.26.0release notes

  • Adds client-side support for SEP-1577 sampling with tools.

    1.24.0release notes

  • Adds support for the client_credentials flow with JWT and Basic auth.

    1.23.0release notes

  • Adds client_secret_basic authentication support.

    1.23.0release notes

  • Adds backwards-compatible create_message overloads for SEP-1577.

    1.23.0release notes

  • Adds an on_session_created callback option.

    1.23.0release notes

  • Implements Sampling With Tools.

    1.23.0release notes

  • Adds SSE polling support.

    1.23.0release notes

  • Implements Tasks.

    1.23.0release notes

  • Adds URL-based client ID (CIMD) support.

    1.23.0release notes

  • Passes through and exposes additional parameters, giving developers more control when calling tools through ClientSessionGroup.

    1.22.0release notes

  • Passes through and exposes additional parameters, giving developers more control when connecting to a server through ClientSessionGroup.

    1.22.0release notes

  • Adds client_id_metadata_document_supported to OAuthMetadata.

    1.21.1release notes

  • Adds get_server_capabilities() to ClientSession.

    1.21.0release notes

  • Adds support for RFC 7523 JWT flows.

    1.20.0release notes

  • Exposes RequestParams._meta in ClientSession.call_tool.

    1.19.0release notes

  • Adds tool metadata support to the FastMCP.tool decorator.

    1.19.0release notes

  • The client supports OAuth scope selection and step-up authorization.

    1.18.0release notes

  • FastMCP supports annotations on resources.

    1.18.0release notes

  • Client and server capabilities support async/await.

    1.0.0release notes

  • The SDK adds a client API with automatic protocol negotiation, request timeouts, progress tracking, and typed exceptions.

    1.0.0release notes

  • The SDK implements the MCP protocol, including prompts, resources, tools, progress tracking, notifications, and logging.

    1.0.0release notes

  • The SDK adds decorator-based request handlers, capability negotiation, request context management, experimental capabilities, and automatic routing.

    1.0.0release notes

  • The SDK supports Server-Sent Events transport.

    1.0.0release notes

  • The SDK supports standard input/output transport for clients and servers.

    1.0.0release notes

Behavior and default changes 8

  • The FastMCP Settings model is completed at import time, affecting when its settings are available.

    1.29.1release notes

  • StreamableHTTP now buffers per-request streams and stores the priming event before dispatch.

    1.28.1release notes

  • StreamableHTTP sessions now have an idle timeout.

    1.27.0release notes

  • Implements tool name validation.

    1.23.0release notes

  • Implements SEP-985 OAuth Protected Resource Metadata discovery fallback.

    1.21.0release notes

  • JSON-only responses no longer require a particular Accept header.

    1.20.0release notes

  • Can be returned directly to support the _meta field for OpenAI Apps.

    1.19.0release notes

  • The first stable release provides a Python SDK with a complete implementation of the MCP specification.

    1.0.0release notes

Fixes and other changes 24

  • Routes Context.report_progress() to the originating request stream, so progress is sent on the stream associated with that request.

    1.29.0release notes

  • Rejects tool names with a trailing newline during validation.

    1.29.0release notes

  • Python 3.14 is now supported.

    1.28.0release notes

  • Null optional fields are omitted from task result payloads.

    1.28.0release notes

  • Empty-string optional URL fields are coerced to None.

    1.27.1release notes

  • Catches PydanticUserError when generating output schemas, fixing compatibility with Pydantic 2.13.

    1.27.1release notes

  • Handles ClosedResourceError when the transport closes during a request.

    1.27.0release notes

  • The OAuth client now validates resources according to RFC 8707.

    1.27.0release notes

  • The stdio server now handles non-UTF-8 bytes on stdin.

    1.27.0release notes

  • Adds the missing TasksCallCapability to the v1.x SDK.

    1.27.0release notes

  • Users who need to stay on v1.x should pin to mcp>=1.25,<2.

    1.25.0release notes

  • Fixes an issue with Url Elicitation.

    1.25.0release notes

  • Fixes matching of IDs in JSON-RPC error responses.

    1.24.0release notes

  • Resource validation now allows MIME type parameters in accordance with RFC 2045.

    1.23.3release notes

  • close_sse_stream is skipped for old protocol versions.

    1.23.2release notes

  • The StreamableHTTP message router now handles ClosedResourceError.

    1.23.2release notes

  • Priming events are skipped for old protocol versions.

    1.23.2release notes

  • Improves elicitation enum schemas and standards compliance.

    1.23.0release notes

  • Empty SSE data is skipped to avoid parsing errors.

    1.23.0release notesrelease notes

  • Fixes OAuth scope handling on 401 responses.

    1.21.2release notes

  • Fixes OAuth discovery fallback and URL ordering.

    1.21.1release notes

  • The low-level server handles messages of type Exception.

    1.18.0release notes

  • List methods without a cursor send params as an empty object.

    1.18.0release notes

  • The server session initialization state is set immediately after responding.

    1.18.0release notes