Add structured filesystem startup validation errors - #3513
Conversation
|
User impact: Wrapper processes can now classify filesystem startup failures deterministically instead of scraping only free-form stderr.
Inspired by research context: CAISI publishes independent, reproducible AI agent governance research: https://caisi.dev |
|
@claude review |
|
Claude finished @cliffhall's task in 2m 21s —— View job PR Review: Add structured filesystem startup validation errors
The approach is clean and the general design is sound — a new However there are a few issues worth addressing, one of which is a semantic correctness problem. Issues1.
|
LuuOW
left a comment
There was a problem hiding this comment.
Technical audit: Verified MCP server implementation for consistency with current SDK patterns.
Problem
Filesystem server startup failures for missing or invalid roots were only emitted as free-form stderr text, which makes automated classification and audit receipts brittle.
Why now
Issue #3512 asked for a machine-readable startup taxonomy. Operators need stable error codes when validating fail-closed root configuration in CI and wrapper processes.
What changed
Validation
npm run --workspace @modelcontextprotocol/server-filesystem buildnpm run --workspace @modelcontextprotocol/server-filesystem test -- __tests__/startup-validation.test.tsRefs #3512