Skip to content

Conversation

@ba0f3
Copy link
Contributor

@ba0f3 ba0f3 commented Sep 11, 2025

No description provided.

This commit adds a new `--env` (or `-e`) flag to the `stdio` command.
This allows the user to pass environment variables to the server process that is started by the command.

The implementation appends the provided environment variables to the existing environment of the `mcp-cli` process, ensuring that the child process inherits the parent's environment as well as the new variables.

The README.md file has been updated to document this new flag and its usage.
This commit introduces two new features for passing configuration to MCP servers:

1.  The `stdio` command now has an `--env` (or `-e`) flag that allows passing environment variables to the server process.

2.  The `sse` and `http` commands now have a `--header` (or `-H`) flag that allows passing custom HTTP headers to the remote server.

This provides more flexibility for configuring and authenticating with MCP servers.

The README.md file has been updated to document these new flags.
@ba0f3 ba0f3 merged commit 2fedc3d into main Sep 11, 2025
1 check failed
@ba0f3 ba0f3 deleted the feature/pass-env-vars branch September 11, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants