---
title: "@modelcontextprotocol/server 2.4.0 Breaking Changes on npm"
description: "What each @modelcontextprotocol/server release removed, renamed or changed: 51 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@modelcontextprotocol/server
last_updated: 2026-12-04
---

# @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

Latest version `2.4.0`, released October 23, 2026. [Source repository](https://github.com/modelcontextprotocol/typescript-sdk)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## @modelcontextprotocol/server 2.4.0 breaking changes

@modelcontextprotocol/server 2.4.0, released October 23, 2026: 51 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](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol/server%402.4.0)
- **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](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol/server%402.4.0)
- **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](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol/server%402.4.0)
- **Signature changed** `AuthorizationServerMetadata`  

Was export {type AuthorizationServerMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type AuthorizationServerMetadata} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `IdJagTokenExchangeResponse`  

Was export {type IdJagTokenExchangeResponse} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type IdJagTokenExchangeResponse} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `INTERNAL_ERROR`  

Was export {INTERNAL_ERROR} from "./createMcpHandler-D4NN8WsG.mjs"; now export {INTERNAL_ERROR} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `INVALID_PARAMS`  

Was export {INVALID_PARAMS} from "./createMcpHandler-D4NN8WsG.mjs"; now export {INVALID_PARAMS} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `INVALID_REQUEST`  

Was export {INVALID_REQUEST} from "./createMcpHandler-D4NN8WsG.mjs"; now export {INVALID_REQUEST} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `JSONArray`  

Was export {JSONArray} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONArray} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `JSONObject`  

Was export {JSONObject} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONObject} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `JSONRPC_VERSION`  

Was export {JSONRPC_VERSION} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONRPC_VERSION} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `JSONValue`  

Was export {JSONValue} from "./createMcpHandler-D4NN8WsG.mjs"; now export {JSONValue} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthClientInformation`  

Was export {type OAuthClientInformation} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientInformation} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthClientInformationFull`  

Was export {type OAuthClientInformationFull} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientInformationFull} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthClientInformationMixed`  

Was export {type OAuthClientInformationMixed} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientInformationMixed} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthClientMetadata`  

Was export {type OAuthClientMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientMetadata} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthClientRegistrationError`  

Was export {type OAuthClientRegistrationError} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthClientRegistrationError} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthErrorResponse`  

Was export {type OAuthErrorResponse} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthErrorResponse} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthMetadata`  

Was export {type OAuthMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthMetadata} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthProtectedResourceMetadata`  

Was export {type OAuthProtectedResourceMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthProtectedResourceMetadata} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthTokenRevocationRequest`  

Was export {type OAuthTokenRevocationRequest} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthTokenRevocationRequest} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OAuthTokens`  

Was export {type OAuthTokens} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OAuthTokens} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OpenIdProviderDiscoveryMetadata`  

Was export {type OpenIdProviderDiscoveryMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OpenIdProviderDiscoveryMetadata} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `OpenIdProviderMetadata`  

Was export {type OpenIdProviderMetadata} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type OpenIdProviderMetadata} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `PARSE_ERROR`  

Was export {PARSE_ERROR} from "./createMcpHandler-D4NN8WsG.mjs"; now export {PARSE_ERROR} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `Request`  

Was type Request$1 = Infer\<typeof RequestSchema>; now type Request = Infer\<typeof RequestSchema>. [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `StoredOAuthClientInformation`  

Was export {type StoredOAuthClientInformation} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type StoredOAuthClientInformation} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **Signature changed** `StoredOAuthTokens`  

Was export {type StoredOAuthTokens} from "./createMcpHandler-D4NN8WsG.mjs"; now export {type StoredOAuthTokens} from "./mcp-BCJHyo7l.mjs". [npmjs.com](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)
- **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](https://www.npmjs.com/package/@modelcontextprotocol/server/v/2.4.0)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [@modelcontextprotocol/client](https://since.dev/packages/npm/@modelcontextprotocol/client.md)
- [@modelcontextprotocol/node](https://since.dev/packages/npm/@modelcontextprotocol/node.md)
- [@modelcontextprotocol/hono](https://since.dev/packages/npm/@modelcontextprotocol/hono.md)
- [@modelcontextprotocol/sdk](https://since.dev/packages/npm/@modelcontextprotocol/sdk.md)
- [@modelcontextprotocol/ext-apps](https://since.dev/packages/npm/@modelcontextprotocol/ext-apps.md)
- [@modelcontextprotocol/inspector](https://since.dev/packages/npm/@modelcontextprotocol/inspector.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
