modelcontextprotocol / modelcontextprotocol/servers

Case sensitivity preservation in list_allowed_directories

Open
#499 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug server-filesystem
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:

  1. Start server with case-sensitive paths like "/home/user/Desktop/"
  2. Call list_allowed_directories
  3. Observe that the returned paths are lowercase: "/home/user/desktop/"

Suggested fix: Modify path normalization to preserve case in the allowedDirectories array.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.