@modelcontextprotocol/client breaking changes
@modelcontextprotocol/client 2.4.0 (October 23, 2026) is its newest release with breaking changes, 41 of them. The first: Bundled Ajv now uses fast-uri 3.1.8, rejecting some $id and $ref values in @modelcontextprotocol/client 2.4.0. Every breaking API change we have recorded in @modelcontextprotocol/client on npm: 41 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.4.0, released October 23, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@modelcontextprotocol/client 2.4.0 breaking changes
- Behavior changed
Schemas whose $id or $ref has text before the first colon that is not a valid URI scheme, or an invalid URN namespace, no longer compile and fail with an invalid-schema error. Rename such identifiers to valid URI forms. github.com - Behavior changed
x-mcp-header
Tools with an x-mcp-header annotation on a number-typed parameter are rejected and must be excluded from tools/list. Use integer, string or boolean types instead. github.com - Signature changed
AuthorizationServerMetadata
Was export {type AuthorizationServerMetadata} from "./index-B-4n9P0J.mjs"; now export {AuthorizationServerMetadata} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
BAGGAGE_META_KEY
Was export {BAGGAGE_META_KEY} from "./index-B-4n9P0J.mjs"; now export {BAGGAGE_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
CLIENT_CAPABILITIES_META_KEY
Was export {CLIENT_CAPABILITIES_META_KEY} from "./index-B-4n9P0J.mjs"; now export {CLIENT_CAPABILITIES_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
CLIENT_INFO_META_KEY
Was export {CLIENT_INFO_META_KEY} from "./index-B-4n9P0J.mjs"; now export {CLIENT_INFO_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
DEFAULT_NEGOTIATED_PROTOCOL_VERSION
Was export {DEFAULT_NEGOTIATED_PROTOCOL_VERSION} from "./index-B-4n9P0J.mjs"; now export {DEFAULT_NEGOTIATED_PROTOCOL_VERSION} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
IdJagTokenExchangeResponse
Was export {type IdJagTokenExchangeResponse} from "./index-B-4n9P0J.mjs"; now export {IdJagTokenExchangeResponse} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
INTERNAL_ERROR
Was export {INTERNAL_ERROR} from "./index-B-4n9P0J.mjs"; now export {INTERNAL_ERROR} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
INVALID_PARAMS
Was export {INVALID_PARAMS} from "./index-B-4n9P0J.mjs"; now export {INVALID_PARAMS} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
INVALID_REQUEST
Was export {INVALID_REQUEST} from "./index-B-4n9P0J.mjs"; now export {INVALID_REQUEST} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
JSONArray
Was export {JSONArray} from "./index-B-4n9P0J.mjs"; now export {JSONArray} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
JSONObject
Was export {JSONObject} from "./index-B-4n9P0J.mjs"; now export {JSONObject} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
JSONRPC_VERSION
Was export {JSONRPC_VERSION} from "./index-B-4n9P0J.mjs"; now export {JSONRPC_VERSION} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
JSONValue
Was export {JSONValue} from "./index-B-4n9P0J.mjs"; now export {JSONValue} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
LATEST_PROTOCOL_VERSION
Was export {LATEST_PROTOCOL_VERSION} from "./index-B-4n9P0J.mjs"; now export {LATEST_PROTOCOL_VERSION} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
LOG_LEVEL_META_KEY
Was export {LOG_LEVEL_META_KEY} from "./index-B-4n9P0J.mjs"; now export {LOG_LEVEL_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
METHOD_NOT_FOUND
Was export {METHOD_NOT_FOUND} from "./index-B-4n9P0J.mjs"; now export {METHOD_NOT_FOUND} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthClientInformation
Was export {type OAuthClientInformation} from "./index-B-4n9P0J.mjs"; now export {OAuthClientInformation} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthClientInformationFull
Was export {type OAuthClientInformationFull} from "./index-B-4n9P0J.mjs"; now export {OAuthClientInformationFull} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthClientInformationMixed
Was export {type OAuthClientInformationMixed} from "./index-B-4n9P0J.mjs"; now export {OAuthClientInformationMixed} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthClientMetadata
Was export {type OAuthClientMetadata} from "./index-B-4n9P0J.mjs"; now export {OAuthClientMetadata} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthClientRegistrationError
Was export {type OAuthClientRegistrationError} from "./index-B-4n9P0J.mjs"; now export {OAuthClientRegistrationError} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthErrorResponse
Was export {type OAuthErrorResponse} from "./index-B-4n9P0J.mjs"; now export {OAuthErrorResponse} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthMetadata
Was export {type OAuthMetadata} from "./index-B-4n9P0J.mjs"; now export {OAuthMetadata} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthProtectedResourceMetadata
Was export {type OAuthProtectedResourceMetadata} from "./index-B-4n9P0J.mjs"; now export {OAuthProtectedResourceMetadata} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthTokenRevocationRequest
Was export {type OAuthTokenRevocationRequest} from "./index-B-4n9P0J.mjs"; now export {OAuthTokenRevocationRequest} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OAuthTokens
Was export {type OAuthTokens} from "./index-B-4n9P0J.mjs"; now export {OAuthTokens} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OpenIdProviderDiscoveryMetadata
Was export {type OpenIdProviderDiscoveryMetadata} from "./index-B-4n9P0J.mjs"; now export {OpenIdProviderDiscoveryMetadata} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
OpenIdProviderMetadata
Was export {type OpenIdProviderMetadata} from "./index-B-4n9P0J.mjs"; now export {OpenIdProviderMetadata} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
PARSE_ERROR
Was export {PARSE_ERROR} from "./index-B-4n9P0J.mjs"; now export {PARSE_ERROR} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
PROTOCOL_VERSION_META_KEY
Was export {PROTOCOL_VERSION_META_KEY} from "./index-B-4n9P0J.mjs"; now export {PROTOCOL_VERSION_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
refreshAuthorization
Was function refreshAuthorization(authorizationServerUrl: string | URL, {metadata, clientInformation, refreshToken, resource, addClientAuthentication, dpop, fetchFn}: {metadata?: AuthorizationServerMetadata; clientInformation... npmjs.com - Signature changed
RELATED_TASK_META_KEY
Was export {RELATED_TASK_META_KEY} from "./index-B-4n9P0J.mjs"; now export {RELATED_TASK_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
SERVER_INFO_META_KEY
Was export {SERVER_INFO_META_KEY} from "./index-B-4n9P0J.mjs"; now export {SERVER_INFO_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
StoredOAuthClientInformation
Was export {type StoredOAuthClientInformation} from "./index-B-4n9P0J.mjs"; now export {StoredOAuthClientInformation} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
StoredOAuthTokens
Was export {type StoredOAuthTokens} from "./index-B-4n9P0J.mjs"; now export {StoredOAuthTokens} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
SUBSCRIPTION_ID_META_KEY
Was export {SUBSCRIPTION_ID_META_KEY} from "./index-B-4n9P0J.mjs"; now export {SUBSCRIPTION_ID_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
SUPPORTED_PROTOCOL_VERSIONS
Was export {SUPPORTED_PROTOCOL_VERSIONS} from "./index-B-4n9P0J.mjs"; now export {SUPPORTED_PROTOCOL_VERSIONS} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
TRACEPARENT_META_KEY
Was export {TRACEPARENT_META_KEY} from "./index-B-4n9P0J.mjs"; now export {TRACEPARENT_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com - Signature changed
TRACESTATE_META_KEY
Was export {TRACESTATE_META_KEY} from "./index-B-4n9P0J.mjs"; now export {TRACESTATE_META_KEY} from "./index-BCNZS4Ap.mjs". npmjs.com
Related packages
- @modelcontextprotocol/server
- @modelcontextprotocol/node
- @modelcontextprotocol/hono
- @modelcontextprotocol/sdk
- @modelcontextprotocol/ext-apps
- @modelcontextprotocol/inspector
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.