René's URL Explorer Experiment


Title: fix: mark the granular label/assignee replace tools as destructive by shhhhhhjokerist · Pull Request #3791 · github/github-mcp-server · GitHub

Open Graph Title: fix: mark the granular label/assignee replace tools as destructive by shhhhhhjokerist · Pull Request #3791 · github/github-mcp-server

X Title: fix: mark the granular label/assignee replace tools as destructive by shhhhhhjokerist · Pull Request #3791 · github/github-mcp-server

Description: Summary Mark the granular update_issue_labels and update_issue_assignees tools as destructive: both replace the current list, so entries that are not in the new list are removed. Why Fixes #3760. mcp.ToolAnnotations is what a host keys its confirmation prompt off. Both tools set DestructiveHint: false while their descriptions say "replaces the current labels/assignees with the provided list", so a host can run a call that removes labels or assignees without confirming. update_issue_labels is behind the issues_granular feature flag (--features=issues_granular), which swaps the consolidated issue_write for these granular tools. What changed pkg/github/issues_granular.go: DestructiveHint: new(true) on GranularUpdateIssueLabels and GranularUpdateIssueAssignees, with a one-line comment recording why replace semantics are destructive. pkg/github/__toolsnaps__/update_issue_labels.snap, pkg/github/__toolsnaps__/update_issue_assignees.snap: destructiveHint updated in the stored tool schemas. pkg/github/granular_tools_test.go: TestGranularReplaceToolsAreDestructive asserts the hint is explicitly true for both tools and that the description still documents the replace semantics, so a later change to additive methods cannot silently drop the hint. MCP impact Tool schema or behavior changed Only the annotations.destructiveHint value of the two granular tools changes, from false to true. Inputs, outputs and the API calls are unchanged. Prompts tested (tool changes only) "Add the label needs-triage to issue 123" → update_issue_labels now advertises destructiveHint: true, so a host that prompts for destructive calls asks before the label list is replaced. "Assign issue 123 to @octocat only" → update_issue_assignees likewise prompts before other assignees are removed. Security / limits No security or limits impact Only the annotation changes; callers keep the same permissions and the same replace behaviour. Tool renaming I am not renaming tools as part of this PR Lint & tests Linted locally with golangci-lint run ./pkg/github/... → 0 issues (go vet ./pkg/github clean) go test ./pkg/github -run 'TestGranularReplaceToolsAreDestructive|TestGranularToolSnaps|TestGranularUpdateIssueLabels|TestGranularUpdateIssueAssignees|TestIssuesGranularToolset' passes; the new test fails on the base revision Full ./script/test on this Windows checkout: the same 15 tests fail on main without this change (CRLF/base64 icon snapshots and the protocol=2026-07-28 typed wire tests), so the snapshot comparison cannot be reproduced locally here. Docs Not needed Note for reviewers: PR #2742 touches the same tool and keeps replace as the default while adding method options, so this only changes the annotation lines and is safe to rebase over that work.

Open Graph Description: Summary Mark the granular update_issue_labels and update_issue_assignees tools as destructive: both replace the current list, so entries that are not in the new list are removed. Why Fixes #3760. m...

X Description: Summary Mark the granular update_issue_labels and update_issue_assignees tools as destructive: both replace the current list, so entries that are not in the new list are removed. Why Fixes #3760. m...

Opengraph URL: https://github.com/github/github-mcp-server/pull/3791

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0df9fa14-5ca3-8a63-1271-09cf56108c8d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id86DC:38FFFD:6CF157:949FCB:6B05E729
html-safe-nonced01bbc04ff46c21ce6a8c97b18f4714e951bb7369a460c16e5eab2cfa81c3918
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkRDOjM4RkZGRDo2Q0YxNTc6OTQ5RkNCOjZCMDVFNzI5IiwidmlzaXRvcl9pZCI6IjMxMDAyNTIzNjgzNzQ0NTgxNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac03de1d6f6050c407da79a9dbc1381eabd4c4541923e7ce549435282d8e783755
hovercard-subject-tagpull_request:5235238396
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/github-mcp-server/pull/3791/files
twitter:imagehttps://avatars.githubusercontent.com/u/104197119?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/104197119?s=400&v=4
og:image:altSummary Mark the granular update_issue_labels and update_issue_assignees tools as destructive: both replace the current list, so entries that are not in the new list are removed. Why Fixes #3760. m...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9e6b0e6e5a9a8e0ddb968297ede4e2eac72d30ea174a0970eb8f22d6958e91e3
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release023691d14ad20c90d3ee61b0a0977b17dc6b6361
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/pull/3791/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F3791%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F3791%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/pull/3791/files
Reloadhttps://github.com/github/github-mcp-server/pull/3791/files
Reloadhttps://github.com/github/github-mcp-server/pull/3791/files
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues238 (238)https://github.com/github/github-mcp-server/issues
Pull requests226 (226)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
shhhhhhjokeristhttps://github.com/shhhhhhjokerist
github:mainhttps://github.com/github/github-mcp-server/tree/main
shhhhhhjokerist:fix/granular-issue-destructive-hinthttps://github.com/shhhhhhjokerist/github-mcp-server/tree/fix/granular-issue-destructive-hint
Conversation 1 https://github.com/github/github-mcp-server/pull/3791
Commits 1 https://github.com/github/github-mcp-server/pull/3791/commits
Checks 1 https://github.com/github/github-mcp-server/pull/3791/checks
Findings https://github.com/github/github-mcp-server/pull/3791/findings
Files changed https://github.com/github/github-mcp-server/pull/3791/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/3791/files
fix: mark the granular label/assignee replace tools as destructive https://github.com/github/github-mcp-server/pull/3791/files#top
Show all changes 1 commit https://github.com/github/github-mcp-server/pull/3791/files
e2defb6 fix: mark the granular label/assignee replace tools as destructive shhhhhhjokerist Nov 10, 2026 https://github.com/github/github-mcp-server/pull/3791/commits/e2defb63fb64822dea067cd37141555400e75222
Clear filters https://github.com/github/github-mcp-server/pull/3791/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/3791/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/3791/files
update_issue_assignees.snap https://github.com/github/github-mcp-server/pull/3791/files#diff-4cf5c59f39acc136426a24db81a3c5d7f4d3cc9701cbad94c5afb119aa8371ef
update_issue_labels.snap https://github.com/github/github-mcp-server/pull/3791/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
granular_tools_test.go https://github.com/github/github-mcp-server/pull/3791/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
issues_granular.go https://github.com/github/github-mcp-server/pull/3791/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/__toolsnaps__/update_issue_assignees.snaphttps://github.com/github/github-mcp-server/pull/3791/files#diff-4cf5c59f39acc136426a24db81a3c5d7f4d3cc9701cbad94c5afb119aa8371ef
View file https://github.com/github/github-mcp-server/blob/e2defb63fb64822dea067cd37141555400e75222/pkg/github/__toolsnaps__/update_issue_assignees.snap
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/3791/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/3791/files#diff-4cf5c59f39acc136426a24db81a3c5d7f4d3cc9701cbad94c5afb119aa8371ef
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/__toolsnaps__/update_issue_labels.snaphttps://github.com/github/github-mcp-server/pull/3791/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
View file https://github.com/github/github-mcp-server/blob/e2defb63fb64822dea067cd37141555400e75222/pkg/github/__toolsnaps__/update_issue_labels.snap
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/3791/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/3791/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/granular_tools_test.gohttps://github.com/github/github-mcp-server/pull/3791/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
View file https://github.com/github/github-mcp-server/blob/e2defb63fb64822dea067cd37141555400e75222/pkg/github/granular_tools_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/3791/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/3791/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
https://github.com/github/github-mcp-server/pull/3791/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/issues_granular.gohttps://github.com/github/github-mcp-server/pull/3791/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
View file https://github.com/github/github-mcp-server/blob/e2defb63fb64822dea067cd37141555400e75222/pkg/github/issues_granular.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/3791/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/3791/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
https://github.com/github/github-mcp-server/pull/3791/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
https://github.com/github/github-mcp-server/pull/3791/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
https://github.com/github/github-mcp-server/pull/3791/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.