Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on Windows 11 #4

Open
essovius opened this issue Dec 1, 2024 · 4 comments
Open

Issues on Windows 11 #4

essovius opened this issue Dec 1, 2024 · 4 comments

Comments

@essovius
Copy link

essovius commented Dec 1, 2024

Hello, I've just tested it on Win11 and here's my notes.

  • using directly via npx mcp-shell won't work.
  • you should install it npm install -g mcp-shell
  • then you should edit claude_desktop_config.json :
"shell-server": {
  "command": "C:\\Program Files\\nodejs\\node.exe",
  "args": ["C:\\Users\\{REPLACE_USERNAME}\\AppData\\Roaming\\npm\\node_modules\\mcp-shell\\build\\index.js"]
 }
  • it works with commands like npm --version
    image

  • but it doesn't work with folder specific commands:
    image
    because it adds double backslash while win11 only works with one backslash.

@Superfishintights
Copy link

Thanks for that, got it working but it's refusing to do just about anything so far saying that while it has run_command function, it's very limited.
image

@essovius
Copy link
Author

essovius commented Dec 1, 2024

Thanks for that, got it working but it's refusing to do just about anything so far saying that while it has run_command function, it's very limited. image

image
I don't have windsurf installed but it tried to run. But just sees it as Unix-like environment. weird. maybe you should change writing style or instructions.

UPDATE:
image
image

@essovius essovius changed the title Guide and issue on Windows 11 Guide and issues on Windows 11 Dec 1, 2024
@Superfishintights
Copy link

Yeah, figured it out around the same time. Nice one!

I think once you get it doing something easier (and using cmd commands instead of PS), it's fine - and lets its guard down more for other commands. So for anyone else - don't start off with asking it to do anything that could trigger its guard rails - things related to claude or stuff like that.

I also commented out the blacklisted commands just to give it more freedom (I'm happy to own the risk - wouldn't recommend if using any prod server or server you're not happy to have broken).

Now to see if I can get it connected to my linux server which was the initial plan for this. Be a bit trickier but I'm sure there's a way.

@matildepark
Copy link
Contributor

matildepark commented Dec 2, 2024

Patched the first one in #6. It would be better if it was always one command, sets config for you, etc.

Now -- as for our commands here ... I've been trying to figure out how to get that settled.

I wrote a utility to find our Powershell and use that as a shell but it seems like it's our string escaping that's a little weird, perhaps?

I also think execa isn't piping our environment into the shell environment like it does on Unix machines... They have an ongoing issue about Windows. shell: true, like we have here, uses cmd.exe, and that seems to provide more functionality than running PS, since when I set it to PS nothing works at all, silently.

@matildepark matildepark changed the title Guide and issues on Windows 11 Issues on Windows 11 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants