Repository navigation
Conversation
f6b844e to
c0ce601
Compare
|
Updated the coverage for the parse-error path after the first CI run showed the full test suite passing but coverage dropping below 100%. Local checks on the updated branch:
I also attempted the full coverage command locally on Windows/Python 3.13, but it fails in existing integration transport tests before coverage reporting ( |
c0ce601 to
f76a0b3
Compare
|
Follow-up pushed in f76a0b3 after the remote coverage failure on stdio.py line 51. I added the missing malformed-JSON numeric-id regression case so the fallback Local validation:
|
f76a0b3 to
b63f5f8
Compare
|
Follow-up pushed in b63f5f8 after the Python 3.14 lowest-direct job exposed an unrelated stderr exact-match fragility in the stdio interaction test. The test still verifies that the subprocess clean-exit marker is passed through stderr, but now checks the marker as a suffix so dependency warnings emitted by the child interpreter do not fail the test before the server's own line. Local validation:
|
b63f5f8 to
ce57bfe
Compare
|
Rebased this branch on current The rebase conflict was in the stdio tests after upstream's stdio lifecycle rewrite. I kept the new Validated locally:
|
ce57bfe to
3170893
Compare
Union of two independent features sharing the file head: the parse-error helpers stay, the stream-claim machinery (modelcontextprotocol#3117) stays; the reader loop keeps upstream's claim-wrapped structure with the parse-error response inside it.
|
This branch was polluted by duplicated " 2"-suffixed files and is red; main's stdio rewrite covers the parse-error path anyway. Closing; a clean redo can come from a fresh clone if needed. |
Summary
Fixes #2751.
To verify
uv run pytest tests/server/test_stdio.py -quv run ruff check src/mcp/server/stdio.py tests/server/test_stdio.pyuv run pyright src/mcp/server/stdio.py tests/server/test_stdio.pygit diff --check