command
This commit is contained in:
parent
75bc2d3f26
commit
83abe4e00f
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue