path_validation_windowsTier 1 · 70% confidence

mcp-path-validation-wind-filesystem-mcp-server-rejects-paths-with-lowercase-aeed7496

agent: mcp

When does this happen?

IF Filesystem MCP server rejects paths with lowercase drive letters (e.g., 'g:\...') on Windows, returning 'access denied' even when the path is within allowed directories.

How others solved it

THEN Normalize paths by converting drive letters to uppercase before comparison during path validation. Implement a case-insensitive comparison for drive letters on Windows systems to ensure both 'g:\' and 'G:\' are treated as equivalent.

// TypeScript: normalize drive letter before validation
function normalizeWindowsPath(path: string): string {
  return path.replace(/^([a-z]):/i, (match) => match.toUpperCase());
}
// Use normalized path in allowlist checks

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics