@modelcontextprotocol/sdk
1.32.1 · 5 Oct 2026MIT39.4M / weekRepositoryHomepagenpmAtom feed
Latest releases
All 82 releases1.32.1
5 Oct 2026Only updates a dependency:version 1.32.1
1.32.0
2 Oct 2026Redirects: 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.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).[v1.x] fix(client): follow redirects only within the endpoint's origin
Upgrade notes
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.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).
What's Changed
[v1.x] fix(client): follow redirects only within the endpoint's origin
[v1.x] fix(tasks): keep tasks of the in-memory task store within the session that created them
[v1.x] feat(server): add maxToolInputElements option to limit the number of elements in tool-call arguments
[v1.x] fix(server): accept tools/call and prompts/get requests that omit arguments
[v1.x] feat(auth): add expectedResource to requireBearerAuth
1.31.0
28 Sep 2026- deprecated
Pass
expectedIssuerwhen constructingClientCredentialsProvider,PrivateKeyJwtProviderorStaticPrivateKeyJwtProvider. Constructing them without it is deprecated. Stored OAuth tokens and client information now include an
issuerfield. Storage that rejects unknown fields needs to allow it.[v1.x] Bind stored OAuth credentials to the authorization server that issued them
Upgrade notes
Stored OAuth tokens and client information now include an
issuerfield. Storage that rejects unknown fields needs to allow it.- deprecated
Pass
expectedIssuerwhen constructingClientCredentialsProvider,PrivateKeyJwtProviderorStaticPrivateKeyJwtProvider. Constructing them without it is deprecated.
What's Changed
[v1.x] Bind stored OAuth credentials to the authorization server that issued them
1.30.1
23 Sep 2026[v1.x] fix(server): read HTTP request bodies with a size limit and bound JSON-RPC batch length
auth: preserve resource URI without trailing slash
What's Changed
[v1.x] fix(server): read HTTP request bodies with a size limit and bound JSON-RPC batch length
auth: preserve resource URI without trailing slash
1.30.0
27 Jul 2026server: prioritize zod issues and format them
Add end-to-end test suite
v1 stdio buffer limit
What's Changed
server: prioritize zod issues and format them
Add end-to-end test suite
v1 stdio buffer limit
support Zod 3.25 method literals
Validate Content-Type by parsed media type instead of substring match (v1.x)
send SSE keep-alive comment frames from Streamable HTTP server transport (v1.x)
Fix SSE keep-alive timer lifecycle in Streamable HTTP server transport (v1.x)
Dependency tracking · free for 3 projects
Know when your own dependencies move
@modelcontextprotocol/sdk had 8 security advisories in the last 12 months. Inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 22 Oct 2026. Releases and advisories last read 22 Oct 2026.