René's URL Explorer Experiment


Title: support GitHub App installation‑token authentication (server‑to‑server) for MCP · Issue #311 · github/github-mcp-server · GitHub

Open Graph Title: support GitHub App installation‑token authentication (server‑to‑server) for MCP · Issue #311 · github/github-mcp-server

X Title: support GitHub App installation‑token authentication (server‑to‑server) for MCP · Issue #311 · github/github-mcp-server

Description: Describe the feature or problem you’d like to solve MCP can currently authenticate with: Personal Access Tokens (classic or fine‑grained) ✨ Soon 🚀: OAuth 2.0 device‑code flow via #132 Both approaches depend on credentials that are bound ...

Open Graph Description: Describe the feature or problem you’d like to solve MCP can currently authenticate with: Personal Access Tokens (classic or fine‑grained) ✨ Soon 🚀: OAuth 2.0 device‑code flow via #132 Both approach...

X Description: Describe the feature or problem you’d like to solve MCP can currently authenticate with: Personal Access Tokens (classic or fine‑grained) ✨ Soon 🚀: OAuth 2.0 device‑code flow via #132 Both approach...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"support GitHub App installation‑token authentication (server‑to‑server) for MCP","articleBody":"### Describe the feature or problem you’d like to solve\n\nMCP can currently authenticate with:\n\n* Personal Access Tokens (classic or fine‑grained) ✨\n* *Soon 🚀*: OAuth 2.0 device‑code flow via https://github.com/github/github-mcp-server/issues/132\n\nBoth approaches depend on credentials that are bound to a *human* account.  \nIn enterprises(including ours) PAT creation is **often blocked**, and a device‑code token still requires a privileged “service user” to stay alive.  \nThat leaves 24 × 7, org‑wide automation brittle and out of step with GitHub’s own security guidance.\n\n| Concern | Fine‑grained  PAT | OAuth device‑code |\n|---------|-----------------|-------------------|\n| 👤 Identity coupling | Single user  →  breaks on off‑boarding | Needs service user |\n| ⏳ Secret lifetime | Up to 1 year; manual/scripted rotation | 8 h access token + 6 mo refresh token |\n| 🔍 Audit clarity | Traffic appears as that user | `oauth-app/\u003capp\u003e (as @user)` |\n| 🛡️ Org policies | PATs often disallowed | Refresh token is still long‑lived |\n\nSo, neither option is ideal for a headless, fleet‑wide MCP deployment.\n\n*Visual cheat‑sheet (PAT vs device‑code vs GitHub App installation):*  \n\u003cimg width=\"1091\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/fb2761b6-f829-433d-817b-ae1dc9e0a815\" /\u003e\n\n\n### Proposed solution\n\nAllow **GitHub App installation‑token (server‑to‑server) authentication**.\n\n* install the App at org/enterprise scope with the minimum perms MCP needs (`contents:read`, `metadata:read`, etc)  \n* store only the App’s private key in AWS Secrets Manager / KMS\n* at runtime MCP signs a short‑lived JWT → exchanges it for a 60‑minute installation token → refreshes automatically\n* audit events appear as `github‑app/mcp‑server`\n\n**Benefits**\n\n* **zero human coupling** – no PATs, survives re‑orgs and off‑boarding\n* **short‑lived creds** – ≤ 60 min window if a token leaks\n* **governance** – admins can see/change App permissions \u0026 repo list in one click\n* **clear audit trail** – bot traffic is obvious (`github‑app/…`)\n* **future‑proof** – aligns MCP with GitHub’s move away from long‑lived personal tokens\n\n### Additional context\n\n**Suggested implementation approach**\n\n1. add `--auth=github-app` flag\n2. read `APP_ID`, `INSTALLATION_ID`, private‑key path/env var\n3. generate JWT (RS256) → `POST /app/installations/{id}/access_tokens`\n4. inject token into existing GitHub client; transparently refresh on HTTP 401/expiry\n\n*Architecture sketch of MCP + GitHub App flow:*  \n\u003cimg width=\"572\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/80bc9a9a-48d8-4ff8-9141-59b5d429f564\" /\u003e\n\nHappy to help spec out more, test, etc - just let me know what’s useful 🙌\n","author":{"url":"https://github.com/Svetlanko","@type":"Person","name":"Svetlanko"},"datePublished":"2025-04-18T21:47:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/311/github-mcp-server/issues/311"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ef9f1a1-934f-9dad-7c7d-e1b2749c3549
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA6C:703A5:286CA58:3AC6EC5:6A60EBE2
html-safe-nonceb4437cd879255923eb362219d2ad79f551479cc1eb511857d1120c92b2495dfa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTZDOjcwM0E1OjI4NkNBNTg6M0FDNkVDNTo2QTYwRUJFMiIsInZpc2l0b3JfaWQiOiIyMTQ0ODczNDY1MDE0OTcxMzYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace5f0b5ea19d13f7924ccec9b0028cec4a25c91f01ae40df3f2e638cfa738f4b9
hovercard-subject-tagissue:3005815856
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/311/issue_layout
twitter:imagehttps://opengraph.githubassets.com/95eb471e440fec9f83df158aea80c84b66d0480293e620789efc756e75e1116c/github/github-mcp-server/issues/311
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/95eb471e440fec9f83df158aea80c84b66d0480293e620789efc756e75e1116c/github/github-mcp-server/issues/311
og:image:altDescribe the feature or problem you’d like to solve MCP can currently authenticate with: Personal Access Tokens (classic or fine‑grained) ✨ Soon 🚀: OAuth 2.0 device‑code flow via #132 Both approach...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSvetlanko
hostnamegithub.com
expected-hostnamegithub.com
None3ba36a464b9464992131f4003292a219fc87f92404b0dbe3fd1ef07f11102d0f
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
release2cc5e4f897a27632dd600edfec4c737bea2f8338
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/311#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F311
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%2F311
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/311
Reloadhttps://github.com/github/github-mcp-server/issues/311
Reloadhttps://github.com/github/github-mcp-server/issues/311
Please reload this pagehttps://github.com/github/github-mcp-server/issues/311
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.6k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Code https://github.com/github/github-mcp-server
Issues 169 https://github.com/github/github-mcp-server/issues
Pull requests 170 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
support GitHub App installation‑token authentication (server‑to‑server) for MCPhttps://github.com/github/github-mcp-server/issues/311#top
enhancementNew feature or requesthttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
waiting-for-replyhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22waiting-for-reply%22
https://github.com/Svetlanko
Svetlankohttps://github.com/Svetlanko
on Apr 18, 2025https://github.com/github/github-mcp-server/issues/311#issue-3005815856
Non PAT auth method #132https://github.com/github/github-mcp-server/issues/132
https://github.com/user-attachments/assets/fb2761b6-f829-433d-817b-ae1dc9e0a815
https://github.com/user-attachments/assets/80bc9a9a-48d8-4ff8-9141-59b5d429f564
enhancementNew feature or requesthttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
waiting-for-replyhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22waiting-for-reply%22
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.