claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Windows ENOENT: Illegal colon character in MCP log directory paths

Open Boarderking01 opened this issue 1 month ago • 2 comments

Bug Description Windows: ENOENT error when plugin declares MCP servers - colons in directory names Environment:

OS: Windows 10/11 Claude Code version: 2.0.65 (npm-global) Node.js: v22.14.0

Description: Claude Code crashes on Windows when loading plugins that declare MCP servers. The error occurs because Claude Code creates log directories with colons (:) in the path name, which is an illegal character on Windows. Error: Error: ENOENT: no such file or directory, mkdir 'C:\xxxx\xxx\AppData\Local\claude-cli-nodejs\Cache\xxxxx\mcp-logs-plugin:compound-engineering:pw' Steps to reproduce:

Install Claude Code on Windows via npm Claude Code crashes on startup

Root cause: Claude Code names MCP log directories using colons as separators (e.g., mcp-logs-plugin:compound-engineering:pw). Windows does not allow colons in file/folder names (reserved for drive letters). Workaround: Rolled back to Claude Code version 2.0.60: npm install -g @anthropic-ai/[email protected] Suggested fix: Use a Windows-safe separator (like - or _) instead of : when creating MCP log directory names on Windows.

Environment Info

  • Platform: win32
  • Terminal: cursor
  • Version: 2.0.65
  • Feedback ID: 2682967f-fc7c-4c16-980f-5490a38ee26f

Errors

[]

Boarderking01 avatar Dec 11 '25 19:12 Boarderking01

Yeah, same for me... Although it's not a problem with 2.0.65 specifically, i had this issue for a few days, and the workaround until now was to run claude with npx

Error: ENOENT: no such file or directory, mkdir 'C:\Users<user>\AppData\Local\claude-cli-nodejs\Cache\D--Projects-inspekter-claude\mcp-logs-plugin:compound-engineering:pw' at Module.mkdirSync (node:fs:1349:26) at file:///.../@anthropic-ai/claude-code/cli.js:9:1826 ... code: 'ENOENT', path: 'C:\Users<user>\AppData\Local\claude-cli-nodejs\Cache\D--Projects-inspekter-claude\mcp-logs-plugin:compound-engineering:pw'

noises1990 avatar Dec 11 '25 19:12 noises1990

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/13679
  2. https://github.com/anthropics/claude-code/issues/13712
  3. https://github.com/anthropics/claude-code/issues/13699

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 11 '25 19:12 github-actions[bot]

This issue has been automatically closed as a duplicate of #13679.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 15 '25 09:12 github-actions[bot]