Skip to content

Commit 83abe4e

Browse files
committed
command
1 parent 75bc2d3 commit 83abe4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import concurrently from "concurrently";
77
const __dirname = dirname(fileURLToPath(import.meta.url));
88

99
// Get command line arguments
10-
const [, , environment, ...mcpServerArgs] = process.argv;
10+
const [, , command, ...mcpServerArgs] = process.argv;
1111

1212
const inspectorServerPath = join(__dirname, "../server/build/index.js");
1313

@@ -19,7 +19,7 @@ console.log("Starting MCP inspector...");
1919
const { result } = concurrently(
2020
[
2121
{
22-
command: `node ${inspectorServerPath}${environment ? ` --env ${environment}` : ""}${mcpServerArgs.length ? ` --args "${mcpServerArgs.join(" ")}"` : ""}`,
22+
command: `node ${inspectorServerPath}${command ? ` --env ${command}` : ""}${mcpServerArgs.length ? ` --args "${mcpServerArgs.join(" ")}"` : ""}`,
2323
name: "server",
2424
},
2525
{

0 commit comments

Comments
 (0)