Implement SEP-3415: Events Extension
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- swift
- Bereich
- backend-api-design
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Swift
- Sterne
- 1.6k
- Forks
- 278
- Ø Merge
- 11 Std. 15 Min.
- Gemergte PRs (30 T.)
- 46
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus modelcontextprotocol/swift-sdk
-
-32042 without elicitations drops JSON-RPC error dataEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
modelcontextprotocol/swift-sdk#381 ·
Maintainer antworten meist innerhalb von 1 Tag
-
StdioTransport traps ("Negative value is not representable") when stdio is a socket, e.g. spawned by Node clientsEvtl. vergeben @branben hat das vor 9 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
modelcontextprotocol/swift-sdk#327 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Value decoding changes data-URL-looking JSON strings into Value.dataEvtl. vergeben @bitbemol hat das vor 89 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
modelcontextprotocol/swift-sdk#277 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
modelcontextprotocol/swift-sdk#274 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`HTTPClientTransport` fails to build on Windows: `#if !os(Linux)` guards no longer match the `EventSource` platform conditionEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
modelcontextprotocol/swift-sdk#261 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in modelcontextprotocol/swift-sdk
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
manaflow-ai/cmux#59692 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 71/100
jbcoe/cc-protocol#520 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 2 Tagen
-
App 仍在下载和解析用不上的会话列表Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
vibe-cafe/vibe-usage-app#125 ·
Maintainer antworten meist innerhalb von 1 Tag