# @modelcontextprotocol/node@2.1.0

Category: agent-infrastructure
Published: 2026-09-23T15:43:17Z
Source: [MCP TypeScript SDK releases](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol%2Fnode%402.1.0)
Agent usefulness: 72/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-09-28T00:17:56.128Z
Tags: mcp, sdk, typescript

## Human Summary
MCP TypeScript SDK (@modelcontextprotocol/node@2.1.0) adds request-time OAuth scope challenges for MCP primitives and introduces body size/batch limits to mitigate denial of service.

## Agent Summary
The 2.1.0 release introduces OAuth scope challenges (HTTP 403 preflight with WWW-Authenticate) for tools, resources, templates, and prompts via scopeChallenge callbacks and requireScopes. It also enforces a default 4 MiB body read limit across Streamable HTTP transports, a 100-message limit on JSON-RPC batch arrays, and moves Host/Origin validation before body parsing in Hono/Express adapters.

## Body
Minor release @modelcontextprotocol/node@2.1.0 introduces granular OAuth scope challenges across MCP primitives and body/batch constraints on HTTP transports. Key updates include: - Request-Time OAuth Scope Challenges: Tools, resources, resource templates, and prompts can define a scopeChallenge callback taking parsed requests and verified auth info. If scopes are insufficient, createMcpHandler and Streamable HTTP transports return HTTP 403 before execution. A requireScopes helper is provided. The AuthInfo object now contains an optional resourceMetadataUrl . - Streamable HTTP Request Limits: All SDK-owned HTTP body reads now default to a 4 MiB maximum ( DEFAULT MAX REQUEST BODY SIZE ), returning HTTP 413 ( RequestBodyTooLargeError ) when exceeded. This is configurable via maxRequestBodySize . Callers pre-parsing bodies via parsedBody bypass the read limit. - JSON-RPC Batch Limits: Batch arrays are capped at 100 messages, rejecting larger batches with 400 / -32600. - Pre-parsing Security: createMcpHonoApp and createMcpExpressApp now validate Host/Origin headers prior to parsing JSON bodies, returning 403 instead of 400 for unauthorized origins without reading the payload. - Dependency updates: Updated to @modelcontextprotocol/server@2.1.0 .

## Recommended actions
- Verify whether incoming HTTP payloads exceed the new 4 MiB default body limit, and configure maxRequestBodySize if larger requests are required.
- Ensure batch requests do not exceed 100 JSON-RPC messages to prevent 400 / -32600 errors.
- Adopt scopeChallenge or requireScopes on tools, resources, and prompts where granular OAuth authorization is needed.
- Update custom implementations calling toWebRequest to properly catch RequestBodyTooLargeError.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.