Title: issue_write body parameter overwrites issue content on update — easily confused with adding a comment · Issue #2410 · github/github-mcp-server · GitHub
Open Graph Title: issue_write body parameter overwrites issue content on update — easily confused with adding a comment · Issue #2410 · github/github-mcp-server
X Title: issue_write body parameter overwrites issue content on update — easily confused with adding a comment · Issue #2410 · github/github-mcp-server
Description: Describe the feature or problem you'd like to solve When using issue_write with method: "update", passing a �ody parameter replaces the entire issue body. This matches the REST API semantics, but LLM agents frequently misinterpret �ody a...
Open Graph Description: Describe the feature or problem you'd like to solve When using issue_write with method: "update", passing a �ody parameter replaces the entire issue body. This matches the REST API semantics, but L...
X Description: Describe the feature or problem you'd like to solve When using issue_write with method: "update", passing a �ody parameter replaces the entire issue body. This matches the REST API se...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2410
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"issue_write body parameter overwrites issue content on update — easily confused with adding a comment","articleBody":"### Describe the feature or problem you'd like to solve\n\nWhen using issue_write with method: \"update\", passing a \body parameter **replaces the entire issue body**. This matches the REST API semantics, but LLM agents frequently misinterpret \body as \"write a comment about this issue\" rather than \"replace the issue's entire description\". The result is silent data loss — the original issue body gets wiped and replaced with a closing note.\n\n### Proposed solution\n\nTwo possible approaches:\n\n1. **Add a prominent warning** in the \body parameter description, e.g.: \"WARNING: This replaces the entire issue body on update, not append. Use add_issue_comment to add a comment.\"\n2. **Add a comment parameter** to issue_write as a convenience — when provided on method: \"update\", it posts a comment instead of modifying the body.\n\nOption 2 reduces unnecessary round-trips (close issue + add comment = 2 calls becomes 1).\n\n### Example prompts or workflows\n\n1. \"Close issue `#42`and explain why it was fixed\" — agent should NOT touch the original body, but currently tends to overwrite it\n2. \"Mark issue `#17` as duplicate and leave a note\" — agent replaces body with \"duplicate of #X\" instead of commenting\n3. \"Update issue `#8` status to closed with resolution\" — body gets silently destroyed\n\n### Additional context\n\nThis was encountered using **OpenCode** (CLI-based AI coding tool) with **DeepSeek V4 Flash** model, connecting via the GitHub MCP Server (local binary). The \body field name is especially misleading for LLMs because in natural language, \"body of a message\" typically means the message content itself, not the metadata/description of the thing being acted upon.","author":{"url":"https://github.com/Small-tailqwq","@type":"Person","name":"Small-tailqwq"},"datePublished":"2026-04-30T17:54:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2410/github-mcp-server/issues/2410"}
| 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:ed55a52f-64d7-ec5a-9e8d-daa075956b77 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4A4:C5F3E:51C67:70024:6A619966 |
| html-safe-nonce | acabd5e276a96646cfa935e0a903d8d713124169c1299cd4cfd197ab838c00cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEE0OkM1RjNFOjUxQzY3OjcwMDI0OjZBNjE5OTY2IiwidmlzaXRvcl9pZCI6IjgzNzgxODAyNjc4NjY2OTE5NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4339279b24ecf4e0a67db5813888a9828d5be79938515dce6db812292bbffdbe |
| hovercard-subject-tag | issue:4360191266 |
| 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/2410/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f7af31dffc1380d168f611a0dd29352c2a18eac764cf8363ea5b22d9b78b797/github/github-mcp-server/issues/2410 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f7af31dffc1380d168f611a0dd29352c2a18eac764cf8363ea5b22d9b78b797/github/github-mcp-server/issues/2410 |
| og:image:alt | Describe the feature or problem you'd like to solve When using issue_write with method: "update", passing a �ody parameter replaces the entire issue body. This matches the REST API semantics, but L... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Small-tailqwq |
| hostname | github.com |
| expected-hostname | github.com |
| None | c28c2f6607f2aacbd934868d997038895c9780d08babfe918550d73773326f4c |
| 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 | cd05235d52ffb3318513d883a56c87a121015c8b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width