Title: github_issue_write silently drops labels when caller lacks AddLabelsToLabelable permission · Issue #3160 · github/github-mcp-server · GitHub
Open Graph Title: github_issue_write silently drops labels when caller lacks AddLabelsToLabelable permission · Issue #3160 · github/github-mcp-server
X Title: github_issue_write silently drops labels when caller lacks AddLabelsToLabelable permission · Issue #3160 · github/github-mcp-server
Description: Describe the bug github_issue_write with method: "create" (and method: "update") silently drops the labels argument when the calling user lacks AddLabelsToLabelable permission on the target repository. The API returns success (issue crea...
Open Graph Description: Describe the bug github_issue_write with method: "create" (and method: "update") silently drops the labels argument when the calling user lacks AddLabelsToLabelable permission on the target reposit...
X Description: Describe the bug github_issue_write with method: "create" (and method: "update") silently drops the labels argument when the calling user lacks AddLabelsToLabelable permission o...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3160
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"github_issue_write silently drops labels when caller lacks AddLabelsToLabelable permission","articleBody":"### Describe the bug\n\n`github_issue_write` with `method: \"create\"` (and `method: \"update\"`) silently drops the `labels` argument when the calling user lacks `AddLabelsToLabelable` permission on the target repository. The API returns success (issue created/updated, no error), but no label is applied. The failure is only detectable by reading back the issue's labels.\n\nObserved against an upstream repo where the caller is not a maintainer, using a label that verifiably exists in the repository (`enhancement`, applied via the repo's issue template):\n\n1. `github_issue_write` create with `labels: [\"enhancement\"]` → returns success + issue URL.\n2. `github_issue_read` with `get_labels` on the created issue → `[]` (empty).\n3. Retried via `github_issue_write` update with `labels: [\"enhancement\"]` → again success, still empty.\n4. The label exists in the repo: `GitHub_get_label` returns the label (color `a2eeef`, description \"New feature or request\").\n5. The equivalent CLI operation fails loudly: `gh issue edit \u003cn> --add-label enhancement` exits 1 with a GraphQL permission error (see Logs).\n\nSo the MCP tool succeeds silently where the CLI surfaces the permission boundary — the `labels` field is dropped without any error or warning.\n\n### Affected version\n\nCould not capture the server version: the docker daemon is not running in this environment (`docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version` failed with `failed to connect to the docker API at unix:///var/run/docker.sock; check if the path is correct and if the daemon is running: dial unix /var/run/docker.sock: connect: no such file or directory`).\n\nEnvironment used: the hosted GitHub MCP endpoint at `https://api.githubcopilot.com/mcp/` (as configured by the host client).\n\n### Steps to reproduce the behavior\n\n1. Authenticate to the MCP server as a user without `AddLabelsToLabelable` permission on an upstream repo (i.e. not a maintainer/collaborator).\n2. Confirm a label exists in that repo (e.g. via `get_label` for the label the repo's issue template applies, such as `enhancement`).\n3. Call `github_issue_write` with `method: \"create\"`, `owner`, `repo`, `title`, `body`, and `labels: [\"enhancement\"]`.\n4. View the output — the tool reports success and returns the new issue URL.\n5. Call `github_issue_read` with `method: \"get_labels\"` for that issue — the labels list is empty.\n6. Repeat with `method: \"update\"` adding the same label — same silent drop.\n\n### Expected vs actual behavior\n\n- **Expected**: either the label is applied, or the tool returns an error indicating the label(s) could not be applied (matching the CLI's behavior).\n- **Actual**: the tool returns success with no error, and the label is silently not applied. The caller has no way to know the label was dropped without a read-back.\n\n### Logs\n\n`gh issue edit` confirmation of the permission boundary (CLI fails loudly where the MCP tool succeeds silently):\n\n```\ngh issue edit 44 --add-label enhancement\nGraphQL: HaleTom does not have the correct permissions to execute `AddLabelsToLabelable` (addLabelsToLabelable)\n```\n\n`get_labels` read-back on the issue created by the MCP tool with `labels: [\"enhancement\"]`: `[]`.","author":{"url":"https://github.com/HaleTom","@type":"Person","name":"HaleTom"},"datePublished":"2026-08-25T08:56:46Z","url":"https://github.com/github/github-mcp-server/issues/3160"}
| 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:ffbb7dcd-94a6-8eb3-c6b4-e17d84b5b57a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A31A:1217AA:10C1D5:178901:6B06B626 |
| html-safe-nonce | 70f41ff26b7e508342f3e421a8452d75104f2b7ab947e0713a9428b60915c6c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzFBOjEyMTdBQToxMEMxRDU6MTc4OTAxOjZCMDZCNjI2IiwidmlzaXRvcl9pZCI6IjI2NzE0MDY2NzQyMTIyMDYxMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e1265e95c318a4be8f24fb286c1a34b500a378ac0c39d39bd6c3915699979f2 |
| hovercard-subject-tag | issue:5243970604 |
| 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/3160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93365cb7f569a04bca06b8dd600d037baa2b5ddeaf07490f419e11cbd34013bb/github/github-mcp-server/issues/3160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93365cb7f569a04bca06b8dd600d037baa2b5ddeaf07490f419e11cbd34013bb/github/github-mcp-server/issues/3160 |
| og:image:alt | Describe the bug github_issue_write with method: "create" (and method: "update") silently drops the labels argument when the calling user lacks AddLabelsToLabelable permission on the target reposit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HaleTom |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b2b1f32e21f9e529372294897d423fa443a20a3a37bafa95dec0f213469ebfc |
| 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 | 5402de66059e5821fab003de929c7056c92d863f |
| 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