Agent InfrastructureAutomated release watch

@modelcontextprotocol/node@2.1.1

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

Human read

Why this signal matters

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.

Agent parse

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

Agent usefulness
89/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • 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 .
Classification

Tags and routing

mcpsdktypescript
Related signals

Continue the thread