-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make SDK work on Windows without additional arguments #101
Comments
I also encounter the same issue, and I noticed that there is an ongoing pull request addressing it: #95 This pull request aims to replace spawn with cross-spawn to resolve the issue. ad6ea75#diff-cf9cf0e16fe93b95e6cc378c616f4cf5e884677337106dec23f740caee8707c3R1-R2 My workaround: I am currently employing an alternative method as a temporary workaround to address this issue: typescript-sdk/src/client/stdio.ts Lines 107 to 118 in 3164da6
On Linux or macOS, However, on Windows, Thus, I replaced it with |
I spent hours today trying to figure out why I kept getting this I use different shells, wsl, cygwin, etc. so it was hard to pinpoint the issue at first
I'm also patching |
We used to have it enabled, but it was removed in #55 (cc @anaisbetts) because it creates terminal windows unnecessarily. Are you seeing the same? |
I haven't observed this ‘terminal windows’ issue myself. After switching to 'true', I didn't notice any significant negative impacts. However, this is something we should be mindful of, as different frameworks/shells or environments might yield varying observations. Would it be possible to make this parameter configurable as an input parameter during Client initialization? This way, even if the default value doesn't suit some developers' current frameworks, they could customize the parameter to better adapt to their specific systems/frameworks. |
Is your feature request related to a problem? Please describe.
We experienced that to start MCP servers via the SDK on Windows, you need to start a command interpreter (e.g. cmd.exe) as the server command in order for path lookups to work as expected
e.g. like this:
Describe the solution you'd like
Would be nice to hide this in the client SDK to hide the complexity from the user, at least with a sensible default for Windows.
Describe alternatives you've considered
none
Additional context
We have documented this work around for our users: https://theia-ide.org/docs/user_ai/#mcp-integration
See also: https://eclipsesource.com/blogs/2024/12/19/theia-ide-and-theia-ai-support-mcp/
The text was updated successfully, but these errors were encountered: