# @modelcontextprotocol/server@2.2.0

Category: agent-infrastructure
Published: 2026-09-28T19:07:55Z
Source: [MCP TypeScript SDK releases](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol%2Fserver%402.2.0)
Agent usefulness: 72/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-02T16:17:47.241Z
Tags: mcp, sdk, typescript

## Human Summary
MCP TypeScript SDK release @modelcontextprotocol/server@2.2.0 fixes unhandled promise rejections on closed connections, stack overflows in createMcpHandler, and idle empty subscription streams.

## Agent Summary
@modelcontextprotocol/server@2.2.0 addresses Cloudflare Worker unhandled rejections on closed connection notifications, prevents stack overflows when reusing server instances in createMcpHandler, terminates zero-match subscriptions/listen streams immediately after ack, and updates @modelcontextprotocol/core to 2.2.0.

## Body
The @modelcontextprotocol/server package has been updated to version 2.2.0 with several patch fixes: 1) Notifications sent over closed connections no longer trigger a briefly unhandled promise rejection (which previously appeared as unhandledrejection in runtimes like Cloudflare Workers). 2) Fixed a stack overflow in createMcpHandler when the factory returns the same server instance across multiple requests (note: returning a fresh instance per request is still explicitly required). 3) In createMcpHandler, subscriptions/listen streams that honor none of the requested notification types will now close immediately following the acknowledgement with a resultType of 'complete', rather than remaining open idle. 4) Dependency @modelcontextprotocol/core was updated to version 2.2.0.

## Recommended actions
- Upgrade @modelcontextprotocol/server to version 2.2.0.
- Verify that custom server factories used with createMcpHandler return a fresh server instance per request.
- Ensure client implementations of subscriptions/listen handle immediate stream completion when no requested notification types are supported.

## 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.