Agent 基础设施官方发布自动监测

@modelcontextprotocol/server@2.2.0

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.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

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.

Agent 解析

可执行摘要

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

Agent 实用度
72/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • 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.
分类

标签与路由

mcpsdktypescript
相关信号

继续阅读