@modelcontextprotocol/server breaking changes
@modelcontextprotocol/server 2.4.0 (October 23, 2026) is its newest release with breaking changes, 51 of them. The first: Schemas with non-scheme $id or $ref text no longer compile in @modelcontextprotocol/server 2.4.0. Every breaking API change we have recorded in @modelcontextprotocol/server on npm: 51 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/server 2.4.0 breaking changes
- Behavior changed
The bundled Ajv now uses fast-uri 3.1.8, which rejects a $id or $ref whose text before the first colon is not a valid URI scheme, or whose URN namespace is invalid. Such schemas fail with an invalid-schema error; rename them. github.com - Behavior changed
outputSchema
A tool outputSchema whose root is a $ref to an object entry is now treated as an object. On 2025-era connections the schema and structuredContent are no longer wrapped in result, so clients reading structuredContent.result must read... github.com - Behavior changed
x-mcp-header
Tools that put x-mcp-header on a number parameter are now rejected. Change the parameter to an integer (z.int()) or remove the annotation. github.com - Signature changed
AuthorizationServerMetadata
Was export {type AuthorizationServerMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type AuthorizationServerMetadata} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
BAGGAGE_META_KEY
Was export {BAGGAGE_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {BAGGAGE_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
BaseContext
Was type BaseContext = {sessionId?: string; mcpReq: {id: RequestId; method: string; _meta?: RequestMeta; envelope?: Partial<RequestMetaEnvelope>; inputResponses?: Record<string, unknown>; droppedInputResponseKeys?: string[]; requestState... npmjs.com - Signature changed
BaseContext.mcpReq
Was mcpReq: {id: RequestId; method: string; _meta?: RequestMeta; envelope?: Partial<RequestMetaEnvelope>; inputResponses?: Record<string, unknown>; droppedInputResponseKeys?: string[]; requestState: RequestStateAccessor; signal... npmjs.com - Signature changed
BaseContext.mcpReq.send
Was send: {<M$1 extends RequestMethod>(request: {method: M$1; params?: Record<string, unknown>;}, options?: RequestOptions): Promise<ResultTypeMap[M$1]>; <T$1 extends StandardSchemaV1>(request: Request$1, resultSchema: T$1, options?... npmjs.com - Signature changed
CLIENT_CAPABILITIES_META_KEY
Was export {CLIENT_CAPABILITIES_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {CLIENT_CAPABILITIES_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
CLIENT_INFO_META_KEY
Was export {CLIENT_INFO_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {CLIENT_INFO_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
ClientContext.mcpReq.send
Was send: {<M$1 extends RequestMethod>(request: {method: M$1; params?: Record<string, unknown>;}, options?: RequestOptions): Promise<ResultTypeMap[M$1]>; <T$1 extends StandardSchemaV1>(request: Request$1, resultSchema: T$1, options?... npmjs.com - Signature changed
DEFAULT_NEGOTIATED_PROTOCOL_VERSION
Was export {DEFAULT_NEGOTIATED_PROTOCOL_VERSION} from "./createMcpHandler-D4NN8WsG.mjs"; now export {DEFAULT_NEGOTIATED_PROTOCOL_VERSION} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
IdJagTokenExchangeResponse
Was export {type IdJagTokenExchangeResponse} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type IdJagTokenExchangeResponse} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
INTERNAL_ERROR
Was export {INTERNAL_ERROR} from "./createMcpHandler-D4NN8WsG.mjs"; now export {INTERNAL_ERROR} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
INVALID_PARAMS
Was export {INVALID_PARAMS} from "./createMcpHandler-D4NN8WsG.mjs"; now export {INVALID_PARAMS} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
INVALID_REQUEST
Was export {INVALID_REQUEST} from "./createMcpHandler-D4NN8WsG.mjs"; now export {INVALID_REQUEST} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
JSONArray
Was export {JSONArray} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONArray} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
JSONObject
Was export {JSONObject} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONObject} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
JSONRPC_VERSION
Was export {JSONRPC_VERSION} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONRPC_VERSION} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
JSONValue
Was export {JSONValue} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONValue} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
LATEST_PROTOCOL_VERSION
Was export {LATEST_PROTOCOL_VERSION} from "./createMcpHandler-D4NN8WsG.mjs"; now export {LATEST_PROTOCOL_VERSION} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
LOG_LEVEL_META_KEY
Was export {LOG_LEVEL_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {LOG_LEVEL_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
METHOD_NOT_FOUND
Was export {METHOD_NOT_FOUND} from "./createMcpHandler-D4NN8WsG.mjs"; now export {METHOD_NOT_FOUND} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthClientInformation
Was export {type OAuthClientInformation} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientInformation} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthClientInformationFull
Was export {type OAuthClientInformationFull} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientInformationFull} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthClientInformationMixed
Was export {type OAuthClientInformationMixed} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientInformationMixed} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthClientMetadata
Was export {type OAuthClientMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientMetadata} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthClientRegistrationError
Was export {type OAuthClientRegistrationError} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientRegistrationError} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthErrorResponse
Was export {type OAuthErrorResponse} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthErrorResponse} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthMetadata
Was export {type OAuthMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthMetadata} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthProtectedResourceMetadata
Was export {type OAuthProtectedResourceMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthProtectedResourceMetadata} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthTokenRevocationRequest
Was export {type OAuthTokenRevocationRequest} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthTokenRevocationRequest} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OAuthTokens
Was export {type OAuthTokens} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthTokens} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OpenIdProviderDiscoveryMetadata
Was export {type OpenIdProviderDiscoveryMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OpenIdProviderDiscoveryMetadata} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
OpenIdProviderMetadata
Was export {type OpenIdProviderMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OpenIdProviderMetadata} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
PARSE_ERROR
Was export {PARSE_ERROR} from "./createMcpHandler-D4NN8WsG.mjs"; now export {PARSE_ERROR} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
PerRequestHTTPServerTransport.onmessage
Was onmessage?: <T$1 extends JSONRPCMessage>(message: T$1, extra?: MessageExtraInfo) => void; now onmessage?: <T extends JSONRPCMessage>(message: T, extra?: MessageExtraInfo) => void. npmjs.com - Signature changed
PROTOCOL_VERSION_META_KEY
Was export {PROTOCOL_VERSION_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {PROTOCOL_VERSION_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
Protocol._requestWithSchema
Was protected _requestWithSchema<T$1 extends StandardSchemaV1>(request: Request$1, resultSchema: T$1, options?: RequestOptions): Promise<StandardSchemaV1.InferOutput<T$1>>; now protected _requestWithSchema<T$1 extends... npmjs.com - Signature changed
Protocol.request
Was request<T$1 extends StandardSchemaV1>(request: Request$1, resultSchema: T$1, options?: RequestOptions): Promise<StandardSchemaV1.InferOutput<T$1>>; now request<T$1 extends StandardSchemaV1>(request: Request, resultSchema: T$1... npmjs.com - Signature changed
RELATED_TASK_META_KEY
Was export {RELATED_TASK_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {RELATED_TASK_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
Request
Was type Request$1 = Infer<typeof RequestSchema>; now type Request = Infer<typeof RequestSchema>. npmjs.com - Signature changed
SERVER_INFO_META_KEY
Was export {SERVER_INFO_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {SERVER_INFO_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
ServerContext.mcpReq
Was mcpReq: {id: RequestId; method: string; _meta?: RequestMeta; envelope?: Partial<RequestMetaEnvelope>; inputResponses?: Record<string, unknown>; droppedInputResponseKeys?: string[]; requestState: RequestStateAccessor; signal... npmjs.com - Signature changed
ServerEvent
Was type ServerEvent = {kind: 'tools_list_changed';} | {kind: 'prompts_list_changed';} | {kind: 'resources_list_changed';} | {kind: 'resource_updated'; uri: string;}; now type ServerEvent = ({kind: 'tools_list_changed';} | {kind... npmjs.com - Signature changed
StoredOAuthClientInformation
Was export {type StoredOAuthClientInformation} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type StoredOAuthClientInformation} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
StoredOAuthTokens
Was export {type StoredOAuthTokens} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type StoredOAuthTokens} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
SUBSCRIPTION_ID_META_KEY
Was export {SUBSCRIPTION_ID_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {SUBSCRIPTION_ID_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
SUPPORTED_PROTOCOL_VERSIONS
Was export {SUPPORTED_PROTOCOL_VERSIONS} from "./createMcpHandler-D4NN8WsG.mjs"; now export {SUPPORTED_PROTOCOL_VERSIONS} from "./mcp-BCJHyo7l.mjs". npmjs.com - Signature changed
TRACEPARENT_META_KEY
Was export {TRACEPARENT_META_KEY} from "./createMcpHandler-D4NN8WsG.mjs"; now export {TRACEPARENT_META_KEY} from "./mcp-BCJHyo7l.mjs". npmjs.com
And 1 more in this version. Sign up to see every change
Related packages
- @modelcontextprotocol/client
- @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.