@modelcontextprotocol/sdk
1.32.2 · 23 Oct 2026MIT93.3M / weekRepositoryHomepagenpmAtom feed
1.32.2 is the newest release of 1.x.
In short
2 new3 fixed2 changed4 internal
Security
Fixes 4 advisories that affected 1.31.0
- HighMCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validationGHSA-46jr-4wx8-v453 · 20 Oct 2026Fixed in 1.32.0
- HighMCP TypeScript SDK: Experimental tasks were not tied to the session that created themGHSA-22jm-h49p-29qw · 20 Oct 2026Fixed in 1.32.0
- ModerateMCP TypeScript SDK: Server bearer authentication accepted tokens issued for another serviceGHSA-rvq5-wwqv-78pq · 20 Oct 2026Fixed in 1.32.0
- ModerateMCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodiesGHSA-6prh-2h8m-c8cw · 20 Oct 2026Fixed in 1.32.0
Release note
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
client: Follow redirects only within the endpoint's origin
tasks: Keep tasks of the in-memory task store within the session that created them
server: Add maxToolInputElements option to limit the number of elements in tool-call arguments
server: Accept tools/call and prompts/get requests that omit arguments
auth: Add expectedResource to requireBearerAuth
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.