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

Resolved 💬 4 comments Opened Dec 11, 2025 by Boarderking01 Closed Dec 15, 2025

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/claude-code@2.0.60
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

[]

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗