@modelcontextprotocol/sdk
1.32.2 · 23 Oct 2026MIT93.3M / weekRepositoryHomepagenpmAtom feed
1.32.2 is the newest release of 1.x.
In short
2 new4 fixed5 changed
Security
7 advisories affect 1.11.0; 1.32.0 fixes them
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch lengthGHSA-f897-62hf-6gxq · 27 Oct 2026Fixed in 1.30.1
- 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
- High@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuseGHSA-345p-7cg4-v4c7 · 4 Feb 2026Fixed in 1.26.0
- HighAnthropic's MCP TypeScript SDK has a ReDoS vulnerabilityGHSA-8r9q-7v3j-jr4g · 5 Jan 2026Fixed in 1.25.2
- HighModel Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by defaultGHSA-w48q-cv73-mx4w · 2 Dec 2025Fixed in 1.24.0
2 more
- 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
Tool Annotations
Adding support for Tools Annotations for better describing tool behavior, like whether it is read-only or destructive, as per protocol version 2025-03-26
Spec Version Update
Since we implemented most of the features in the recent spec we are updating the latest protocol version
Other Changes
Pass
requestIdto handlers via metadataStateless had a wrong example
Fix SSE transport server examples
Update README.md to include working examples
Pass request _meta to request handlers extra param
Update stateless streamable http usecase
Add 401 during POST request test case on StreamableHTTP transport to check auth flow
Ensure JSONRPCError messages are sent for streamable http
nit: Fix the comment format in the streamableHTTP.ts
comment: Fix stateless comments that no session-id is included in any responses
Add stderr access before start
Please report any issues at github.com/modelcontextprotocol/typescript-sdk/….
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.