Repository navigation
test(mcp): exercise legacy stdio with an independent JSON-RPC client - #539
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Exact-head review — blocking test shutdown defect
Head e9a7eb7fcb3c9f4815961194ec42260e19129a4b, observed base
8531a05ec26edb02c624d1bf85b2639199a5b007. Reviewed the complete three-file
patch, server entry point, #255 and the current discussion and CI logs.
Content verdict: changes required. In integrations/mcp_protocol_smoke.py
line 442, await process.communicate() does not close the child's stdin on
Python 3.11 when its input argument is None. Consequently no EOF is sent,
while the parent waits for stdout EOF. Both candidate CI jobs reproduce the
10-second TimeoutError at that exact line, on the healthy fixture after the
three direct-CLI parity assertions. Neither emits an independent wire receipt;
the broken fixture and subsequent checks are not reached.
Evidence: Ubuntu Python 3.11 job,
Windows Python 3.11 job.
The matching CPython implementations (3.11.18,
3.11.9)
select _noop() rather than _feed_stdin() for this call.
Explicitly close stdin before awaiting bounded shutdown, or pass input=b""
to communicate so the Python 3.11 implementation closes it. Preserve the
zero return code, empty trailing stdout and unchanged snapshot assertions;
do not count forced termination as graceful shutdown. Require both healthy
and broken-fixture receipts on both candidate OS jobs after correction.
Increasing the timeout alone cannot fix the missing EOF.
Quality CI passed all six jobs; both historical pinned-source MCP jobs passed,
but those do not exercise this new candidate probe. The narrow raw JSON-RPC
approach, changelog and distinction from third-party host acceptance are
otherwise consistent with this increment. No production adapter change is
necessary on the evidence currently available.
Reviewer-local full checkout / pinned-SDK tests: NOT_RUN. The diagnosis is
based on actual hosted failures and matching CPython source, not a local
Python 3.11 execution. The authenticated reviewer and PR author are both
drevendev; this COMMENT records a blocking content finding rather than
claiming a formal independent REQUEST_CHANGES or approval. Related: #255
remains open; real host and release acceptance are not established.
drevendev
left a comment
There was a problem hiding this comment.
Follow-up exact-head review — shutdown correction verified
Head ebdb39e6a2e5d640e3e8184f5fd583309463bdde, observed base
8531a05ec26edb02c624d1bf85b2639199a5b007. Re-read the complete three-file
patch, #255, repository instructions and prior blocking review. No inline
threads are outstanding.
Content verdict: PASS for this bounded increment. The previous shutdown
blocker is resolved: process.communicate(input=b"") explicitly supplies EOF
on Python 3.11. The bounded wait, zero child exit, empty trailing stdout and
unchanged fixture checks remain intact. Forced termination still cannot emit
a success receipt. No production adapter changes are included.
The replacement candidate CI logs identify the tested merge of this exact
head and base, with mcp==2.3.0. Both Ubuntu
and Windows
contain both independent wire receipts (4/4 total). All negotiate 2025-11-25,
match direct CLI structured evidence and report unchanged fixture files.
Healthy exits are (0,0,0) and broken-Markdown exits are (0,1,1) for audit,
documentation links and HTML navigation respectively. Receipt emission follows
the graceful shutdown assertions. Both candidate jobs and both historical
pinned-source jobs passed; all six Quality jobs
also passed. No blocking finding remains in this increment.
Non-blocking evidence maintenance: the PR description still says fresh CI is
pending; record the replacement run and four observed receipts when updating
the evidence. The guide correctly distinguishes the independent implementation
of a narrow client from a third-party host and does not change the old pin.
Reviewer-local full verification and real SDK/host execution: NOT_RUN.
Hosted CI is observed evidence, not a local run. Both authenticated author
and reviewer are drevendev; this run-separated COMMENT is not independent
actor approval. Provider branch-protection enforcement was not inspected.
Related: #255 remains open for real-host and release acceptance.
Progress toward #255's independent-client evidence gap, without host registration, paid model calls or production adapter changes.
All three committed files read back with matching blob SHAs. No local full suite or actual SDK run performed in this environment; fresh candidate CI and later-run acceptance are pending. This is not a general MCP client, independent third-party host, real Claude Code/Codex trial, or a release. No catalog changes.