Skip to content

npx @modelcontextprotocol/inspector not using current PATH #375

@bolinfest

Description

@bolinfest

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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp1-highHigh priority - should be addressed soon

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions