Backlog
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
Metadata
Metadata
Assignees
Labels
No labels
Activity