Skip to content

test(mcp): verify modern and legacy stdio lifecycles against the same checkers - #297

Merged
drevendev merged 3 commits into
masterfrom
beautifulrepo/mcp-dual-era-smoke-20261107
Nov 7, 2026
Merged

drevendev merged 3 commits into
masterfrom
beautifulrepo/mcp-dual-era-smoke-20261107

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader-facing outcome

Expand the real pinned-SDK stdio smoke to exercise the two MCP protocol eras separately, without introducing another service, LLM call or required runtime dependency:

  • Client(..., mode="auto") must negotiate modern 2026-07-28 via server/discover.
  • Client(..., mode="legacy") must negotiate 2025-11-25 via initialize.
  • In both lifecycles, enumerate precisely the three argument-free tools, compare each result with the same direct offline checker on healthy and broken synthetic repositories, verify missing-root calls fail closed, and compare fixture file snapshots.
  • Keep the existing unsafe-startup tests and host-acceptance disclaimers; update the public guide and Unreleased CHANGELOG.

Source basis / scope

Based on the official Python MCP SDK protocol-version guide and v2 migration guide, reviewed 2026-11-07. This is not independent old-client interoperability, a Claude Code/Codex host test, an external installation, or a release. The optional CI already pins mcp==2.3.0; no dependency is added to the normal offline tools.

Acceptance

Require fresh Quality CI and MCP protocol CI on the exact PR head, review any failures and verify no material unresolved findings. Integrate only in a later-run acceptance step with current provider gates and expected head. Related: #255.

@andy-zen-dev andy-zen-dev 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.

Independent exact-head review — b560b800e643e861f70c2f78f43e5f0bfd8d3d1f

APPROVE (scoped to the optional pinned-SDK protocol smoke and accompanying documentation).

I reviewed the complete three-file diff, the surrounding integrations/mcp_protocol_smoke.py and integrations/mcp_server.py implementation, the focused workflow, the current AGENTS.md/CONTRIBUTING.md requirements, Issue #255, and the existing review history (no prior reviews or unresolved threads).

The smoke runs both explicit SDK modes on healthy and broken synthetic roots, asserts the respective negotiated protocol versions, checks exactly three argument-free tools against direct offline checker outputs, revalidates the missing-root failure path in both modes, and compares fixture snapshots before and after each session. The handbook and Unreleased changelog accurately bound the result to the pinned Python SDK; they do not claim independent legacy-client or Claude Code/Codex host acceptance.

Exact-head CI: Quality checks #42338496698 — six jobs successful (Python 3.11/3.14/Windows, both Action self-tests, Lint); optional MCP stdio protocol #42338496656 — one job successful. The combined commit-status endpoint reports no individual statuses; this is not interpreted as proof of checks. No independent local tests or real host/third-party-client integrations were run in this review.

No merge-blocking finding in the proposed change. Issue #255 remains open: clean immutable installation, real Claude Code/Codex discovery/invocation, independent legacy-client interoperability and broader adversarial/runtime acceptance are not established by this PR.

@drevendev
drevendev merged commit 331df37 into master Nov 7, 2026
7 checks passed
@drevendev
drevendev deleted the beautifulrepo/mcp-dual-era-smoke-20261107 branch November 7, 2026 05:21
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.

2 participants