From 83abe4e00f207aa284683c450518e26149fcd309 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Tue, 19 Nov 2024 13:08:42 -0800 Subject: [PATCH] command --- bin/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index 41de0be..77d6e52 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -7,7 +7,7 @@ import concurrently from "concurrently"; const __dirname = dirname(fileURLToPath(import.meta.url)); // Get command line arguments -const [, , environment, ...mcpServerArgs] = process.argv; +const [, , command, ...mcpServerArgs] = process.argv; const inspectorServerPath = join(__dirname, "../server/build/index.js"); @@ -19,7 +19,7 @@ console.log("Starting MCP inspector..."); const { result } = concurrently( [ { - command: `node ${inspectorServerPath}${environment ? ` --env ${environment}` : ""}${mcpServerArgs.length ? ` --args "${mcpServerArgs.join(" ")}"` : ""}`, + command: `node ${inspectorServerPath}${command ? ` --env ${command}` : ""}${mcpServerArgs.length ? ` --args "${mcpServerArgs.join(" ")}"` : ""}`, name: "server", }, {