mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Fix Windows MCP config mangling by bypassing cmd.exe shell for Claude spawn
On Windows, spawnProcess defaults to shell: true which routes through cmd.exe.
The SDK passes --mcp-config with inline JSON containing double quotes that
cmd.exe strips, producing an invalid string that Claude Code interprets as a
file path (e.g. D:\xFlow{mcpServers:{paseo:{type:http,url:http:\...}).
This commit is contained in:
@@ -224,6 +224,10 @@ function applyRuntimeSettingsToClaudeOptions(
|
||||
},
|
||||
signal: spawnOptions.signal,
|
||||
stdio: ["pipe", "pipe", "pipe"],
|
||||
// Bypass cmd.exe on Windows: the SDK passes --mcp-config with inline JSON
|
||||
// containing double quotes, which cmd.exe mangles (strips quotes, breaks parsing).
|
||||
// The command is always a resolved binary path, so shell routing is unnecessary.
|
||||
shell: false,
|
||||
});
|
||||
if (typeof options.stderr === "function") {
|
||||
child.stderr?.on("data", (chunk: Buffer | string) => {
|
||||
|
||||
Reference in New Issue
Block a user