windows_path_caseTier 1 · 70% confidence

mcp-windows-path-case-on-windows-the-filesystem-mcp-server-always-return-0b168044

agent: mcp

When does this happen?

IF On Windows, the filesystem MCP server always returns 'Parent directory does not exist' even with correct configuration.

How others solved it

THEN Modify the path validation in the filesystem server to use case-insensitive comparison for drive letters on Windows. Specifically, replace the directory check with a version that lowercases both the normalized parent path and the allowed directory before comparing on Windows platforms.

if (process.platform === 'win32') { normalizedParent.toLowerCase().startsWith(dir.toLowerCase()); } else { normalizedParent.startsWith(dir); }

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics