Skip to content

docs: Link live spec pages, and say what 2026-07-28 changes for ping, initialize, cancellation and progress - #402

Merged
jeanmatthieu merged 1 commit into
rel/1.0.0from
docs/spec-links
Nov 29, 2026
Merged

jeanmatthieu merged 1 commit into
rel/1.0.0from
docs/spec-links

Conversation

@jeanmatthieu

Copy link
Copy Markdown
Contributor

Several doc comments pointed readers at spec pages that no longer load, and described ping, the initialize handshake, 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.io no longer resolves, and 2026-07-28 moved cancellation and progress from basic/utilities/ to basic/patterns/ (the old 2026-07-28 paths redirect to the changelog). Every spec link in a doc comment points at a live page on modelcontextprotocol.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() sends server/discover, and .automatic mode tries server/discover before initialize. The -32601 answer is scoped to "a server that serves stateless requests", because a server with an initialize hook 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 (reason is not sent), and a server sends notifications/cancelled only to tear down a subscriptions/listen stream.
  • 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-errors passes (the new Client/ping(), Version/handshake and Client/ProtocolMode/automatic symbol links resolve)
  • swift scripts/doc-coverage.swift passes
  • Every new modelcontextprotocol.io URL returns 200 without a redirect (the SEP-2575 GitHub link is the one the spec changelog uses), and the #initialization, #list-changed-notification, #streamable-http and #transport-specific-cancellation anchors match headings on their pages
  • No spec.modelcontextprotocol.io or 2026-07-28/basic/utilities links remain in the repo

… 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.
@jeanmatthieu
jeanmatthieu requested a review from a team as a code owner November 29, 2026 15:44

@canarik canarik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jeanmatthieu

@jeanmatthieu
jeanmatthieu merged commit ee0c426 into rel/1.0.0 Nov 29, 2026
13 of 14 checks passed
@jeanmatthieu
jeanmatthieu deleted the docs/spec-links branch November 29, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants