Skip to content

[Docs][Examples][CI] Document and gate the 2026-07-28 lifecycle - #457

Merged
chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:pr/2026-docs-examples-ci
Aug 19, 2026
Merged

[Docs][Examples][CI] Document and gate the 2026-07-28 lifecycle#457
chr-hertel merged 1 commit into
modelcontextprotocol:mainfrom
chr-hertel:pr/2026-docs-examples-ci

Conversation

@chr-hertel

Copy link
Copy Markdown
Member

Stacked on #456. Tip of the stack.

docs/stateless-lifecycle.md walks the revision end to end — per-request _meta, server/discover, multi round-trip requests, caching and subscriptions — and a runnable example on each side shows what that looks like in code.

CI matrixes both conformance roles over both revisions. --spec-version is cumulative across the dated revisions, so 2025-11-25 covers the two before it; 2026-07-28 is not cumulative with them and needs its own run against its own baseline. The runner is pinned to an exact version so a PR only goes red for reasons in the PR, and conformance-weekly tracks the moving target instead — on both revisions, since the draft scenarios ship only on the alpha dist-tag.

The Inspector cannot reach a modern-lifecycle server (it opens with initialize), so the example is covered by integration tests instead: StatelessLifecycleTest drives it with hand-built HTTP the way a conforming client would, StatelessClientTest drives it with this SDK's client, and DualEraEndpointTest drives the one endpoint from both eras.

At this tip: modern conformance 151/151 · handshake conformance 80/80 · 1502 unit · 64 integration · PHPStan at the pre-existing baseline.


Cross-fork PRs can only target main, so this diff also carries its ancestors until they merge. Only the last commit(s) belong to this PR — GitHub's "Commits" tab separates them.

docs/stateless-lifecycle.md walks the revision end to end - per-request
_meta, server/discover, multi round-trip requests, caching and subscriptions
- and a runnable example on each side shows what that looks like in code.

CI matrixes both conformance roles over both revisions. --spec-version is
cumulative across the dated revisions, so 2025-11-25 covers the two before
it; 2026-07-28 is not cumulative with them and needs its own run against its
own baseline. The runner is pinned so a PR only goes red for reasons in the
PR, and conformance-weekly tracks the moving target instead - on both
revisions, since the draft scenarios ship only on the alpha dist-tag.

The Inspector cannot reach a modern-lifecycle server (it opens with
initialize), so the example is covered by integration tests instead: one
drives it with hand-built HTTP the way a conforming client would, one drives
it with this SDK's client, and one drives the single endpoint from both eras.
@chr-hertel
chr-hertel force-pushed the pr/2026-docs-examples-ci branch from 1448f66 to 23cb079 Compare August 19, 2026 00:54
@chr-hertel
chr-hertel merged commit 7fe8867 into modelcontextprotocol:main Aug 19, 2026
25 checks passed
@chr-hertel
chr-hertel deleted the pr/2026-docs-examples-ci branch August 19, 2026 01:24
@chr-hertel chr-hertel added 2026-07-28 All issues and PRs related to the spec release 2026-07-28 documentation Improvements or additions to documentation labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2026-07-28 All issues and PRs related to the spec release 2026-07-28 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant