@modelcontextprotocol/sdk
1.32.2 · 23 Oct 2026MIT93.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @modelcontextprotocol/sdk From 1.31.0 to 1.32.2
3 releases in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 4
- advisories fixed
- 2
- new
- 5
- fixes
Security
Fixes 4 advisories affecting 1.31.0
- MCP TypeScript SDK: Experimental tasks were not tied to the session that created themhigh · GHSA-22jm-h49p-29qw
- MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validationhigh · GHSA-46jr-4wx8-v453
- MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodiesmoderate · GHSA-6prh-2h8m-c8cw
- MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another servicemoderate · GHSA-rvq5-wwqv-78pq
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
2 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).
8 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.