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

未关闭 适合新手
#3,032 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
冷清
技术栈
docker
领域
documentation

调研方向

打开 docs/installation-guides/install-claude.md 的“With Docker”部分,检查其中记录的 claude mcp add 命令,从将 -e 放在分隔符之前的命令开始。修正 Docker 命令语法,并检查其下方的其他命令是否存在相同的参数位置问题;完成的标准是示例符合有效的 Claude CLI 和 Docker 调用顺序。

由索引模型根据 Issue 内容生成。

描述

bug
Describe the bug

The documentation for setting up docker with claude has an incorrect command
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server

The correct command would be
claude mcp add github -- docker run -i --rm -p 127.0.0.1:8085:8085 -e GITHUB_OAUTH_CALLBACK_PORT -e GITHUB_OAUTH_CALLBACK_PORT=8085 ghcr.io/github/github-mcp-server

Affected version

The documentation here https://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-claude.md#with-docker

Steps to reproduce the behavior

Run this command and it will fail as -e is not valid as an arg to the claude cli claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server

Expected vs actual behavior

Command corrected to claude mcp add github -- docker run -i --rm -p 127.0.0.1:8085:8085 -e GITHUB_OAUTH_CALLBACK_PORT -e GITHUB_OAUTH_CALLBACK_PORT=8085 ghcr.io/github/github-mcp-server

It seems like other commands are incorrect in the docs below the command I posted. Many have -e args in the wrong spot.

Logs

No logs

主要语言
Go
星标
33.1k
派生
5k
平均合并
2 天 15 小时
30 天内合并 PR
27

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/github-mcp-server 的其他 Issue

查看 github/github-mcp-server 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。