Repository navigation
The 2026-07-28 protocol revision is now on by default on both server and client, servers can publish events to webhooks, and the official Tasks extension is implemented. Servers stay dual-era, so clients on older revisions keep working unchanged.
🚀 2026-07-28 is the default (#252, #255, #256)
- Server:
MCPServer.advertisesModernEranow defaults totrueand is an opt-out.server/discoverlists2026-07-28;initializestill negotiates the legacy revisions, so a client proposing2026-07-28there gets2025-11-25. - Client:
MCPServerProxyprobesserver/discoverfirst and falls back toinitialize.eraPreference(.legacy,.auto,.modern) chooses the behaviour, and the newpreferredProtocolVersionproposes one specific revision (#228, #256). - Pushes: modern clients receive list-changed and resource-updated notifications through
subscriptions/listen, a POST answered with a long-lived SSE stream (#248). - Streamable HTTP: CORS allows the
Mcp-*headers, and a modern-only server (HTTPSSETransport.servesLegacyEra == false) answersGETandDELETE /mcpwith 405 (#245, #246). - Utilities: modern requests get log notifications only at or above the
logLevelin their own_meta; modernpingandlogging/setLevelreturn -32601. Roots is deprecated (#249). - Results:
ttlMsandcacheScopecache hints on list results,resources/readandserver/discover, withMCPCacheHintProvidingas the author hook.tools/listis sorted by name, and unknowninputSchema/outputSchemakeywords round-trip (#243). - Tracing:
traceparent,tracestateandbaggageare parsed from_metaintoRequestContext.Meta(#244).
📣 Events with webhook delivery (#204)
Servers declare event types with the new @MCPEvent macro, and clients on the modern revision subscribe a webhook to them.
- Declare and list:
@MCPEvent, also inside@MCPExtensionextensions.events/listreturns the declared types, and the capability is advertised only when there is at least one (#264). - Subscribe:
events/subscribeandevents/unsubscribe, with an in-memory store and a JSON-file store that survives restarts. Subscriptions are bound to the caller and expire unless refreshed (#266). - Deliver:
emitvalidates the payload against the event's schema and sends each matching subscription a signed Standard Webhooks POST. Transient failures are retried with backoff andRetry-After, keeping the samewebhook-id, and every delivery returns an outcome (#267, #273). - Safety: callbacks must be https, redirects are refused, and hosts resolving to private, loopback or link-local addresses are blocked (#265).
- Client:
MCPServerProxycan list, subscribe to and unsubscribe from events. The demo server emits a sampleci.failedevent (#270).
⏳ Official Tasks extension (#223)
io.modelcontextprotocol/tasks is implemented: capability negotiation, tasks/get, tasks/update and tasks/cancel, task handles for opted-in tools, TTL and cancellation, and isolation between principals. tasks/list and tasks/result are not part of this release.
🔐 OAuth conformance (#224)
- The authorization response's
issis validated (RFC 9207). - The proxy's
POST /oauth/registerrequiresapplication_typeto bewebornative. Clients that omit it are now rejected withinvalid_client_metadata. OAuthClientCredentialStorebinds credentials to their issuer.- Client ID Metadata Documents are validated.
🛠 Fixes
- SIGPIPE no longer kills the process on Linux and Android (#281): libcurl could restore the default SIGPIPE action after a
URLSessiontransfer, and the next NIO write to a closed socket then ended the process without a crash record. SwiftMCP now re-ignores SIGPIPE where the event loops and eachURLSessionstart. MCPServerProxyno longer crashes afterdisconnect()(#277): a request that started on the invalidatedURLSessiontook the process down.HTTPSSETransport.stop()under load (#216, #218): the listener is closed and accepted connections are quiesced before the event loops shut down. This removes the "leaking promise" crash in debug builds.- SSE and U+0085, U+2028, U+2029 (#208, #209): the client splits lines only at CR, LF and CRLF, and the server escapes these characters in
data:lines, so a message containing them is no longer cut in two. - Generated clients and a parameter named
arguments(#274): the real value is sent instead of an empty object. - Non-ASCII text in descriptions (#276): doc-comment text such as
1–600,Caféor日本語is kept in tool and parameter descriptions. Before,1–600became1600. - In-process loopback notifications (#207): a captured
Sessionnow delivers resource-updated, list-changed and log notifications after its request has finished. - TCP send failures (#206):
TCPConnection.writethrows when a send fails, so pending requests fail instead of hanging, and TCP keepalive is on.StdioConnection.writeis nowasync throws.