Race condition in StreamableHTTP: zero-buffer memory streams cause deadlock with concurrent SSE responses

此问题出现在使用 MCP Python SDK 的 StreamableHTTPServerTransport 时,常见场景包括: 使用 FastMCP 构建的 MCP 服务器(stateless_http=True)返回包含数组(3+ 元素)的工具响应 Claude Code 等客户端通过互联网连

![[Request] Add DOS Kernel MCP server to the MCP marketplace](https://www.chat-gpts.plus/wp-content/uploads/2026/06/15740-03e4d016-768x403.jpg)


![[Bug] Server crashes with anyio.ClosedResourceError when receiving raw invalid UTF-8 bytes](https://www.chat-gpts.plus/wp-content/uploads/2026/06/2328-473a47b7-768x403.jpg)



