Windows: MCP log directory creation fails due to colons in path
Resolved 💬 2 comments Opened Dec 11, 2025 by rmi-incom Closed Dec 11, 2025
Description
On Windows, Claude Code fails to create MCP plugin log directories because the generated path contains colons (:), which are illegal characters in Windows filesystem paths.
Error Message
ENOENT: no such file or directory, mkdir 'C:\Users\rmi\AppData\Local\claude-cli-nodejs\Cache\C--Users-rmi-Sources-gas-core-backtesting\mcp-logs-plugin:fp-claude-plugin:context7'
path: "C:\Users\rmi\AppData\Local\claude-cli-nodejs\Cache\C--Users-rmi-Sources-gas-core-backtesting\mcp-logs-plugin:fp-claude-plugin:context7",
syscall: "mkdir",
errno: -2,
code: "ENOENT"
Steps to Reproduce
- Install a plugin marketplace on Windows
- Run a plugin command that triggers MCP logging (e.g., a health check command)
- Observe the
ENOENTerror when Claude tries to create log directories
Expected Behavior
Directory names should use Windows-safe characters. Colons should be replaced with dashes, underscores, or another safe delimiter on Windows.
Environment
- OS: Windows 11 (10.0.26100.7092)
- Claude Code Version: 2.0.65
Suggested Fix
When generating MCP log directory paths on Windows (process.platform === 'win32'), replace colons with a safe character like - or _.
🤖 Generated with Claude Code
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗