Skip to content

Commit cf44b30

Browse files
authored
Merge pull request #664 from richardkmichael/fix-dashed-mcp-args
fix: Argument notation to allow parseArgs to parse leading dash-options
2 parents 7f1d924 + dc5fa6a commit cf44b30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/bin/start.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ async function startProdServer(serverOptions) {
9191
"node",
9292
[
9393
inspectorServerPath,
94-
...(command ? [`--command`, command] : []),
95-
...(mcpServerArgs && mcpServerArgs.length > 0
96-
? [`--args`, mcpServerArgs.join(" ")]
97-
: []),
94+
command ? `--command=${command}` : "",
95+
mcpServerArgs && mcpServerArgs.length > 0
96+
? `--args=${mcpServerArgs.join(" ")}`
97+
: "",
9898
],
9999
{
100100
env: {

0 commit comments

Comments
 (0)