mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
4a8883ecc3
* fix(mcp): skip cmd /c wrapper for WSL target paths When the Claude config directory is set to a WSL network path (e.g., \wsl$\Ubuntu\home\user\.claude), the MCP export should not wrap npx/npm commands with cmd /c since WSL runs Linux. - Add is_wsl_path() to detect \wsl$\ and \wsl.localhost\ paths - Skip wrap_command_for_windows() when target is WSL path - Add comprehensive tests for various WSL distributions * chore(mcp): add debug log for WSL path detection * refactor(mcp): optimize is_wsl_path with next() and rename variable