@modelcontextprotocol/sdk
1.32.2 · 23 Oct 2026MIT93.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @modelcontextprotocol/sdk From 1.0.2 to 1.32.2
75 releases in betweennotes for 74
Reading releases, release notes and advisories…
Counted from 74 of 75 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.14.0
- Breaking1.13.3
- Breaking1.6.0
- Deprecated1.31.0
- Deprecated1.21.1
Security
Fixes 2 advisories affecting 1.0.2
- 1.27.1
Prevent command injection in example URL opening (v1.x backport)
- 1.26.0
Addresses "Sharing server/transport instances can leak cross-client response data" in this GHSA github.com/modelcontextprotocol/typescript-sdk/…
- 1.25.2
Prevent ReDoS in UriTemplate regex patterns (v1.x backport)
- 1.6.0
Update
esbuildto resolve security advisory
Release by release
- Fixed
Add explicit | undefined to Transport optional properties (v1.x backport of #1766)
- Fixed
Allow registering after connect() when the capability was declared
- Fixed
1.32.1nothing new or fixed in the note
- New
server: Add maxToolInputElements option to limit the number of elements in tool-call arguments
- New
auth: Add expectedResource to requireBearerAuth
- Fixed
client: Follow redirects only within the endpoint's origin
- Fixed
tasks: Keep tasks of the in-memory task store within the session that created them
- Fixed
server: Accept tools/call and prompts/get requests that omit arguments
- New
- Deprecated
Pass
expectedIssuerwhen constructingClientCredentialsProvider,PrivateKeyJwtProviderorStaticPrivateKeyJwtProvider. Constructing them without it is deprecated.
- Deprecated
- Fixed
server: Read HTTP request bodies with a size limit and bound JSON-RPC batch length
- Fixed
auth: Preserve resource URI without trailing slash
- Fixed
- New
Add end-to-end test suite
- Fixed
server: Prioritize zod issues and format them
- Fixed
Support Zod 3.25 method literals
- Fixed
Send SSE keep-alive comment frames from Streamable HTTP server transport (v1.x)
- Fixed
Fix SSE keep-alive timer lifecycle in Streamable HTTP server transport (v1.x)
- New
- New
Add typings exports
- New
Allow servers / clients to advertise extensions in the capability object
- Fixed
Treat v1.x as primary branch for npm latest tag (backport #1577)
- Fixed
Disallow null (infinite) requested TTL
- Fixed
Add missing size field to ResourceSchema
- Fixed
stdio: Always set windowsHide on Windows, not just in Electron
- New
- New
Use scopes_supported from resource metadata by default (fixes #580)
- Fixed
Reject plain JSON Schema objects passed as inputSchema
- Fixed
Clear _timeoutInfo in _onclose() and scope .finally() abort controller cleanup
- Fixed
server/auth: RFC 8252 loopback port relaxation
- New
123 other lines we could not sort, mostly version bumps
- 1.32.0
Redirects: the HTTP client transports now follow a redirect only when it stays on the same origin (same scheme, host and port; http to https on the same host is allowed). A deployment whose endpoint redirects to another host or port either configures the final URL or sets
redirectPolicy: 'follow'onStreamableHTTPClientTransportorSSEClientTransport. In browsers, a redirected request fails unless that option is set. - 1.32.0
New options, both off unless you set them:
maxToolInputElementsonMcpServerlimits the number of array elements and object members in a tool call's arguments.expectedResourceonrequireBearerAuthaccepts only tokens issued for this server (the token's audience). - 1.31.0
Stored OAuth tokens and client information now include an
issuerfield. Storage that rejects unknown fields needs to allow it. - 1.31.0
Bind stored OAuth credentials to the authorization server that issued them
- 1.30.0
v1 stdio buffer limit
- 1.30.0
Validate Content-Type by parsed media type instead of substring match (v1.x)
- 1.29.0
v1.x npm audit fix
- 1.29.0
v1.x #1623 follow up -add missing types to package.json
- 1.28.0
Default to client_secret_basic when server omits token_endpoint_auth_methods_supported
- 1.25.3
Use correct schema for client sampling validation when tools are present
70 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.