Skip to content

Allow env variable in while configuring mcp in config toml #7367

Closed as not planned

Description

@vjain419

What feature would you like to see?

as of Today you can't do something like this

[mcp_servers.test]
command = "uvx"
args = ["--from", "/path/test-mcp", "test-mcp"]
env = {USER = "bot",  PASSWORD = "$BOT_PASSWORD"}

What works today is cmd like override like this which is not great if user has quite few such mcp the cmd line explode.

--config 'mcp_servers.test.env.BOT_PASSWORD="'"$BOT_PASSWORD"'"'

Additional information

No response

Activity

  1. added
    enhancement
    on Nov 28, 2025
  2. added
    CLI
    mcp
    on Nov 28, 2025
  3. etraut-openai commented on Jan 14, 2026

    @etraut-openai
    Contributor

    This feature request hasn't received enough upvotes, so I'm going to close it.

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

    CLIenhancementmcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions