Implement SEP-3415: Events Extension
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- swift
调研方向
Read the SEP-3415 specification and compare its requirements with the subscriptions/listen handler in rel/1.0.0 and the TaskManager/withTasks(_:) pattern. The proposal identifies server and client entry points, but leaves key decisions open about the target branch, beta stability policy, error codes, and webhook scope. Done means agreeing on those decisions and implementing the selected Events API against the specified revision.
由索引模型根据 Issue 内容生成。
描述
Tracking implementation of SEP-3415, the Events extension (io.modelcontextprotocol/events), for the 2026-07-28 spec release. The SEP is Final and the extension is Beta.
I'd like to contribute this. I'm building a macOS app that hosts an MCP server and pushes events to clients it spawns over stdio, so push delivery is what I need first.
Proposed first PR
- Server:
events/list,events/pollandevents/stream, with cursors, replay,truncated, heartbeats,terminatedand list-changed notifications. - Event types fed either by
emitfrom the host or by acheckfunction. - A shared
EventRegistryactor installed withServer.withEvents(_:), followingTaskManagerandwithTasks(_:), so oneemitreaches everyServerthat shares it. events/streammodelled on thesubscriptions/listenhandler inrel/1.0.0.- A small client API:
listEvents,pollEventsandstreamEvents. - Mode selection and reconnection on the client are left out.
Webhook delivery as a follow-up
I'd leave events/subscribe and events/unsubscribe for a second PR. Webhook delivery is the largest part of the extension: it needs signed deliveries, endpoint verification, guards against callbacks to internal hosts, an authenticated principal per subscription, and subscriptions that expire unless refreshed. Parts of it are also still being discussed (modelcontextprotocol/ext-events#9, #21, #22). Poll and push are smaller and settled enough to start with. If you'd rather have all three modes in one PR, I can do that instead.
Questions
- The extension relies on the 2026-07-28 revision,
server/discoverandsubscriptions/listen, which exist only onrel/1.0.0. Should the PR build on that branch and targetmainonce #372 merges? - The extension is Beta and has already changed (modelcontextprotocol/ext-events#11 renumbered the error codes, modelcontextprotocol/ext-events#7 moved the capability). How would you like to handle that?
- Ship it in the
MCPmodule like Tasks and Skills, under the 1.x stability promise. - Ship it as a separate product outside that promise until the extension is stable.
- Hold off until the extension leaves Beta.
- Ship it in the
- Since the
MCPErrorcases are frozen for 1.x, should the new error codes, -32023 to -32026, beMCPError.Codeconstants used with.serverError(code:message:data:)?
Related: modelcontextprotocol/typescript-sdk#3209 (draft), modelcontextprotocol/python-sdk#3881, modelcontextprotocol/rust-sdk#1488, modelcontextprotocol/csharp-sdk#2038.
AI disclosure: I used an AI assistant (Claude) to research the SDK and the spec and to draft this issue, and I reviewed it before posting.
- 主要语言
- Swift
- 星标
- 1.6k
- 派生
- 278
- 平均合并
- 11 小时 15 分钟
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
modelcontextprotocol/swift-sdk 的其他 Issue
-
-32042 without elicitations drops JSON-RPC error data可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
modelcontextprotocol/swift-sdk#381 ·
维护者通常 1 天内回复
-
StdioTransport traps ("Negative value is not representable") when stdio is a socket, e.g. spawned by Node clients可能已有人在做 @branben 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 73/100
modelcontextprotocol/swift-sdk#327 · 1 条评论 ·
维护者通常 1 天内回复
-
Value decoding changes data-URL-looking JSON strings into Value.data可能已有人在做 @bitbemol 于 89 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
modelcontextprotocol/swift-sdk#277 ·
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 78/100
modelcontextprotocol/swift-sdk#274 ·
维护者通常 1 天内回复
-
`HTTPClientTransport` fails to build on Windows: `#if !os(Linux)` guards no longer match the `EventSource` platform condition可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
modelcontextprotocol/swift-sdk#261 ·
维护者通常 1 天内回复
查看 modelcontextprotocol/swift-sdk 的全部 Issue
相似的 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
manaflow-ai/cmux#59692 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
vibe-cafe/vibe-usage-app#125 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 76/100
touyou/CheckItOut#39 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
touyou/IntentTodo#232 ·
维护者通常 1 天内回复