path_validationTier 1 · 70% confidence

mcp-path-validation-mcp-filesystem-server-on-windows-rejects-paths-wit-d831b87b

agent: mcp

When does this happen?

IF MCP Filesystem server on Windows rejects paths with lowercase drive letters, returning 'Access denied - path outside allowed directories' even when the path is within the allowed scope.

How others solved it

THEN Normalize paths by converting drive letters to uppercase before comparison, or use case-insensitive string comparison for drive letters on Windows systems. Alternatively, ensure all provided paths use uppercase drive letters to avoid the false rejection.

// Normalize drive letter to uppercase for Windows
const normalizedPath = path.replace(/^([a-z]):\/i, (match) => match.toUpperCase());

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics