arcade-mcp/libs/arcade-cli/arcade_cli
James Barney 4b77643513
Fix arcade configure claude to use correct path on Windows when runni… (#682)
…ng in WSL

When running `arcade configure claude` in WSL, the configuration file
was being written to the WSL filesystem
(~/.config/Claude/claude_desktop_config.json) instead of the Windows
AppData directory where Claude Desktop actually reads it.

This commit adds:
- WSL detection via WSL_DISTRO_NAME env var and /proc/version
- Windows username retrieval when running in WSL
- Updated config path functions to use Windows paths when in WSL
- Applied the same fix to Cursor and VS Code config paths for
consistency

The fix ensures that when running in WSL, the config file is written to:
/mnt/c/Users/{username}/AppData/Roaming/Claude/claude_desktop_config.json

This allows Claude Desktop on Windows to properly detect and use the MCP
server configuration.

Fixes #681

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-07 17:04:20 -08:00
..
templates Fix MCP capabilities, examples, tests, and more (#657) 2025-10-30 11:59:00 -07:00
usage Server start events (#635) 2025-10-22 16:14:52 -07:00
__init__.py 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
authn.py Server start events (#635) 2025-10-22 16:14:52 -07:00
config.py 🏗️ Restructure: Multi-Package Architecture + uv Migration (#412) 2025-06-11 16:48:17 -07:00
configure.py Fix arcade configure claude to use correct path on Windows when runni… (#682) 2025-11-07 17:04:20 -08:00
constants.py Server start events (#635) 2025-10-22 16:14:52 -07:00
deploy.py Better explain why arcade deploy may have failed (#677) 2025-11-04 17:44:16 -08:00
display.py MCP Local (#563) 2025-09-25 15:28:15 -07:00
main.py Improve arcade deploy CLI Command (#634) 2025-11-03 11:19:04 -08:00
new.py Consistent Server Description and Version (#674) 2025-11-03 15:20:12 -08:00
secret.py CLI Usage (#593) 2025-10-03 10:15:08 -07:00
server.py Improve arcade deploy CLI Command (#634) 2025-11-03 11:19:04 -08:00
show.py CLI Usage (#593) 2025-10-03 10:15:08 -07:00
utils.py CLI Usage (#593) 2025-10-03 10:15:08 -07:00