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

オープン 初心者向け
#3,032 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
27

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/github-mcp-server のほかの issue

github/github-mcp-server の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。