# @modelcontextprotocol/node@2.1.1

Category: agent-infrastructure
Published: 2026-10-02T17:43:48Z
Source: [MCP TypeScript SDK releases](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/%40modelcontextprotocol%2Fnode%402.1.1)
Agent usefulness: 89/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-05T10:17:47.046Z
Tags: mcp, sdk, typescript

## Human Summary
@modelcontextprotocol/node@2.1.1 restricts Server/McpServer and stateless HTTP transports to handling a single connection or request at a time, requiring servers and transports to be instantiated per request or session.

## Agent Summary
Patch @modelcontextprotocol/node@2.1.1 enforces single-connection lifecycle on Server/McpServer instances and single-request lifecycle on stateless Streamable HTTP transports (sessionIdGenerator: undefined). Reusing instances across requests/sessions causes ALREADY CONNECTED errors or HTTP 500 rejections.

## Body
The @modelcontextprotocol/node@2.1.1 release introduces a breaking behavioral change regarding server and transport lifecycles. A Server or McpServer now only serves one connection at a time, and a Streamable HTTP server transport without sessions ( sessionIdGenerator: undefined ) serves only one request. Reusing a single server object or stateless transport across requests will cause subsequent requests to fail with ALREADY CONNECTED SdkErrors or HTTP 500 status codes. Applications must now construct a new server and transport per request, or build them per session when session IDs are used. Additionally, hono was transitioned to a regular dependency to resolve peer-dependency installation issues, and package manifests were updated to reflect the Apache-2.0 license.

## Recommended actions
- Refactor HTTP request handlers to instantiate McpServer / Server and stateless streamable transports inside the request handler instead of reusing global instances.
- Ensure createMcpHandler receives a factory function that creates a new server per invocation rather than returning a static pre-built server reference.
- Instantiate dedicated server objects per session if session management is enabled via sessionIdGenerator .

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