Skip to content

fix(filesystem): tolerate quoted, spaced, and 8.3 Windows paths in config args (#447) - #4684

Open
adityachaudhary99 wants to merge 1 commit into
modelcontextprotocol:mainfrom
adityachaudhary99:fix/filesystem-win-config-paths-447
Open

fix(filesystem): tolerate quoted, spaced, and 8.3 Windows paths in config args (#447)#4684
adityachaudhary99 wants to merge 1 commit into
modelcontextprotocol:mainfrom
adityachaudhary99:fix/filesystem-win-config-paths-447

Conversation

@adityachaudhary99

Copy link
Copy Markdown

Closes #447

Paths with spaces, surrounding quotes, a leading tilde, Git-Bash style /c/foo prefixes, or 8.3 short names could fail when configured as allowed directories.

  • New parseAllowedDirectories() normalizes every argv entry before validation: trim, strip one pair of surrounding quotes, expand leading ~, win32-only /c/foo to C:\foo conversion, resolve
  • Startup symlink resolution switched to realpathSync.native(), which also expands Windows 8.3 short names
  • README gains a Windows paths usage subsection

Tests: extended path-utils suite + win32-gated startup spawn tests; green locally on Windows 11.
Note: submitted alongside #470; whichever merges second rebases cleanly (both touch the index.ts startup block).

Copilot AI balanced review requested due to automatic review settings August 22, 2026 06:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

filesystem MCP server doesn't support legal Windows pathnames in claude_desktop_config.json

2 participants