René's URL Explorer Experiment


Title: Audit and fix missing ReadOnlyHint annotations on read-intent tools · Issue #2483 · github/github-mcp-server · GitHub

Open Graph Title: Audit and fix missing ReadOnlyHint annotations on read-intent tools · Issue #2483 · github/github-mcp-server

X Title: Audit and fix missing ReadOnlyHint annotations on read-intent tools · Issue #2483 · github/github-mcp-server

Description: Problem The Coding Agent runtime's MCP permission gate auto-approves tool calls only when the underlying tool is annotated with ReadOnlyHint: true. Anything else (including undefined / missing annotation, or ReadOnlyHint: false) prompts ...

Open Graph Description: Problem The Coding Agent runtime's MCP permission gate auto-approves tool calls only when the underlying tool is annotated with ReadOnlyHint: true. Anything else (including undefined / missing anno...

X Description: Problem The Coding Agent runtime's MCP permission gate auto-approves tool calls only when the underlying tool is annotated with ReadOnlyHint: true. Anything else (including undefined / missing ...

Opengraph URL: https://github.com/github/github-mcp-server/issues/2483

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Audit and fix missing ReadOnlyHint annotations on read-intent tools","articleBody":"## Problem\n\nThe Coding Agent runtime's MCP permission gate auto-approves tool calls only when the underlying tool is annotated with `ReadOnlyHint: true`. Anything else (including `undefined` / missing annotation, or `ReadOnlyHint: false`) prompts the user.\n\nIn production we're seeing read-intent github-mcp-server tools prompting users — for example, callers using the legacy alias `get_review` (now consolidated into `pull_request_read`).\n\nSource flow on the runtime side:\n- `runtime/src/mcp-client/known-mcp-servers.ts:585-596` — `extractMCPToolAnnotations` requires `readOnlyHint` to be a strict `boolean`; missing/non-boolean → `undefined`.\n- `runtime/src/tools/mcp-transport.ts:509` — `readOnly: toolConfig.readOnly ? true : false` collapses `undefined` → `false` → user prompted.\n- `runtime/src/apps/permission-gate.ts` — auto-approves only when `request.readOnly === true`.\n\nPer agreement with the runtime team, defaulting `undefined` to \"read-only\" is **not** the right fix (would over-grant). Instead, ensure the github-mcp-server side is the source of truth.\n\n## What's needed\n\n1. **Audit every tool currently registered by github-mcp-server** for missing or incorrect `Annotations.ReadOnlyHint`. Most existing read-only tools already have this set (verified `pull_request_read`, `issue_triage_context`, `semantic_issues_search`, `package_search`, `dependabot`, `find_closing_pull_requests`, `summarize_actions`). Find the gaps.\n2. **Deprecated tool aliases**: when `DeprecatedToolAliases` (`pkg/github/deprecated_tool_aliases.go`) routes a call from an old name (`get_review`, `list_issues`, etc.) to a new canonical tool (`pull_request_read`, `issue_read`, etc.), make sure the alias's tool descriptor inherits the canonical tool's annotations. Today the aliased tool may be exposed without annotations, defeating the runtime's auto-approve path.\n3. **Consider adding a CI check** that fails if any tool registered via `mcp.NewTool` lacks an explicit `ReadOnlyHint` (true or false). Forcing the choice at registration time prevents future regressions.\n\n## How to verify\n\nQuick way to spot missing annotations in this repo:\n\n```\ngrep -rln 'mcp.NewTool\\|toolset.NewTool' --include='*.go' | grep -v _test | xargs -L1 -I{} sh -c 'grep -L ReadOnlyHint \"{}\"'\n```\n\nRepeat for the deprecated-alias dispatch path.\n\n## Related\n\n- Coding Agent runtime: `runtime/src/mcp-client/{known-mcp-servers.ts,out-of-proc-mcp-host.ts,mcp-registry.ts}` — current consumer of these annotations.\n- Coding Agent permission gate behavior: github/sweagentd `runtime/src/apps/permission-gate.ts`.\n\ncc @ritchxu","author":{"url":"https://github.com/ritchxu","@type":"Person","name":"ritchxu"},"datePublished":"2026-05-15T21:07:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2483/github-mcp-server/issues/2483"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ccc73b1f-2683-f0b2-0cb9-7ec161d0579d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC614:166A68:8A2950:C6A5C4:6A6214F7
html-safe-nonceed61874f3990234a4b96732422ca42dc505764179ffcc7ef3d7ec92bb9e7d3fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjE0OjE2NkE2ODo4QTI5NTA6QzZBNUM0OjZBNjIxNEY3IiwidmlzaXRvcl9pZCI6IjMxMjIxNTIxNTMyMDI5NTU1MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2bb044d155bd2e5c459b87f9d9395b1b8963dd51ca8f0bc3f0c6451750548875
hovercard-subject-tagissue:4456967897
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/2483/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6dba838fbfe6ef23a1b99769ed68de025bf390853625ccfb6eaefb2e64b77902/github/github-mcp-server/issues/2483
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6dba838fbfe6ef23a1b99769ed68de025bf390853625ccfb6eaefb2e64b77902/github/github-mcp-server/issues/2483
og:image:altProblem The Coding Agent runtime's MCP permission gate auto-approves tool calls only when the underlying tool is annotated with ReadOnlyHint: true. Anything else (including undefined / missing anno...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameritchxu
hostnamegithub.com
expected-hostnamegithub.com
Noneccf61cb7ab435725b916ed640f57c45b2c4721db9469bc32656080efc5214b3e
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea7585b3d2ee639495a70ce464d0a18bad88ea12c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/2483#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F2483
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F2483
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/issues/2483
Reloadhttps://github.com/github/github-mcp-server/issues/2483
Reloadhttps://github.com/github/github-mcp-server/issues/2483
Please reload this pagehttps://github.com/github/github-mcp-server/issues/2483
github https://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Notifications https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Fork 4.6k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Star 31.7k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Code https://github.com/github/github-mcp-server
Issues 171 https://github.com/github/github-mcp-server/issues
Pull requests 163 https://github.com/github/github-mcp-server/pulls
Discussions https://github.com/github/github-mcp-server/discussions
Actions https://github.com/github/github-mcp-server/actions
Models https://github.com/github/github-mcp-server/models
Security and quality 2 https://github.com/github/github-mcp-server/security
Insights https://github.com/github/github-mcp-server/pulse
Code https://github.com/github/github-mcp-server
Issues https://github.com/github/github-mcp-server/issues
Pull requests https://github.com/github/github-mcp-server/pulls
Discussions https://github.com/github/github-mcp-server/discussions
Actions https://github.com/github/github-mcp-server/actions
Models https://github.com/github/github-mcp-server/models
Security and quality https://github.com/github/github-mcp-server/security
Insights https://github.com/github/github-mcp-server/pulse
Audit and fix missing ReadOnlyHint annotations on read-intent toolshttps://github.com/github/github-mcp-server/issues/2483#top
https://github.com/ritchxu
ritchxuhttps://github.com/ritchxu
on May 15, 2026https://github.com/github/github-mcp-server/issues/2483#issue-4456967897
@ritchxuhttps://github.com/ritchxu
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

Viewport: width=device-width


URLs of crawlers that visited me.