jedarden
|
77eeaeccca
|
test(bf-59ah8): document MCP server process spawning and JSON-RPC communication implementation
Completes bead bf-59ah8 - MCP server subprocess management and JSON-RPC
message handling for SSRF blocking tests.
Implementation includes:
- RAII process guard (McpServerGuard) with bounded cleanup waits
- JSON-RPC tools/call message construction
- LSP-style framed message I/O (Content-Length headers)
- Response parsing for error messages
- Seven test cases for SSRF blocking validation
Communication layer verified working - tests successfully spawn MCP server,
send JSON-RPC messages, receive and parse responses. No orphaned processes.
Test results: 1/7 tests pass (test_ipv4_loopback_blocked handles both error
and stub responses). Other 6 tests expect SSRF blocking implementation
(separate task).
Closes bf-59ah8
|
2026-07-06 12:03:16 -04:00 |
|