-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hi. After upgrading from version 0.14.0 to 0.14.1, the following script has stopped working. Specifically, after the upgrade, mcp-inspector does not take into account the passed arguments.
import * as child from "node:child_process"
process.loadEnvFile("../.env")
child.spawn(
"npm",
[
"exec",
"mcp-inspector",
"--",
"-e",
`CUSTOM_VAR=${process.env.CUSTOM_VAR}`,
"--",
"node",
"../main.js" // just a placeholder
],
{
env: process.env,
stdio: "inherit",
shell: true,
},
)To Reproduce
Steps to reproduce the behavior:
- Clone repository https://github.com/vanyauhalin/mcp-inspector-issue
- Go to directory (
0.14.0and0.14.1). - Run
npm install. - Run
npm run serve. - Clear local storage between runs.
Expected behavior
I would expect the script to work in newer versions as well as it does in version 0.14.0.
Logs
No logs.
Additional context
This is the second time. The first one is here #495.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working