Describe the bug
npx @modelcontextprotocol/inspector is not using PATH from current environment.
To Reproduce
When I run:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
npx @modelcontextprotocol/inspector /bin/true
I see:
Query parameters: [Object: null prototype] {
command: 'cargo',
args: 'run',
env: '{"HOME":"/Users/mbolin","LOGNAME":"mbolin","PATH":"/Users/mbolin/.npm/_npx...
i.e., there is extra stuff. This is a problem because I can't make a screen recording without leaking sensitive info.
Expected behavior
I should see the value that corresponds to export PATH
Logs
sorry, nope
Additional context
Not sure if npx is to blame here?
Describe the bug
npx @modelcontextprotocol/inspectoris not usingPATHfrom current environment.To Reproduce
When I run:
I see:
i.e., there is extra stuff. This is a problem because I can't make a screen recording without leaking sensitive info.
Expected behavior
I should see the value that corresponds to
export PATHLogs
sorry, nope
Additional context
Not sure if
npxis to blame here?