Repository navigation
docs: Link live spec pages, and say what 2026-07-28 changes for ping, initialize, cancellation and progress - #402
Merged
Merged
Conversation
… initialize, cancellation and progress The spec moved from spec.modelcontextprotocol.io (no longer resolving) to modelcontextprotocol.io, and 2026-07-28 moved cancellation and progress from basic/utilities to basic/patterns. Every doc-comment spec link points at a live page, with a 2026-07-28 link next to the 2025-11-25 one where the two revisions differ. The comments themselves described only the handshake revisions: - ping, initialize and notifications/initialized do not exist at 2026-07-28 (SEP-2575). The comments say so, and what the SDK does instead: Client.ping() sends server/discover, and .automatic mode tries server/discover before initialize. - Cancelling a request at 2026-07-28 over Streamable HTTP closes its response stream rather than sending notifications/cancelled, and a server sends notifications/cancelled only to tear down a subscriptions/listen stream. - Progress notifications at 2026-07-28 flow only from the server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several doc comments pointed readers at spec pages that no longer load, and described ping, the
initializehandshake, cancellation and progress only as the handshake revisions define them. A reader of the 2026-07-28 side of the SDK got wrong answers from those comments.Links.
spec.modelcontextprotocol.iono longer resolves, and 2026-07-28 moved cancellation and progress frombasic/utilities/tobasic/patterns/(the old 2026-07-28 paths redirect to the changelog). Every spec link in a doc comment points at a live page onmodelcontextprotocol.io, with a 2026-07-28 link next to the 2025-11-25 one where the revisions differ.What 2026-07-28 changes (changelog, major change 5; SEP-2575):
Ping,Initialize,InitializedNotification: these exist only in the handshake revisions. The comments say what the SDK does instead:Client.ping()sendsserver/discover, and.automaticmode triesserver/discoverbeforeinitialize. The -32601 answer is scoped to "a server that serves stateless requests", because a server with aninitializehook and no stateless hook answers every stateless request with -32022 first.RequestContext,Client.send(_:),Client.cancelRequest(_:reason:),CancelledNotification: at 2026-07-28 over Streamable HTTP, closing the request's response stream is the cancellation (reasonis not sent), and a server sendsnotifications/cancelledonly to tear down asubscriptions/listenstream.ProgressNotification: only the server sends progress at 2026-07-28.Doc comments only, no CHANGELOG entry.
Test plan
No behavior change. Checked:
swift package generate-documentation --target MCP --warnings-as-errorspasses (the newClient/ping(),Version/handshakeandClient/ProtocolMode/automaticsymbol links resolve)swift scripts/doc-coverage.swiftpassesmodelcontextprotocol.ioURL returns 200 without a redirect (the SEP-2575 GitHub link is the one the spec changelog uses), and the#initialization,#list-changed-notification,#streamable-httpand#transport-specific-cancellationanchors match headings on their pagesspec.modelcontextprotocol.ioor2026-07-28/basic/utilitieslinks remain in the repo