Skip to content

docs: use Claude MCP env option in Docker examples - #3220

Open
pentaoa wants to merge 1 commit into
github:mainfrom
pentaoa:docs/3032-claude-env-option
Open

docs: use Claude MCP env option in Docker examples#3220
pentaoa wants to merge 1 commit into
github:mainfrom
pentaoa:docs/3032-claude-env-option

Conversation

@pentaoa

@pentaoa pentaoa commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Fixes #3032.

The Claude Code CLI documents --env KEY=value for environment variables passed to a local MCP server. The Docker examples used the Copilot-style -e shorthand before the command separator, which Claude rejects as an unknown option.

This updates all three Claude Docker examples to use --env while leaving Docker's own -e arguments after -- unchanged.

Validation

  • Compared the command shape with Anthropic's current Claude Code MCP documentation.
  • Confirmed no claude mcp add github -e examples remain in the guide.
  • git diff --check

AI assistance was used to locate the affected examples and cross-check the CLI syntax. I reviewed the final documentation diff.

Copilot AI balanced review requested due to automatic review settings September 3, 2026 15:35
@pentaoa
pentaoa requested a review from a team as a code owner September 3, 2026 15:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Incorrect install documentation leads to error "error: unknown option '-e'"

2 participants