Repository navigation
test(mcp): verify modern and legacy stdio lifecycles against the same checkers - #297
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
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.
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 modern2026-07-28viaserver/discover.Client(..., mode="legacy")must negotiate2025-11-25viainitialize.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.