Skip to content

Normalize Windows drive paths for mounted roots#88

Open
Peter7896 wants to merge 1 commit into
rust-mcp-stack:mainfrom
Peter7896:peter7896/windows-native-path-normalization
Open

Normalize Windows drive paths for mounted roots#88
Peter7896 wants to merge 1 commit into
rust-mcp-stack:mainfrom
Peter7896:peter7896/windows-native-path-normalization

Conversation

@Peter7896

Copy link
Copy Markdown

Closes #87

Summary:

  • Normalize Windows drive-letter paths before allowed-directory validation, so C:\... and C:/... match mounted roots such as /C/... when the server runs in a Unix-style environment.
  • Apply the same normalization to configured allowed directories and file:// roots.
  • Add regression coverage for native Windows paths inside mounted roots and rejection outside the allowed root.

Validation:

  • cargo fmt --all -- --check
  • cargo test
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo check --tests --target x86_64-unknown-linux-gnu

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.

edit_file rejects native Windows paths but accepts "/C/... " Unix paths

1 participant