Title: Allow public_repo scope for public repository write tools · Issue #3136 · github/github-mcp-server · GitHub
Open Graph Title: Allow public_repo scope for public repository write tools · Issue #3136 · github/github-mcp-server
X Title: Allow public_repo scope for public repository write tools · Issue #3136 · github/github-mcp-server
Description: Describe the feature or problem you'd like to solve Several repository write tools currently declare scopes.Repo, so the OAuth scope filter hides them when the server is authenticated with a token limited to public_repo. That forces an O...
Open Graph Description: Describe the feature or problem you'd like to solve Several repository write tools currently declare scopes.Repo, so the OAuth scope filter hides them when the server is authenticated with a token ...
X Description: Describe the feature or problem you'd like to solve Several repository write tools currently declare scopes.Repo, so the OAuth scope filter hides them when the server is authenticated with a to...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3136
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow public_repo scope for public repository write tools","articleBody":"### Describe the feature or problem you'd like to solve\n\nSeveral repository write tools currently declare `scopes.Repo`, so the OAuth scope filter hides them when the server is authenticated with a token limited to `public_repo`.\n\nThat forces an OAuth deployment which only needs to contribute to public repositories to request the broader `repo` scope, which also grants private-repository access.\n\nThe affected tools I have exercised successfully against public repositories with a `public_repo` token are:\n\n- `add_issue_comment`\n- `issue_write`\n- `create_branch`\n- `push_files`\n- `create_pull_request`\n- `fork_repository`\n\nThe existing scope hierarchy already models `repo` as a parent of `public_repo`, so declaring `scopes.PublicRepo` for these tools would still accept a full `repo` token while also allowing least-privilege public-only OAuth deployments.\n\n### Proposed solution\n\nChange the required scope for those six tools from `scopes.Repo` to `scopes.PublicRepo` and add focused tests asserting that each tool advertises:\n\n- required scope: `public_repo`\n- accepted scopes: `public_repo`, `repo`\n\nNo API handler or authorization bypass is needed; GitHub continues to enforce the token's actual repository permissions.\n\n### Example workflow\n\nA public-only MCP deployment can request only `public_repo`, fork an open-source repository, create a branch, push a patch, open a pull request, and participate in issue discussion without gaining access to private repositories.\n\nI have a small patch and regression coverage ready if this direction looks suitable.","author":{"url":"https://github.com/paulcakeface","@type":"Person","name":"paulcakeface"},"datePublished":"2026-08-22T15:21:13Z","url":"https://github.com/github/github-mcp-server/issues/3136"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ebe1f7d1-8b30-3f24-fca6-5175b4fcc32d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B164:1CD523:1A3EEFF:22C9835:6B068215 |
| html-safe-nonce | 50fb4c8edb34b29d3c9a4f67f4cc8493b12ed3bdaecf190a0107d6fb2d40aba9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTY0OjFDRDUyMzoxQTNFRUZGOjIyQzk4MzU6NkIwNjgyMTUiLCJ2aXNpdG9yX2lkIjoiNzY1NDQzNTk3MzA3MzYzMzgxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 31f25d03ca33f10953f347fe380121063f4d1d8a01cf93b23bff096cb0cf0c04 |
| hovercard-subject-tag | issue:5222579984 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/114fda1b118106a0178c1dd3c215f7bf658c240bbd08641a423b6fafeaed49b6/github/github-mcp-server/issues/3136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/114fda1b118106a0178c1dd3c215f7bf658c240bbd08641a423b6fafeaed49b6/github/github-mcp-server/issues/3136 |
| og:image:alt | Describe the feature or problem you'd like to solve Several repository write tools currently declare scopes.Repo, so the OAuth scope filter hides them when the server is authenticated with a token ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paulcakeface |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width