`create_branch` returns a bare 404 when the token has no push access
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- github, go
- Domain
- backend-api-design
Research direction
Start by locating the create_branch tool implementation and its error handling for the GitHub git/refs request; compare it with request_copilot_review and its copilotReviewErrMsg, both mentioned in the issue. Add a hint for the case where the caller can read the private repository but lacks push access, and check that other 404 causes remain understandable.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Go
- Stars
- 34.8k
- Forks
- 5.4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 34
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/github-mcp-server
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
github/github-mcp-server#3992 ·
Maintainers usually reply within 2 days
-
search_issues can't see an issue created seconds ago, so the "search before creating" guidance leads to duplicates on retryPossibly taken @tang-ontheway claimed this 2 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 78/100
github/github-mcp-server#3973 ·
Maintainers usually reply within 2 days
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)Possibly taken @sarankumar1325 claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
github/github-mcp-server#3960 ·
Maintainers usually reply within 2 days
-
Scope-challenge middleware fails open when the token-scope fetch returns an errorPossibly taken @Shanmukh-l33t claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
github/github-mcp-server#3929 · 1 comment ·
Maintainers usually reply within 2 days
-
ListLabelsOutput drops every label id from the typed responsePossibly taken @Shanmukh-l33t claimed this 8 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
github/github-mcp-server#3923 · 1 comment · 1 reaction ·
Maintainers usually reply within 2 days
All issues in github/github-mcp-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
agent-in-progress
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jordansmall/spindrift#7716 ·
Maintainers usually reply within 1 day
-
bug 🪲 needs-triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Azure/azure-service-operator#5880 ·
Maintainers usually reply within 1 day
-
needs-type
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Add rebaseWhen: conflicted to major Go module Renovate updatesPossibly taken @WadekarPrashant claimed this today. Openenhancement feature good first issue ready-for-triage triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
konflux-ci/build-definitions#3943 · 3 comments ·
Maintainers usually reply within 1 day