Repository navigation
Version Packages - #184
Open
github-actions[bot] wants to merge 1 commit into
Open
Version Packages#184github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
December 23, 2025 18:49
04a0898 to
85091b9
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
6 times, most recently
from
January 14, 2026 00:54
ed66b0a to
4f02d5a
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
5 times, most recently
from
January 22, 2026 20:16
5475898 to
5425ee9
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
4 times, most recently
from
January 28, 2026 22:50
b165ad8 to
820bfe4
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
7 times, most recently
from
February 6, 2026 19:26
70d3d66 to
ab946d9
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
5 times, most recently
from
February 13, 2026 20:49
6df74b7 to
ae67dbb
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
February 20, 2026 00:23
d040c16 to
0b11446
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
3 times, most recently
from
March 16, 2026 02:48
480a2a1 to
45afe01
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
10 times, most recently
from
March 30, 2026 14:08
9ebfb8a to
68934ef
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
4 times, most recently
from
March 31, 2026 20:44
35cc43b to
3832832
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
3 times, most recently
from
April 4, 2026 19:36
3ec4ddc to
46067a6
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
4 times, most recently
from
April 16, 2026 23:55
80ac0da to
3c3a830
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
April 23, 2026 14:50
d68485d to
ac04abd
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
April 29, 2026 07:58
9d1a7eb to
d9e7ae5
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@modelcontextprotocol/client@2.5.0
Minor Changes
#2370
2ada652Thanks @mattzcarey! - Add aloggeroption toClient,McpServer,createMcpHandlerand the built-in OAuth providers such asClientCredentialsProvider, and an optionalsdkLoggerproperty toOAuthClientProvider, so SDK diagnostics can be routed through user-provided logging. Omitting them keeps the currentconsoleoutput.#3115
1e608caThanks @mattzcarey! -Client,ServerandMcpServernow emit OpenTelemetry spans andmcp.client.operation.duration/mcp.server.operation.durationhistograms for every MCP request and notification exceptnotifications/message, following the OpenTelemetry semantic conventions for MCP, and propagate W3C trace context throughparams._meta(SEP-414). There is nothing to configure: register an OpenTelemetry SDK and MCP traffic shows up. PassopenTelemetry: falseto aClient,ServerorMcpServerto turn its instrumentation off. Without one, the OpenTelemetry API is a no-op, nothing is recorded and messages are unchanged.@opentelemetry/api(^1.9.0) is a new required peer dependency of@modelcontextprotocol/clientand@modelcontextprotocol/server, so the SDK uses the same copy as the application's OpenTelemetry SDK. npm 7+, pnpm 8+ and Bun install it automatically. Setups that don't install peers must add@opentelemetry/apito their dependencies, or importing either package fails: Yarn (classic, and Berry with any linker),npm --legacy-peer-deps, and pnpm withauto-install-peers=false.What changes for applications that already run an OpenTelemetry SDK:
@modelcontextprotocol/clientand@modelcontextprotocol/serverinstrumentation scopes. If you already trace MCP, passopenTelemetry: false, or with Sentry remove itsMcpServerintegration, to avoid duplicate spans. Filtering the MCP scopes instead leaves handler spans parented on spans that are never exported.params._meta, as HTTP requests carry it in headers:traceparentandtracestate, plusbaggageif the propagator includes W3C Baggage (theNodeSDKdefault), so baggage entries reach MCP peers, including third-party servers. RegisterW3CTraceContextPropagatoralone to send trace context only._metamember, as they already do for callers that passonprogress.Spans do not record tool arguments, tool results or prompt arguments. They do record JSON-RPC error messages, handler exception messages and resource URIs. The span and attribute names are experimental while the MCP semantic conventions are in development.
#2820
600f69dThanks @mattzcarey! - Server and client extensions (experimental: theextensionsoption, the extension shapes and their contexts,useandacceptResultTypemay change in a minor release while the extensions SEPs settle). An extension is{ id, setup(ctx) }, passed inMcpServerOptions.extensionsorClientOptions.extensions.setupruns at construction, in array order, and adds everything through its context. It may be async: the setups after it wait for it, andconnectwaits for all of them and rejects if one fails. Its context provides:ctx.capability(settings)sets what is advertised undercapabilities.extensions[id]({}by default),ctx.setRequestHandler(name, schemas, handler)registers the handler for a custom request method and refuses core request and notification names and methods that already have a handler,ctx.use(method, middleware)wraps a method's handler, andctx.require(extensionId)declares that the extension needs another extension, failing construction when it isn't installed (orconnect, from or after an asyncsetup). The server context also carriesctx.mcp, theMcpServer; the client context carriesctx.clientandctx.acceptResultType. A duplicate id, or an entry for an installed id incapabilities.extensions, fails construction before any extension is set up;registerCapabilitiesalso refuses an installed id's entry.Protocol.use(method, (request, ctx, next) => …)is middleware around the registered handler, composed at dispatch time in registration order, inside middleware extensions add withctx.use, so middleware ontools/callapplies even thoughMcpServerregisters that handler lazily; it returns a remover. Middleware sees the request before params validation and therequestState.verifyhook. On a method with no handler,nextthrowsMethodNotFound, which a per-request HTTP exchange answers with 404 when the middleware passes it through.Protocol.acceptResultType(method, resultType)declares an extension result kind for a method: a raw response carrying thatresultTypebypasses the era codec's closed vocabulary and is validated against the caller's explicit result schema as-is, while typed calls such ascallToolreject it withUnsupportedResultTypeon either protocol version; that is how a client extension receives shapes such as the Tasks extension'sresultType: "task"ontools/call.useandctx.usewrap requests this side receives: a core notification,subscriptions/listenon a server, or a core request this side is never sent throws aTypeError.Patch Changes
#3108
39ae8e6Thanks @claude! - The bundled Ajv validator is now built with fast-uri 3.1.9 (was 3.1.8). A schema no longer compiles when a$idor$refhas a percent-encoded character before its first colon (%61:b), or{or}in the host of anhttp,https,wsorwssURL (http://{host}/a). Relative values keep their leading..segments: a$refto a$idsuch as../anow resolves, and a$refof only dot segments (.,../) no longer resolves to the root schema. Plain names,#/$defs/...references, other URLs and URNs are not affected.#2877
b415e60Thanks @dasjideepak! - AddOAuthClientProvider.skipOfflineAccessConsentPrompt(and the matchingstartAuthorization()option) so a client can omit theprompt=consentthe SDK adds when the requested scope includesoffline_access. Default behavior is unchanged. This unblocks authorization servers such as Microsoft Entra ID tenants that have user consent disabled and admin consent granted, where a forced consent prompt fails withAADSTS90095for non-admin users.Updated dependencies []:
@modelcontextprotocol/server@2.5.0
Minor Changes
#2370
2ada652Thanks @mattzcarey! - Add aloggeroption toClient,McpServer,createMcpHandlerand the built-in OAuth providers such asClientCredentialsProvider, and an optionalsdkLoggerproperty toOAuthClientProvider, so SDK diagnostics can be routed through user-provided logging. Omitting them keeps the currentconsoleoutput.#3115
1e608caThanks @mattzcarey! -Client,ServerandMcpServernow emit OpenTelemetry spans andmcp.client.operation.duration/mcp.server.operation.durationhistograms for every MCP request and notification exceptnotifications/message, following the OpenTelemetry semantic conventions for MCP, and propagate W3C trace context throughparams._meta(SEP-414). There is nothing to configure: register an OpenTelemetry SDK and MCP traffic shows up. PassopenTelemetry: falseto aClient,ServerorMcpServerto turn its instrumentation off. Without one, the OpenTelemetry API is a no-op, nothing is recorded and messages are unchanged.@opentelemetry/api(^1.9.0) is a new required peer dependency of@modelcontextprotocol/clientand@modelcontextprotocol/server, so the SDK uses the same copy as the application's OpenTelemetry SDK. npm 7+, pnpm 8+ and Bun install it automatically. Setups that don't install peers must add@opentelemetry/apito their dependencies, or importing either package fails: Yarn (classic, and Berry with any linker),npm --legacy-peer-deps, and pnpm withauto-install-peers=false.What changes for applications that already run an OpenTelemetry SDK:
@modelcontextprotocol/clientand@modelcontextprotocol/serverinstrumentation scopes. If you already trace MCP, passopenTelemetry: false, or with Sentry remove itsMcpServerintegration, to avoid duplicate spans. Filtering the MCP scopes instead leaves handler spans parented on spans that are never exported.params._meta, as HTTP requests carry it in headers:traceparentandtracestate, plusbaggageif the propagator includes W3C Baggage (theNodeSDKdefault), so baggage entries reach MCP peers, including third-party servers. RegisterW3CTraceContextPropagatoralone to send trace context only._metamember, as they already do for callers that passonprogress.Spans do not record tool arguments, tool results or prompt arguments. They do record JSON-RPC error messages, handler exception messages and resource URIs. The span and attribute names are experimental while the MCP semantic conventions are in development.
#2449
350f916Thanks @mattzcarey! -McpServer.registerToolnow type-checks a callback's successful result against the tool'soutputSchema, for Standard Schema and deprecated raw-shape schemas. A successful result must includestructuredContentthat matches the schema and is notundefined;isError: trueresults, input-required results, tools without anoutputSchema, and tools whose schema has anunknownoutput type (such as an untypedfromJsonSchema(...)) are unchanged. Runtime output validation is unchanged.New exported types:
ToolResultFor,ToolStructuredContent,ToolResultWithStructuredContent,ToolErrorResult.ToolCallbacktakes an optional second type parameter for the output schema.Code that compiled before can now fail to compile, for a tool with a typed
outputSchema, when the callback:structuredContentthat does not match the schema, or a successful result without it;stringfor an enum);CallToolResult(aPromise<CallToolResult>annotation, a helper returningCallToolResult, orToolCallback<typeof inputSchema>); useToolCallback<typeof inputSchema, typeof outputSchema>or drop the annotation;outputSchemathat may beundefined, which is checked as if present.#2820
600f69dThanks @mattzcarey! - Server and client extensions (experimental: theextensionsoption, the extension shapes and their contexts,useandacceptResultTypemay change in a minor release while the extensions SEPs settle). An extension is{ id, setup(ctx) }, passed inMcpServerOptions.extensionsorClientOptions.extensions.setupruns at construction, in array order, and adds everything through its context. It may be async: the setups after it wait for it, andconnectwaits for all of them and rejects if one fails. Its context provides:ctx.capability(settings)sets what is advertised undercapabilities.extensions[id]({}by default),ctx.setRequestHandler(name, schemas, handler)registers the handler for a custom request method and refuses core request and notification names and methods that already have a handler,ctx.use(method, middleware)wraps a method's handler, andctx.require(extensionId)declares that the extension needs another extension, failing construction when it isn't installed (orconnect, from or after an asyncsetup). The server context also carriesctx.mcp, theMcpServer; the client context carriesctx.clientandctx.acceptResultType. A duplicate id, or an entry for an installed id incapabilities.extensions, fails construction before any extension is set up;registerCapabilitiesalso refuses an installed id's entry.Protocol.use(method, (request, ctx, next) => …)is middleware around the registered handler, composed at dispatch time in registration order, inside middleware extensions add withctx.use, so middleware ontools/callapplies even thoughMcpServerregisters that handler lazily; it returns a remover. Middleware sees the request before params validation and therequestState.verifyhook. On a method with no handler,nextthrowsMethodNotFound, which a per-request HTTP exchange answers with 404 when the middleware passes it through.Protocol.acceptResultType(method, resultType)declares an extension result kind for a method: a raw response carrying thatresultTypebypasses the era codec's closed vocabulary and is validated against the caller's explicit result schema as-is, while typed calls such ascallToolreject it withUnsupportedResultTypeon either protocol version; that is how a client extension receives shapes such as the Tasks extension'sresultType: "task"ontools/call.useandctx.usewrap requests this side receives: a core notification,subscriptions/listenon a server, or a core request this side is never sent throws aTypeError.#3153
5ee54eeThanks @mattzcarey! - AMcpServertool result withstructuredContentand nocontentnow gets a text block holding the serialized JSON ofstructuredContent, as the tools spec recommends, instead ofcontent: []. This applies to every tool result, with or without anoutputSchemaorisError. A result that suppliescontent, even an empty array, is handled as before. To match, successful results of a tool with a typedoutputSchemamay omitcontentin TypeScript, both inregisterTooland inRegisteredTool.update({ callback }).Patch Changes
#3108
39ae8e6Thanks @claude! - The bundled Ajv validator is now built with fast-uri 3.1.9 (was 3.1.8). A schema no longer compiles when a$idor$refhas a percent-encoded character before its first colon (%61:b), or{or}in the host of anhttp,https,wsorwssURL (http://{host}/a). Relative values keep their leading..segments: a$refto a$idsuch as../anow resolves, and a$refof only dot segments (.,../) no longer resolves to the root schema. Plain names,#/$defs/...references, other URLs and URNs are not affected.#3167
919bb8eThanks @mattzcarey! - Reject atools/callwith400/-32020(HeaderMismatch) when a body argument declared withx-mcp-headeris an object or array, with or without itsMcp-Param-*header, and when the argument is an integer outside the safe range but the header is present. Previously the header check was skipped for these values, so the call reached the tool.Updated dependencies []:
@modelcontextprotocol/server-legacy@2.5.0
Patch Changes
@modelcontextprotocol/codemod@2.5.0
@modelcontextprotocol/core@2.5.0
@modelcontextprotocol/core-internal@2.1.0
Minor Changes
#2370
2ada652Thanks @mattzcarey! - Add aloggeroption toClient,McpServer,createMcpHandlerand the built-in OAuth providers such asClientCredentialsProvider, and an optionalsdkLoggerproperty toOAuthClientProvider, so SDK diagnostics can be routed through user-provided logging. Omitting them keeps the currentconsoleoutput.#3115
1e608caThanks @mattzcarey! -Client,ServerandMcpServernow emit OpenTelemetry spans andmcp.client.operation.duration/mcp.server.operation.durationhistograms for every MCP request and notification exceptnotifications/message, following the OpenTelemetry semantic conventions for MCP, and propagate W3C trace context throughparams._meta(SEP-414). There is nothing to configure: register an OpenTelemetry SDK and MCP traffic shows up. PassopenTelemetry: falseto aClient,ServerorMcpServerto turn its instrumentation off. Without one, the OpenTelemetry API is a no-op, nothing is recorded and messages are unchanged.@opentelemetry/api(^1.9.0) is a new required peer dependency of@modelcontextprotocol/clientand@modelcontextprotocol/server, so the SDK uses the same copy as the application's OpenTelemetry SDK. npm 7+, pnpm 8+ and Bun install it automatically. Setups that don't install peers must add@opentelemetry/apito their dependencies, or importing either package fails: Yarn (classic, and Berry with any linker),npm --legacy-peer-deps, and pnpm withauto-install-peers=false.What changes for applications that already run an OpenTelemetry SDK:
@modelcontextprotocol/clientand@modelcontextprotocol/serverinstrumentation scopes. If you already trace MCP, passopenTelemetry: false, or with Sentry remove itsMcpServerintegration, to avoid duplicate spans. Filtering the MCP scopes instead leaves handler spans parented on spans that are never exported.params._meta, as HTTP requests carry it in headers:traceparentandtracestate, plusbaggageif the propagator includes W3C Baggage (theNodeSDKdefault), so baggage entries reach MCP peers, including third-party servers. RegisterW3CTraceContextPropagatoralone to send trace context only._metamember, as they already do for callers that passonprogress.Spans do not record tool arguments, tool results or prompt arguments. They do record JSON-RPC error messages, handler exception messages and resource URIs. The span and attribute names are experimental while the MCP semantic conventions are in development.
#2820
600f69dThanks @mattzcarey! - Server and client extensions (experimental: theextensionsoption, the extension shapes and their contexts,useandacceptResultTypemay change in a minor release while the extensions SEPs settle). An extension is{ id, setup(ctx) }, passed inMcpServerOptions.extensionsorClientOptions.extensions.setupruns at construction, in array order, and adds everything through its context. It may be async: the setups after it wait for it, andconnectwaits for all of them and rejects if one fails. Its context provides:ctx.capability(settings)sets what is advertised undercapabilities.extensions[id]({}by default),ctx.setRequestHandler(name, schemas, handler)registers the handler for a custom request method and refuses core request and notification names and methods that already have a handler,ctx.use(method, middleware)wraps a method's handler, andctx.require(extensionId)declares that the extension needs another extension, failing construction when it isn't installed (orconnect, from or after an asyncsetup). The server context also carriesctx.mcp, theMcpServer; the client context carriesctx.clientandctx.acceptResultType. A duplicate id, or an entry for an installed id incapabilities.extensions, fails construction before any extension is set up;registerCapabilitiesalso refuses an installed id's entry.Protocol.use(method, (request, ctx, next) => …)is middleware around the registered handler, composed at dispatch time in registration order, inside middleware extensions add withctx.use, so middleware ontools/callapplies even thoughMcpServerregisters that handler lazily; it returns a remover. Middleware sees the request before params validation and therequestState.verifyhook. On a method with no handler,nextthrowsMethodNotFound, which a per-request HTTP exchange answers with 404 when the middleware passes it through.Protocol.acceptResultType(method, resultType)declares an extension result kind for a method: a raw response carrying thatresultTypebypasses the era codec's closed vocabulary and is validated against the caller's explicit result schema as-is, while typed calls such ascallToolreject it withUnsupportedResultTypeon either protocol version; that is how a client extension receives shapes such as the Tasks extension'sresultType: "task"ontools/call.useandctx.usewrap requests this side receives: a core notification,subscriptions/listenon a server, or a core request this side is never sent throws aTypeError.Patch Changes
#3167
919bb8eThanks @mattzcarey! - Reject atools/callwith400/-32020(HeaderMismatch) when a body argument declared withx-mcp-headeris an object or array, with or without itsMcp-Param-*header, and when the argument is an integer outside the safe range but the header is present. Previously the header check was skipped for these values, so the call reached the tool.Updated dependencies []: