Title: Silent no-op writes: issue_write skips empty title/body, and unknown parameters are dropped · Issue #3759 · github/github-mcp-server · GitHub
Open Graph Title: Silent no-op writes: issue_write skips empty title/body, and unknown parameters are dropped · Issue #3759 · github/github-mcp-server
X Title: Silent no-op writes: issue_write skips empty title/body, and unknown parameters are dropped · Issue #3759 · github/github-mcp-server
Description: Describe the bug Two input-handling gaps make write calls report success while changing nothing: Empty strings are treated as "not provided". In issue_write method: update, title: "" and body: "" are skipped, and the call returns success...
Open Graph Description: Describe the bug Two input-handling gaps make write calls report success while changing nothing: Empty strings are treated as "not provided". In issue_write method: update, title: "" and body: "" a...
X Description: Describe the bug Two input-handling gaps make write calls report success while changing nothing: Empty strings are treated as "not provided". In issue_write method: update, title: "&...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3759
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Silent no-op writes: issue_write skips empty title/body, and unknown parameters are dropped","articleBody":"### Describe the bug\n\nTwo input-handling gaps make write calls report success while changing nothing:\n\n1. **Empty strings are treated as \"not provided\".** In `issue_write` `method: update`, `title: \"\"` and `body: \"\"` are skipped, and the call returns success with no change. A body can't be cleared, and an empty title is not refused. `update_pull_request` with `title: \"\"` sends the edit and gets a REST 422 (`PullRequest.title (missing_field)`), so the two tools behave differently.\n2. **Unknown or misspelled parameters are silently dropped.** No write tool's input schema sets `additionalProperties: false` (all 19 write tools in the default toolsets, checked via `tools/list`), and the typed decode ignores extra keys. Examples:\n - `issue_write` update with only `labelz` returns success and changes nothing.\n - `delete_file` with `sha` deletes without any check (see the separate delete_file issue).\n - `actions_list` with `per_page` (the schema says `perPage`) uses the default page size.\n \n `update_pull_request` with only a misspelled field (`titel`) does fail, but only because its \"No update parameters provided.\" guard (`pullrequests.go:1080`) catches the empty update.\n\nRelated: #3605 / PR #3630 handle misspelled *required* names (`pull_number` vs `pullNumber`) by adding aliases. This issue is about optional fields, where nothing fails.\n\nSame class on the read side: #3316 (open; `pull_request_read` silently ignores inapplicable pagination params; PRs #3317 and #3336). The `*Provided` flags for labels/assignees came from #2596 / PR #2600.\n\nCode (main 99d6d650, unchanged since v2.1.0): `pkg/github/issues.go:3415-3421` (`if title != \"\"` / `if body != \"\"`); labels and assignees already use explicit \"provided\" flags (`:3423`). Write-tool input schemas have no `AdditionalProperties` set.\n\n### Affected version\n\nv2.1.0 (image `sha256:f6056fc1…0f8a`, commit 4bcdcdf8) and main nightly (image `sha256:48bc16d0…338f`, revision 99d6d650).\n\n### Steps to reproduce the behavior\n\n1. Issue N has title `T`, body `B`, labels `[c, d]`.\n(123 stands for the issue/PR number.)\n2. Call:\n ```json\n {\"name\":\"issue_write\",\"arguments\":{\"method\":\"update\",\"owner\":\"OWNER\",\"repo\":\"REPO\",\"issue_number\":123,\"body\":\"\"}}\n ```\n Result: `OK {\"id\":\"…\",\"url\":\".../issues/N\"}`. The body is still `B`.\n3. Same with `\"title\":\"\"`. Result: OK, and the title is still `T`.\n4. Call:\n ```json\n {\"name\":\"issue_write\",\"arguments\":{\"method\":\"update\",\"owner\":\"OWNER\",\"repo\":\"REPO\",\"issue_number\":123,\"labelz\":[\"a\"]}}\n ```\n Result: OK, and the labels are still `[c, d]`.\n5. For comparison, `update_pull_request` `{\"pullNumber\":P,\"title\":\"\"}` returns `failed to update pull request: Validation Failed PullRequest.title (missing_field)`.\n\n### Expected vs actual behavior\n\nExpected:\n- An empty `body` clears the body. An empty `title` is rejected with a clear message.\n- An unknown parameter is rejected and named (`unknown parameter \"labelz\"`), so the caller can correct it.\n\nActual: success with no change in each case, so an agent believes the update happened.\n\nSuggested fix: decide presence by key, not by value, for `title`/`body` (as `LabelsProvided` already does). Set `additionalProperties: false` on write-tool input schemas, or reject unknown keys during the typed decode, at least for write tools.\n\n### Logs\n\n```\nissue_write update body=\"\" -> OK {\"id\":\"6277311572\",\"url\":\".../issues/N\"} body unchanged\nissue_write update title=\"\" -> OK … title unchanged\nissue_write update labelz=[\"a\"] -> OK … labels unchanged\nupdate_pull_request title=\"\" -> ISERROR failed to update pull request: Validation Failed / PullRequest.title (missing_field)\nupdate_pull_request titel=\"x\" -> ISERROR No update parameters provided.\ntools/list: additionalProperties unset on all 19 write tools (default toolsets)\n```\nSame results on v2.1.0 and main. In an earlier run, `issue_write` `method: create` with `lables` also created the issue without labels. That case was not re-run here, to avoid creating issues.\n\nFound during an independent audit of v2.1.0 on a throwaway org and private test repo. Prepared with AI assistance (Claude Code); reproduced by two independent test runs before filing.\n","author":{"url":"https://github.com/rafe-walker","@type":"Person","name":"rafe-walker"},"datePublished":"2026-11-09T06:03:02Z","url":"https://github.com/github/github-mcp-server/issues/3759"}
| 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:0dcbfe53-91dd-cf52-57e1-b82896fa2853 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8914:FDBB4:C1F75D:108FC73:6B05BBC2 |
| html-safe-nonce | b457b3a4d6943c86e53f664bf6b9c4eff08ca28f1c3a3113241a6106113254dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTE0OkZEQkI0OkMxRjc1RDoxMDhGQzczOjZCMDVCQkMyIiwidmlzaXRvcl9pZCI6IjIwMDY4NzQ4ODE2MTAwNzA5NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | acb5c14d949f5b8680adf68bb91044344be535165d447eed2dc1f4d6382b3905 |
| hovercard-subject-tag | issue:6280879052 |
| 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/3759/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52dfdf732b5b38989949a622299e096a66589ed0673eff093b13766a46740aa6/github/github-mcp-server/issues/3759 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52dfdf732b5b38989949a622299e096a66589ed0673eff093b13766a46740aa6/github/github-mcp-server/issues/3759 |
| og:image:alt | Describe the bug Two input-handling gaps make write calls report success while changing nothing: Empty strings are treated as "not provided". In issue_write method: update, title: "" and body: "" a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rafe-walker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 708c2f10d746dbcf1dd80dc8309daa7d595df3fce8066244380fc3238618f09c |
| 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 | 2a29e3cf4fb57e81fd311774f91f345cc4436f40 |
| ui-target | canary-2 |
| 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