Title: VS Code remote GitHub MCP server requests delete_repo scope unconditionally on OAuth login, with no way to grant a subset · Issue #3170 · github/github-mcp-server · GitHub
Open Graph Title: VS Code remote GitHub MCP server requests delete_repo scope unconditionally on OAuth login, with no way to grant a subset · Issue #3170 · github/github-mcp-server
X Title: VS Code remote GitHub MCP server requests delete_repo scope unconditionally on OAuth login, with no way to grant a subset · Issue #3170 · github/github-mcp-server
Description: Describe the bug When authenticating to the remote GitHub MCP server (https://api.githubcopilot.com/mcp/) through VS Code's built-in GitHub OAuth login flow, the consent screen requests the "Delete repositories" permission (delete_repo s...
Open Graph Description: Describe the bug When authenticating to the remote GitHub MCP server (https://api.githubcopilot.com/mcp/) through VS Code's built-in GitHub OAuth login flow, the consent screen requests the "Delete...
X Description: Describe the bug When authenticating to the remote GitHub MCP server (https://api.githubcopilot.com/mcp/) through VS Code's built-in GitHub OAuth login flow, the consent screen requests the &qu...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3170
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VS Code remote GitHub MCP server requests delete_repo scope unconditionally on OAuth login, with no way to grant a subset","articleBody":"### Describe the bug\n\nWhen authenticating to the remote GitHub MCP server (`https://api.githubcopilot.com/mcp/`) through VS Code's built-in GitHub OAuth login flow, the consent screen requests the \"Delete repositories\" permission (`delete_repo` scope — ability to delete any adminable repository) as part of a single, all-or-nothing authorization request. There is no way to complete login while declining just that scope; the only options are to accept the full requested scope set or cancel authentication entirely (leaving the server unusable, failing with a 401).\n\nI suspect this is a (hopefully unintentional) result of #3076. Based on the comments in that PR, it seems that in at least some circumstances it is not intended that the MCP tool require `delete_repo` scope (as long as the MCP tool to delete a repository isn't used, of course).\n\n### Affected version\n\nConnected via the remote hosted server, not local Docker, so I can't run the local `--version` command. From my VS Code `mcp.json`, the server entry reports:\n```\n\"url\": \"https://api.githubcopilot.com/mcp/\",\n\"version\": \"0.31.0\"\n```\n\nVS Code info:\n```\nVersion: 1.135.0 (user setup)\nCommit: 08d4889f9ec4a1685d257b9b95de036c8e1ce1e5\nDate: 2026-08-25T14:26:52Z\nElectron: 42.8.1\nElectronBuildId: 14906494\nChromium: 148.0.7778.280\nNode.js: 24.18.1\nV8: 14.8.178.38-electron.0\n@github/copilot: 1.0.81-0\n@github/copilot-sdk: 1.0.11\nOS: Windows_NT x64 10.0.26200\n```\n\n### Steps to reproduce the behavior\n\n1. In VS Code, configure the marketplace-installed GitHub MCP server entry (`io.github.github/github-mcp-server`, `type: \"http\"`, `url: https://api.githubcopilot.com/mcp/`), using VS Code's built-in OAuth login (no custom PAT/headers). IIUC this is the default configuration, as I don't recall ever changing it.\n2. Start/reconnect the MCP server so it triggers (re)authentication.\n3. Click the \"Allow\" button on this dialog:\n \u003cimg width=\"1094\" height=\"250\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7e61196e-46d1-4adb-9079-be9412de3d80\" />\n4. Click Continue on this dialog:\n \u003cimg width=\"1044\" height=\"846\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6d03adbb-f39e-4c3b-9085-1e88202c817e\" />\n5. Panic when you see this page and either click Cancel or close the page:\n \u003cimg width=\"1160\" height=\"1276\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/24b796a9-b68d-4998-9a07-9e7e4beb98c6\" />\n6. Attempt to use the MCP server again.\n\nI have been using this MCP server for a while, and encountered this yesterday after VS Code updated iteself.\n\n### Expected vs actual behavior\n\n**Expected:** Some way to authenticate and use the remote GitHub MCP server in VS Code without granting the ability to delete repositories.\n\n**Actual:** The consent screen requests `delete_repo` unconditionally with no option to grant a narrower scope set. Declining leaves the server unauthenticated (401), and there is no PAT-free path that avoids this permission.\n\n### Logs\n\n```\n2026-08-27 06:57:15.242 [info] Waiting for server to respond to `initialize` request...\n2026-08-27 06:57:16.399 [warning] Error getting token from server metadata: Error: User did not consent to login.\n2026-08-27 06:57:16.422 [info] Connection state: Error 401 status sending message to https://api.githubcopilot.com/mcp/: bad request: missing required Authorization header\n```\n(Logged after declining the consent prompt requesting `delete_repo`.)\n","author":{"url":"https://github.com/aclight","@type":"Person","name":"aclight"},"datePublished":"2026-08-27T15:13:59Z","url":"https://github.com/github/github-mcp-server/issues/3170"}
| 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:ebc8c426-958f-fbc4-13ad-5ac2e484f780 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C028:2FDEEB:1CE8DBF:2617F23:6B068564 |
| html-safe-nonce | 749d82701b23a5714eb02a2ad4af06e040f5a62848a513572d03f181fe96f739 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDI4OjJGREVFQjoxQ0U4REJGOjI2MTdGMjM6NkIwNjg1NjQiLCJ2aXNpdG9yX2lkIjoiMTk2NzI1MjE3MTkyMTk4MjgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 328a0285e5c1bb1172c4f2d1b511cbcb637ab83e4b36390ff14c8a5336abe877 |
| hovercard-subject-tag | issue:5269149877 |
| 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/3170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2563219bb847e26220d6aae9fb229ca981fe5a85ac41c00527e2d20792474818/github/github-mcp-server/issues/3170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2563219bb847e26220d6aae9fb229ca981fe5a85ac41c00527e2d20792474818/github/github-mcp-server/issues/3170 |
| og:image:alt | Describe the bug When authenticating to the remote GitHub MCP server (https://api.githubcopilot.com/mcp/) through VS Code's built-in GitHub OAuth login flow, the consent screen requests the "Delete... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aclight |
| 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