Skip to content

Support passing env vars at the command line #94

Closed

Description

@jlowin

MCP Servers often depend on env vars, which must be manually added via the UI every time the inspector is loaded. For convenience, it would be great to pass these at the CLI when starting the inspector:

npx @modelcontextprotocol/inspector -e ABC=123 -e XYZ=456 <cmd>

Activity

  1. burningion commented on Dec 23, 2024

    @burningion

    Seconding this as a critical feature.

  2. jspahrsummers commented on Jan 2, 2025

    @jspahrsummers
    Member

    We'd be happy to review a PR adding this feature, if anyone wants to take a stab! 🙂

  3. delorenj commented on Jan 3, 2025

    @delorenj

    I gave it a go! It was much harder than anticipated. After taking a step back, I went another route and added a bulk import button. It works great ! I'm sure others will find it useful.

    #122

  4. olaservo commented on Mar 5, 2025

    @olaservo
    Member

    It appears this was implemented in #124 so going to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions