Title: Non-destructive write tools omit `destructiveHint: false`, causing conservative approval prompts · Issue #3281 · github/github-mcp-server · GitHub
Open Graph Title: Non-destructive write tools omit `destructiveHint: false`, causing conservative approval prompts · Issue #3281 · github/github-mcp-server
X Title: Non-destructive write tools omit `destructiveHint: false`, causing conservative approval prompts · Issue #3281 · github/github-mcp-server
Description: Describe the bug Some clearly non-destructive/additive GitHub MCP tools set ReadOnlyHint: false but omit DestructiveHint: false. Under the MCP ToolAnnotations contract, destructiveHint defaults to true when omitted for a non-read-only to...
Open Graph Description: Describe the bug Some clearly non-destructive/additive GitHub MCP tools set ReadOnlyHint: false but omit DestructiveHint: false. Under the MCP ToolAnnotations contract, destructiveHint defaults to ...
X Description: Describe the bug Some clearly non-destructive/additive GitHub MCP tools set ReadOnlyHint: false but omit DestructiveHint: false. Under the MCP ToolAnnotations contract, destructiveHint defaults to ...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3281
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Non-destructive write tools omit `destructiveHint: false`, causing conservative approval prompts","articleBody":"### Describe the bug\n\nSome clearly non-destructive/additive GitHub MCP tools set `ReadOnlyHint: false` but omit `DestructiveHint: false`.\n\nUnder the MCP `ToolAnnotations` contract, `destructiveHint` defaults to `true` when omitted for a non-read-only tool. Clients that honor the conservative default can therefore treat routine additive operations as potentially destructive and require additional confirmation.\n\nThis is observable with ChatGPT using the official `github-mcp-server` over Streamable HTTP / Secure MCP Tunnel: read tools execute automatically when the app is configured with elevated / \"Allow all actions\" permissions, while routine write tools such as creating a branch or opening a pull request still trigger confirmation.\n\nOn desktop, the user can approve for the conversation. On mobile, the same workflow can require repeated per-call approvals.\n\n### Examples in the current server\n\n`create_branch` currently advertises:\n\n```go\nAnnotations: &mcp.ToolAnnotations{\n Title: t(\"TOOL_CREATE_BRANCH_USER_TITLE\", \"Create branch\"),\n ReadOnlyHint: false,\n},\n```\n\n`create_pull_request` currently advertises:\n\n```go\nAnnotations: &mcp.ToolAnnotations{\n Title: t(\"TOOL_CREATE_PULL_REQUEST_USER_TITLE\", \"Open new pull request\"),\n ReadOnlyHint: false,\n},\n```\n\nBoth operations are additive and appear to be good candidates for an explicit:\n\n```go\nDestructiveHint: jsonschema.Ptr(false),\n```\n\nThere is already precedent in the codebase: `create_pull_request_review` explicitly sets `DestructiveHint: false`, while genuinely destructive tools such as `delete_file` explicitly set `DestructiveHint: true`.\n\n### Expected behavior\n\nClearly additive write tools should explicitly advertise `DestructiveHint: false` instead of inheriting the MCP default of `true`.\n\nIt may also be worth auditing other write tools and explicitly classifying them rather than relying on the default. Tools whose behavior depends on the requested method or which can overwrite/delete existing state should remain conservative.\n\n### Why this matters\n\nThis does not change security enforcement; MCP annotations are hints. But clients use those hints to drive confirmation UX.\n\nMissing `destructiveHint: false` makes safe additive operations indistinguishable from potentially destructive writes to conservative clients, which creates significant approval friction in agentic workflows.\n\n### Environment\n\n* `github-mcp-server` v1.12.1\n* Streamable HTTP transport\n* ChatGPT custom MCP app over OpenAI Secure MCP Tunnel\n* App permission set to elevated / Allow all actions\n* Read operations do not prompt; routine write operations do\n\n### Related issues\n\n* #798 — fine-grained confirmation settings for write actions\n* #2723 — `label_write` delete missing `DestructiveHint: true`\n","author":{"url":"https://github.com/AlexanderWilhelmsenBerg","@type":"Person","name":"AlexanderWilhelmsenBerg"},"datePublished":"2026-09-15T07:40:31Z","url":"https://github.com/github/github-mcp-server/issues/3281"}
| 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:3fa5d6b4-3347-1ccf-e9a1-d48cf05316f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82E4:78C82:18E995:227F43:6B05D405 |
| html-safe-nonce | 0dc3a62bd661ceabd3bc68a9731216932d45f87aa741fadad203fca7e515ea15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkU0Ojc4QzgyOjE4RTk5NToyMjdGNDM6NkIwNUQ0MDUiLCJ2aXNpdG9yX2lkIjoiMzM0MTU0MzQyMDYxMDMzNTc0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 503e986781addb6fcacf043d8337aa99d60eb3116c63033bb0e6c5cead7f1fd8 |
| hovercard-subject-tag | issue:5459058785 |
| 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/3281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6def37946b033eb9b3b5daa70f6179f3b6022433f8fb56daf24dfc6c1944337/github/github-mcp-server/issues/3281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6def37946b033eb9b3b5daa70f6179f3b6022433f8fb56daf24dfc6c1944337/github/github-mcp-server/issues/3281 |
| og:image:alt | Describe the bug Some clearly non-destructive/additive GitHub MCP tools set ReadOnlyHint: false but omit DestructiveHint: false. Under the MCP ToolAnnotations contract, destructiveHint defaults to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AlexanderWilhelmsenBerg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7cc8361bc0396e5c33704280422dd7a38c5b91f6190589faea57461f56967249 |
| 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 | ab4da203740f827015a12d36851c8de196e908bf |
| 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