Skip to content

fix(filesystem): allow recursive directory creation - #4705

Closed
CryoThrust wants to merge 1 commit into
modelcontextprotocol:mainfrom
CryoThrust:fix/filesystem-recursive-directory-validation
Closed

fix(filesystem): allow recursive directory creation#4705
CryoThrust wants to merge 1 commit into
modelcontextprotocol:mainfrom
CryoThrust:fix/filesystem-recursive-directory-validation

Conversation

@CryoThrust

Copy link
Copy Markdown
Contributor

Summary

  • resolve the nearest existing ancestor when validating a new path
  • preserve realpath checks for symlink escapes while allowing nested paths
  • make the existing recursive create_directory contract work for arbitrarily deep paths
  • update validation coverage for missing intermediate directories

Closes #4629

Validation

  • git diff --check
  • TypeScript/Vitest execution is currently blocked on this host because the Homebrew Node 22 binary cannot load libsimdjson.29.dylib.

@CryoThrust

Copy link
Copy Markdown
Contributor Author

Closing this PR because #4654 already covers the same recursive create_directory path-validation fix. Avoiding duplicate implementation.

@CryoThrust CryoThrust closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

server-filesystem: create_directory does not create parent directories

1 participant