Repository navigation
test(mcp): fail closed for unsafe and disappearing repository roots - #295
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Later-run acceptance review on exact head 59e16f0: inspected the complete four-file patch and real adapter startup/revalidation code. The negative-path stdio tests verify exit=2, protocol-clean stdout, optional symlink rejection and fail-closed results when the configured fixture disappears mid-session. Quality CI (6 jobs) and pinned MCP SDK 2.3.0 stdio CI (1 job) passed at this head; no unresolved review threads. Scope is acceptable for integration as an experimental adapter test; this does NOT establish host compatibility (Claude Code/Codex), legacy protocol acceptance, clean pinned installation, hostile-mount/concurrent filesystem security, or production release readiness. Same-account COMMENT is evidence, not an independent approval.
Outcome
Extend the existing pinned-SDK stdio smoke rather than introducing a second framework. The real adapter process now refuses relative, missing, filesystem-root and home-directory roots (and symlink roots when the runner supports creating one), with exit 2, clean stdout and a bounded error. While one real MCP session stays connected, temporarily move its synthetic target away and require all three tools to return structured
incompleteevidence; restore the fixture and verify byte-identical contents.Keep README/ROADMAP claims honest: this remains an experimental optional SDK adapter, not a Claude Code/Codex host acceptance, independent clean installation, legacy protocol proof, or a concurrency-safe sandbox.
Verification
.github/workflows/mcp-protocol.ymlinvokes the expanded smoke on this change.quality.ymlperforms the standard Python/Windows checks.mcp==2.3.0(offline), so no local protocol PASS is claimed; inspect exact-head GitHub Actions results before separate acceptance.Related to #255. Intended as a small negative-path acceptance increment, not closure of #255.