René's URL Explorer Experiment


Title: enhance update_issue_labels tool with method options by MayorFaj · Pull Request #2742 · github/github-mcp-server · GitHub

Open Graph Title: enhance update_issue_labels tool with method options by MayorFaj · Pull Request #2742 · github/github-mcp-server

X Title: enhance update_issue_labels tool with method options by MayorFaj · Pull Request #2742 · github/github-mcp-server

Description: Summary Adds a method option to the feature-flagged update_issue_labels tool so one tool can replace (default), add, or remove an issue's labels. Why Fixes #2724 The tool can only replace an issue's whole label set, so adding or removing one label means reading the current labels and sending back the full list. If that read is stale, labels are silently dropped. #2724 has a live repro: two agents each add a different label, and the first add is lost every time. add and remove call GitHub's add/remove label endpoints, so there is no read-modify-write and no lost labels. What changed New method input: replace (default), add, remove. replace: unchanged PATCH, including per-label rationale / confidence / is_suggestion. add: POST /issues/{n}/labels, keeping existing labels. remove: one DELETE /issues/{n}/labels/{name} per label. Names are URL-escaped, because go-github's RemoveLabelForIssue does not escape names like status/blocked. If a removal fails part-way, the error lists the labels already removed. Label names are trimmed and validated for every method. add and remove also de-duplicate names. Output is now {id, url, labels}: the previous MinimalResponse fields plus the issue's labels after the update. Existing consumers of id/url are unaffected. destructiveHint set to true, since both replace and remove can delete labels. MCP impact Tool schema or behavior changed Adds the method input, adds labels to the output schema, and changes destructiveHint to true. Only applies behind the issues_granular feature flag. Calls without method behave as before. Prompts tested (tool changes only) Tested live against a private test repo with --features=issues_granular, checking every step with gh: "Add the label enhancement to issue 1": method: add, existing labels kept. "Remove good first issue and status/blocked from issue 1": method: remove. Names with a space and a slash work. Two separate adds of different labels: both labels kept (the #2724 scenario). Removing a label not on the issue: error that names the labels already removed. Invalid method: rejected, labels unchanged. Replace with []: clears all labels. Security / limits Auth / permissions considered Still requires repo. The response now includes label names, so it is tagged with the repo-visibility IFC label (LabelRepoMetadata), the same as other tools that return labels. Tool renaming I am not renaming tools as part of this PR Lint & tests Linted locally with ./script/lint Tested locally with ./script/test Docs Updated: regenerated docs/feature-flags.md and the tool snapshot. Note: the default issue_write tool also replaces the full label set when labels is passed (see the repro in #2724). That is out of scope here and can be a follow-up.

Open Graph Description: Summary Adds a method option to the feature-flagged update_issue_labels tool so one tool can replace (default), add, or remove an issue's labels. Why Fixes #2724 The tool can only replace an is...

X Description: Summary Adds a method option to the feature-flagged update_issue_labels tool so one tool can replace (default), add, or remove an issue's labels. Why Fixes #2724 The tool can only replace a...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.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:661b7986-27e9-ee21-16cc-f7454821b598
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD442:126E52:3D59A1:5143EA:6B05E0EB
html-safe-nonceaceb02a1df80775247ed0437fc52e0fb46d7575f360ea87829ec266f6749f40b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDQyOjEyNkU1MjozRDU5QTE6NTE0M0VBOjZCMDVFMEVCIiwidmlzaXRvcl9pZCI6IjMyNDY2NjYxMDY5ODMwMTQ2MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6b2230f8b34645528ea1cc72e46cfb80d0aa39c6af77a9675188e4e659f15c91
hovercard-subject-tagpull_request:3906236606
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/2742/files
twitter:imagehttps://avatars.githubusercontent.com/u/127399119?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/127399119?s=400&v=4
og:image:altSummary Adds a method option to the feature-flagged update_issue_labels tool so one tool can replace (default), add, or remove an issue's labels. Why Fixes #2724 The tool can only replace an is...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneab9d6b164c6e5b32656ef80f1a302b2dafee4e4c9360ef3fced66da06fb522fa
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
release2db8c3558610af6beef9310dcf5537e201a6e5fb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/pull/2742/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F2742%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%2F2742%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/2742/files
Reloadhttps://github.com/github/github-mcp-server/pull/2742/files
Reloadhttps://github.com/github/github-mcp-server/pull/2742/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
MayorFajhttps://github.com/MayorFaj
github:mainhttps://github.com/github/github-mcp-server/tree/main
MayorFaj:feat/2724-improve-issue-labelhttps://github.com/MayorFaj/github-mcp-server/tree/feat/2724-improve-issue-label
Conversation 3 https://github.com/github/github-mcp-server/pull/2742
Commits 1 https://github.com/github/github-mcp-server/pull/2742/commits
Checks 1 https://github.com/github/github-mcp-server/pull/2742/checks
Findings https://github.com/github/github-mcp-server/pull/2742/findings
Files changed https://github.com/github/github-mcp-server/pull/2742/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/2742/files
enhance update_issue_labels tool with method options https://github.com/github/github-mcp-server/pull/2742/files#top
Show all changes 1 commit https://github.com/github/github-mcp-server/pull/2742/files
11728ad feat(issues): add method option to update_issue_labels MayorFaj Nov 15, 2026 https://github.com/github/github-mcp-server/pull/2742/commits/11728ad9c6b31f41357ef5b7fb9be42c148ffbd0
Clear filters https://github.com/github/github-mcp-server/pull/2742/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/2742/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/2742/files
feature-flags.md https://github.com/github/github-mcp-server/pull/2742/files#diff-c0b20dca58f0b7d630b9fe35f9c81482e026cc8a3170456f87e6192d308f620c
update_issue_labels.snap https://github.com/github/github-mcp-server/pull/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
granular_issue_types.go https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
granular_tools_test.go https://github.com/github/github-mcp-server/pull/2742/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
helper_test.go https://github.com/github/github-mcp-server/pull/2742/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402
issues_granular.go https://github.com/github/github-mcp-server/pull/2742/files#diff-6e631c944c5c90bb6a8f31f77dc046ea2c574c8bf76484813554d1efe8f1643d
typed_granular_issue_outputs_test.go https://github.com/github/github-mcp-server/pull/2742/files#diff-c895edf146dd15ad28f4738de0afe5a1dac34a6738207842e56b301016503b7c
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
docs/feature-flags.mdhttps://github.com/github/github-mcp-server/pull/2742/files#diff-c0b20dca58f0b7d630b9fe35f9c81482e026cc8a3170456f87e6192d308f620c
View file https://github.com/github/github-mcp-server/blob/11728ad9c6b31f41357ef5b7fb9be42c148ffbd0/docs/feature-flags.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/2742/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/2742/files#diff-c0b20dca58f0b7d630b9fe35f9c81482e026cc8a3170456f87e6192d308f620c
https://github.com/github/github-mcp-server/pull/2742/files#diff-c0b20dca58f0b7d630b9fe35f9c81482e026cc8a3170456f87e6192d308f620c
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/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
View file https://github.com/github/github-mcp-server/blob/11728ad9c6b31f41357ef5b7fb9be42c148ffbd0/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/2742/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
https://github.com/github/github-mcp-server/pull/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
https://github.com/github/github-mcp-server/pull/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
https://github.com/github/github-mcp-server/pull/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
https://github.com/github/github-mcp-server/pull/2742/files#diff-584afbce509e7f1be9adaf78e8becb81ba99f820313e38cefc36ab64e1d5f855
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/granular_issue_types.gohttps://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
View file https://github.com/github/github-mcp-server/blob/11728ad9c6b31f41357ef5b7fb9be42c148ffbd0/pkg/github/granular_issue_types.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/2742/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
https://github.com/github/github-mcp-server/pull/2742/files#diff-1627e300b2e394de859a9ac76279c1a0dec4b2d572060c2f7735fcf25ecd7e8b
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/2742/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
View file https://github.com/github/github-mcp-server/blob/11728ad9c6b31f41357ef5b7fb9be42c148ffbd0/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/2742/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/2742/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
https://github.com/github/github-mcp-server/pull/2742/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
https://github.com/github/github-mcp-server/pull/2742/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
https://github.com/github/github-mcp-server/pull/2742/files#diff-d554e18b7c7d185a06f29558db5cc0b2ae3ebadeb1c48069ab1c6c48340567e6
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/helper_test.gohttps://github.com/github/github-mcp-server/pull/2742/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402
View file https://github.com/github/github-mcp-server/blob/11728ad9c6b31f41357ef5b7fb9be42c148ffbd0/pkg/github/helper_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/2742/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/2742/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402
https://github.com/github/github-mcp-server/pull/2742/files#diff-e8fa532ff8ba951d7e64e769647b469b857271a3926192545c2d9ab7bb94f402
Please reload this pagehttps://github.com/github/github-mcp-server/pull/2742/files
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.