docs: Add WSL setup guide and automation script for Claude Code#121
docs: Add WSL setup guide and automation script for Claude Code#121jeffaf wants to merge 1 commit into0x4m4:masterfrom
Conversation
eac74b9 to
db668a0
Compare
Add comprehensive documentation for setting up HexStrike MCP in WSL2 environments connecting to a HexStrike server running on Windows host. New files: - WSL_SETUP.md: Step-by-step guide covering: - Architecture diagram showing WSL → Windows host → VM connectivity - Prerequisites and quick setup instructions - Manual setup with Windows firewall and port proxy commands - Troubleshooting section for common issues - Mirrored networking mode alternative - wsl-setup.sh: Automated setup script that: - Installs Python dependencies - Detects Windows host IP automatically - Tests server connectivity - Configures Claude Code MCP settings - Provides clear Windows configuration instructions when needed This addresses the community need for WSL documentation and Claude Code CLI setup (previously only Claude Desktop was documented). Related to 0x4m4#12, 0x4m4#120 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
This is a Rube Goldberg configuration that is not ideal, and will not work as you have described it. I suspect Claude itself is the author of this mess, but why did the humans in the loop set it to this particularly task in the first place? You can run the server and mcp component AND claude on a single wsl instance that would run lighter than this setup. Or even better, run the server and mcp on a single instance of Kali WSL with all the tools and requirements ready to go, and then use claude for windows, if you have to use Claude in the first place. Either will work with the localhost forwarding, which is enabled in WSL2 by default. The second problem you have not addressed is trying to invoke tools that require root from a normal users account. As there is no interactivity, it will fail as it cannot pass the sudo password. The way around this is to visudo the user in the instance that contains the tools, and set it to all:all, unless you want to create individual passwordless sudo exceptions for 60+ tools. A better and cheaper way is run server and mcp on the kali wsl instance from the store, and then use Void and Roo to connect to it. This lets you use openrouter (free) or Z.AI 4.6 (3$ a month) on almost any system, without paying for claude. Im not even sure if claude will run 150 tool defs in one mcp load, to be honest. |
It works fine for me.
Yep, but this is for if you need to connect to a VM outside of WSL. Personally, I need Claude Code for Linux because I use PAI (https://github.com/danielmiessler/Personal_AI_Infrastructure) but its not a requirement for this setup.
?? I'm not using tools that require sudo and I don't think hexstrike is either but I don't know for sure.
Sounds cool, I like roo too. I don't know if Claude will load 150 tools either but I think it would. Instead here we just load hexstrike. And yes the docs were generated by Claude Code and it says as much at the bottom. |
Summary
This PR adds comprehensive documentation for setting up HexStrike MCP in WSL2 environments connecting to a HexStrike server running on Windows host (including VM port-forwarding scenarios).
New Files
WSL_SETUP.md- Step-by-step setup guide including:wsl-setup.sh- Automated setup script that:Problem Being Solved
Currently there's no documentation for:
This is a common setup scenario - running Claude Code in WSL while the HexStrike server runs in a Kali VM with ports forwarded through Windows.
Testing Done
Related Issues
🤖 Generated with Claude Code