Skip to content

Commit ce2b486

Browse files
petereonclaude
andcommitted
fix: preserve quoted args with spaces when launching via CLI
Args containing spaces (e.g. --description 'get todays date') were silently split into multiple tokens by the proxy, breaking MCP servers that rely on multi-word argument values. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 94d98ec commit ce2b486

File tree

6 files changed

+560
-7
lines changed

6 files changed

+560
-7
lines changed

client/bin/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function startProdServer(serverOptions) {
106106
inspectorServerPath,
107107
...(command ? [`--command=${command}`] : []),
108108
...(mcpServerArgs && mcpServerArgs.length > 0
109-
? [`--args=${mcpServerArgs.join(" ")}`]
109+
? [`--args=${JSON.stringify(mcpServerArgs)}`]
110110
: []),
111111
...(transport ? [`--transport=${transport}`] : []),
112112
...(serverUrl ? [`--server-url=${serverUrl}`] : []),

0 commit comments

Comments
 (0)