Skip to content

Commit aa6a98a

Browse files
authored
Merge pull request #681 from modelcontextprotocol/fweinberger/fix-npx-no-args
bugfix: fix `npx @modelcontextprotoco/inspector` failing on main
2 parents cf44b30 + de16a18 commit aa6a98a

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)