modelcontextprotocol / modelcontextprotocol/servers
Case sensitivity preservation in list_allowed_directories
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 90.5k
- Forks
- 11.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
The list_allowed_directories function currently returns paths in lowercase, even though the filesystem operations respect case sensitivity. This can be confusing when working with case-sensitive paths.
The issue appears to be in how paths are normalized when stored in allowedDirectories, while actual filesystem operations preserve case sensitivity.
Steps to reproduce:
- Start server with case-sensitive paths like "/home/user/Desktop/"
- Call list_allowed_directories
- Observe that the returned paths are lowercase: "/home/user/desktop/"
Suggested fix: Modify path normalization to preserve case in the allowedDirectories array.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the list_allowed_directories function and the allowedDirectories normalization path, then inspect where case is removed. Reproduce the issue with a mixed-case or case-sensitive path such as /home/user/Desktop/. Done means list_allowed_directories preserves the original path casing while filesystem operations continue to respect case sensitivity.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100