`create_branch` returns a bare 404 when the token has no push access
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github, go
調査の方向性
まず、create_branch ツールの実装と GitHub の git/refs リクエストに対するエラー処理を見つけ、issue で言及されている request_copilot_review とその copilotReviewErrMsg と比較してください。呼び出し元がプライベートリポジトリを読み取れるものの、push 権限がない場合のヒントを追加し、ほかの 404 の原因も引き続き理解しやすいことを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
create_branch fails with 404 Not Found on a private repo I can read but can't push to. My agent took the 404 for a wrong repo or base branch and needed gh api repos/<owner>/<repo> --jq .permissions to find the cause. request_copilot_review explains this same 404 (copilotReviewErrMsg), so I think the write tools could do the same. Would you take a PR for create_branch, or would you rather have it in one place for all write tools?
Affected version
Remote server (https://api.githubcopilot.com/mcp/), 2026-12-01
Steps to reproduce the behavior
- Pick a private repo where
permissions.pushisfalsefor your user - Call
create_branchwithowner,repoandbranch
Expected vs actual behavior
Actual: failed to create branch: POST https://api.github.com/repos/<owner>/<repo>/git/refs: 404 Not Found []
Expected: the same error plus a hint that you can read the repo but your credentials have no write access
- 主要言語
- Go
- スター
- 34.8k
- フォーク
- 5.4k
- 平均マージ
- 2日 15時間
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/github-mcp-server のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
github/github-mcp-server#3992 ·
メンテナーはふだん 2 日以内に返信
-
search_issues can't see an issue created seconds ago, so the "search before creating" guidance leads to duplicates on retry対応中かも @tang-ontheway が 2 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
github/github-mcp-server#3973 ·
メンテナーはふだん 2 日以内に返信
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)対応中かも @sarankumar1325 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
github/github-mcp-server#3960 ·
メンテナーはふだん 2 日以内に返信
-
Scope-challenge middleware fails open when the token-scope fetch returns an error対応中かも @Shanmukh-l33t が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
github/github-mcp-server#3929 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
ListLabelsOutput drops every label id from the typed response対応中かも @Shanmukh-l33t が 8 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
github/github-mcp-server#3923 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
github/github-mcp-server の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
agent-in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jordansmall/spindrift#7716 ·
メンテナーはふだん 1 日以内に返信
-
bug 🪲 needs-triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Azure/azure-service-operator#5880 ·
メンテナーはふだん 1 日以内に返信
-
needs-type
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Add rebaseWhen: conflicted to major Go module Renovate updates対応中かも @WadekarPrashant が今日担当しました。 オープンenhancement feature good first issue ready-for-triage triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
konflux-ci/build-definitions#3943 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信