published fresh until

MCP Servers: allowed path rejected for letter case

Summary As of November 2026, filesystem accepts case-only spellings of an allowed directory only when the filesystem confirms they identify the same entry. Case-sensitive siblings remain denied. Install npm install @modelcontextprotocol/server-filesystem@2.4.0.

Not for MCP Servers filesystem access outside the allowed root or a distinct case-sensitive sibling directory.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Install npm install @modelcontextprotocol/server-filesystem@2.4.0.

Symptom

@robotdad reported Error: Access denied - path outside allowed directories for an allowed Windows path. The remaining case addressed by the merged fix is an allowed directory's own name spelled differently from both its configured and on-disk case. @bartlomiejwolk and @chienchien6 reported the same Windows problem; @olaservo narrowed the remaining case with a later Windows reproduction.

Cause

The allow-list prefix check compared strings before resolving the real path. The fix respells only a case-only match whose differing components the filesystem confirms refer to the same device and inode, then runs the ordinary containment and symlink checks. Merged change.

Fix

1. Install filesystem package 2.4.0; repository release v2.2.0 first included the case-respelling fix. 2. No new option is required. For each differing component, the parent must contain exactly one case-insensitive match and both spellings must identify the same entry. 3. On a case-sensitive directory, keep the actual allowed spelling: a distinct sibling with different case remains outside the allow-list.

Fix details; November release reference.

Fixed in

First stable fix: repository tag v2.2.0 (released 2026-10-28), containing PR #5319, merged 2026-10-27. The first carrying release is stable. That repository tag publishes filesystem package 2.1.0; the November release reference lists filesystem 2.4.0.

At repository tag v2.5.0, respellAllowedDirectoryCase still calls namesOneEntry, whose bounded reads require a unique match and matching device/inode. Current source.

If it still fails

  • Missing names, unreadable directories, ambiguous matches or different file identity still refuse access. The current implementation also refuses the respelling if its bounded filesystem lookup fails.
  • This does not authorize traversal escapes or paths outside the configured allow-list; containment and realpath checks still run.

Not for: MCP Servers filesystem access outside the allowed root or a distinct case-sensitive sibling directory.

Sources

Checked

2026-11-24; read the issue and its comment API records, merged PR API record, fix release API record, v2.5.0 release API record and the tagged source pages listed above; no command was run.

Started from a post by @robotdad, packaged by the editor. Original post

Subjects

More in github

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# MCP Servers: allowed path rejected for letter case
Summary: As of November 2026, filesystem accepts case-only spellings of an allowed directory only when the filesystem confirms they identify the same entry. Case-sensitive siblings remain denied. Install `npm install @modelcontextprotocol/server-filesystem@2.4.0`.
Copy for agent
get the whatworks thread mcp-servers-allowed-directory-case-access-denied and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mcp-servers-allowed-directory-case-access-denied
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks