McpServer.layerHttp: optional legacy GET SSE for idle list-change notifications
维护者通常 1 天内回复
@effect-bot 已经在做这个了。
开始于 2026年11月7日。
评估
这个 Issue 还没有评估数据。
描述
Feature request
Please consider an opt-in standalone GET SSE stream for sessionful MCP protocol revisions on McpServer.layerHttp, so an idle connected client can receive notifications/tools/list_changed (and the other list-change notifications).
This is a request for a currently documented limitation, not a claim that returning 405 violates the protocol: the GET event stream is optional. Effect 4.1.2 explicitly excludes GET SSE in the layerHttp documentation.
Reproduction and observed behavior
Environment: [email protected], @effect/[email protected], Node 26.12.1, and the independent @modelcontextprotocol/[email protected] client.
- Run a long-lived
McpServer.layerHttpendpoint withprotocols: [McpProtocol.v2025_11_25]and a registered toolkit. - Connect the SDK
ClientwithStreamableHTTPClientTransport, and register aToolListChangedNotificationSchemahandler. - Initialization, listing and tool calls succeed; the client retains its negotiated session id.
- The SDK opens an idle GET stream on the same endpoint. The endpoint returns 405.
- Update the registered tool description while the client is idle. A subsequent
listToolssees the new description, but the notification handler receives notools/list_changed(a separate 5-second wait expires). - The same dynamic catalog and SDK client over
layerStdio/StdioClientTransportreceive the notification without reconnecting.
The downstream proof exercises real HTTP calls and real stdio in a child process, including a live implementation transition. We keep the notification assertion on stdio and document the HTTP limitation rather than implement an alternate transport in the application.
Desired behavior
With an explicit option enabling legacy GET SSE, retain the stream under the MCP session owner and deliver server-initiated notifications independently of an active POST. Scope closure, session termination and client disconnect should close it. This need not include replay, event resumption or session expiry.
An application can change a tool's description or side-effect hints after replacing its implementation. Existing clients need to learn about that change before their next call; polling listTools on every call is not equivalent to the notification mechanism.
This differs from #8060, which covered notifications emitted during an active request, and #8919, which covered optional subscriptions for the 2026 protocol. Stdio and the newer subscription transport remain usable alternatives.
- 主要语言
- TypeScript
- 星标
- 16.7k
- 派生
- 808
- 平均合并
- 14 小时 46 分钟
- 30 天内合并 PR
- 798
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Effect-TS/effect 的其他 Issue
-
McpServer (2026-07-28): x-mcp-header check in tools/call runs before visibility gates and reveals hidden tools可能已有人在做 @effect-bot 今天认领。 未关闭
Effect-TS/effect#10493 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Tuple.map: accept ordinary callbacks while preserving tuple length可能已有人在做 @effect-bot 今天认领。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复
-
@effect/ai-openrouter: tool calls without an id, or stream deltas without an index, fail decoding可能已有人在做 @effect-bot 今天认领。 未关闭
Effect-TS/effect#10490 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Arbitrary.schema: no generation override for a struct's cross-field filter, and lookahead patterns are skipped quietly可能已有人在做 @effect-bot 今天认领。 未关闭
Effect-TS/effect#10479 · 已指派 1 人 ·
维护者通常 1 天内回复
-
fix(McpServer): stdio server exits 130 instead of 0 when the client closes stdin可能已有人在做 @effect-bot 今天认领。 未关闭
Effect-TS/effect#10474 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
prime-radiant-inc/evener#5901 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Bug: Batcher binds the texture that opens a new batch twice (one draw call per element with maxBatchableTextures = 1)可能已有人在做 @darzarzycki 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 2 天内回复
-
area:study-data p2-high ready-for-agent type:chore
难度 2/5 1-3 小时 新手友好度 78/100
fderuiter/deruiter.dev#3706 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
nicobailon/pi-subagents#3242 ·
维护者通常 1 天内回复