fix(filesystem): add symlink startup test and clarify catch block comment#3361
fix(filesystem): add symlink startup test and clarify catch block comment#3361olaservo wants to merge 1 commit into
Conversation
…ment Follow-up to modelcontextprotocol#3254 (symlinked allowed directories fix). - Add integration test in startup-validation.test.ts that spawns the server with a symlinked directory argument, verifying the startup code correctly stores both path forms - Clarify catch block comment documenting the design tradeoff when a directory doesn't exist at startup (only unresolved form is stored) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@claude review |
|
Claude finished @cliffhall's task in 1m 22s —— View job Code Review
Overall this is a clean, focused follow-up. The
|
|
@olaservo Do you still want to update the comment as per Claude's recommendation? I am fine with merging it as it is as well. |
Summary
Follow-up to #3254 (symlinked allowed directories fix), implementing the two suggestions from the review:
startup-validation.test.tsthat spawns the server with a symlinked directory argument, verifying the startup code correctly produces both path forms. This closes the gap between the unit test inpath-validation.test.ts(which manually constructs the allowedDirectories array) and the actual startup behavior.index.tsto document the design tradeoff: when a directory doesn't exist at startup, only the unresolved form is stored, so full symlink support requires the directory to exist at startup.Test plan
🦉 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com