This repository was archived by the owner on Mar 7, 2026. It is now read-only.
test(mcp-kernel-server): add stdio JSON-RPC E2E transport tests#304
Merged
imran-siddique merged 1 commit intoMar 3, 2026
Merged
Conversation
|
@Ca23187 is attempting to deploy a commit to the Imran Siddique's projects Team on Vercel. A member of the Team first needs to authorize it. |
imran-siddique
approved these changes
Mar 3, 2026
Owner
imran-siddique
left a comment
There was a problem hiding this comment.
Excellent work @Ca23187! This is exactly the kind of transport-level testing we needed. The stdio E2E tests complement the existing handler-level tests perfectly.
Code review notes:
- Clean \StdioServer\ abstraction with proper process lifecycle management
- Good use of \selectors\ for non-blocking reads with timeout
- Thorough coverage: initialize → tools/list → tools/call roundtrip, unknown method (-32601), unknown tool (MCP isError), malformed JSON (-32603)
- Correct decision to skip on Windows due to asyncio pipe limitations
Merging — thanks for the contribution! 🎉
Owner
|
ℹ️ This project has moved to microsoft/agent-governance-toolkit. All future development, issues, and PRs should be directed there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add end-to-end tests for MCP Kernel Server stdio mode.
These tests start the server with
--stdioin a real subprocess and validateJSON-RPC 2.0 request/response cycles over stdin/stdout. Coverage includes:
This ensures transport-level protocol compliance beyond handler-level tests.
Type of Change
Related Issues
Fixes #286
Checklist
pytest tests/ -v)Testing
All tests pass on Linux (Ubuntu).
Stdio transport tests are skipped on Windows due to asyncio pipe limitations.
# Commands used to test pytest modules/mcp-kernel-server/tests/test_stdio_e2e.pyScreenshots (if applicable)