René's URL Explorer Experiment


Title: Intermittent HTTP 500 from remote MCP endpoint: "can't get copilot user by id" twirp permission_denied · Issue #2508 · github/github-mcp-server · GitHub

Open Graph Title: Intermittent HTTP 500 from remote MCP endpoint: "can't get copilot user by id" twirp permission_denied · Issue #2508 · github/github-mcp-server

X Title: Intermittent HTTP 500 from remote MCP endpoint: "can't get copilot user by id" twirp permission_denied · Issue #2508 · github/github-mcp-server

Description: Description Since approximately May 18, 2026 (coinciding with v1.0.5 release), the remote MCP endpoint at https://api.githubcopilot.com/mcp/ intermittently returns HTTP 500 with a raw text/plain error body. The failure rate is approximat...

Open Graph Description: Description Since approximately May 18, 2026 (coinciding with v1.0.5 release), the remote MCP endpoint at https://api.githubcopilot.com/mcp/ intermittently returns HTTP 500 with a raw text/plain er...

X Description: Description Since approximately May 18, 2026 (coinciding with v1.0.5 release), the remote MCP endpoint at https://api.githubcopilot.com/mcp/ intermittently returns HTTP 500 with a raw text/plain er...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intermittent HTTP 500 from remote MCP endpoint: \"can't get copilot user by id\" twirp permission_denied","articleBody":"### Description\n\nSince approximately May 18, 2026 (coinciding with v1.0.5 release), the remote MCP endpoint at `https://api.githubcopilot.com/mcp/` intermittently returns HTTP 500 with a raw text/plain error body. The failure rate is approximately **7–10%** and affects write operations like `create_branch`. Read-only operations (`search_repositories`, `get_file_contents`) appear unaffected.\n\n### Error Response\n\n**HTTP Status:** `500 Internal Server Error`  \n**Content-Type:** `text/plain; charset=utf-8` (not a valid JSON-RPC or SSE response)\n\n```\ncan't get copilot user by id: error getting copilot user details: twirp error permission_denied: Error from intermediary with HTTP status code 403 \"Forbidden\"\n```\n\n### Full Request/Response Context\n\n**Request:**\n```http\nPOST https://api.githubcopilot.com/mcp/\nAuthorization: Bearer \u003cvalid-PAT-with-repo-scope\u003e\nContent-Type: application/json\nAccept: application/json, text/event-stream\nMcp-Session-Id: \u003cvalid-session-id\u003e\n```\n\n```json\n{\n  \"jsonrpc\": \"2.0\",\n  \"method\": \"tools/call\",\n  \"id\": 9,\n  \"params\": {\n    \"name\": \"create_branch\",\n    \"arguments\": {\n      \"owner\": \"\u003corg\u003e\",\n      \"repo\": \"\u003cprivate-repo\u003e\",\n      \"branch\": \"test-branch-name\",\n      \"from_branch\": \"main\"\n    }\n  }\n}\n```\n\n**Response Headers:**\n```\nHTTP/2 500\ncontent-type: text/plain; charset=utf-8\nx-github-backend: Kubernetes\nx-github-request-id: D44E:1D706B:5F7B92F:675BE79:6A0C6556\n```\n\n### Reproduction\n\n- **Frequency:** ~7–10% of `create_branch` calls (1 in 9 to 1 in 15 attempts)\n- **Pattern:** Random, not correlated with request timing or concurrency\n- **Session state:** Occurs on freshly initialized sessions (not stale session issue)\n- **Authentication:** PAT is valid (other calls in the same session succeed; `initialize` and `tools/list` always return 200)\n\nMinimal reproduction: send 15–30 consecutive `create_branch` tool calls (each with a new session). Typically 1–3 will return HTTP 500.\n\n### Analysis\n\nThe error chain suggests the failure occurs in the **Copilot hosting infrastructure** (not in the open-source MCP server logic):\n\n1. Request passes HTTP gateway authentication (PAT is valid → not 401)\n2. Hosting layer attempts internal twirp RPC: `getCopilotUserById`\n3. An internal service mesh intermediary returns **403 Forbidden** to the twirp call\n4. This unhandled error propagates as a raw HTTP 500 to the client\n\nThe 403 from the \"intermediary\" indicates a **service-to-service authentication failure** (likely mTLS cert rotation, internal token expiry, or inconsistent sidecar state during deployment), not a user-permission issue.\n\n### Impact\n\n- MCP clients using `streamablehttp_client` have their entire transport killed by this error (the SDK's `post_writer` TaskGroup crashes, closing read/write streams)\n- Simple in-session retries are ineffective because the session is dead after the 500\n- Automated workloads (CI/CD, evaluation pipelines) see cascading failures\n\n### Expected Behavior\n\n- HTTP 500 should not leak internal error details to clients\n- The `getCopilotUserById` lookup should have retry/circuit-breaker logic on the server side\n- Alternatively, the error should be wrapped in a proper JSON-RPC error response so MCP clients can handle it gracefully\n\n### Environment\n\n- MCP Protocol Version: `2024-11-05`\n- Transport: Streamable HTTP (POST)\n- Client: Python MCP SDK (`mcp` package)\n- Authentication: GitHub PAT (repo + read:org scopes)\n- GitHub MCP Server version: v1.0.5 (remote, hosted)\n\n### Related\n\n- microsoft/vscode-copilot-release#990 (same error pattern, reported March 2024)\n- PR #2478 (IFC marker change merged May 14, 2026 — temporal correlation with onset)","author":{"url":"https://github.com/KentWangYQ","@type":"Person","name":"KentWangYQ"},"datePublished":"2026-05-19T14:12:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2508/github-mcp-server/issues/2508"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a263cf95-0c22-a60e-9601-7660781df9f3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9938:46DA8:45B1E:64006:6A622CAF
html-safe-nonce744cb8dd8bcfd159d1c8da7f4bec6ff1d9123d62713526b0a55dc89552f0ab0b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTM4OjQ2REE4OjQ1QjFFOjY0MDA2OjZBNjIyQ0FGIiwidmlzaXRvcl9pZCI6Ijg1Mzk2NDQ3MDE0NTY4NzA1NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac610653012c4e4d9f31f6dd096615e7e040c165e600ae6ec811e0148cca66952f
hovercard-subject-tagissue:4478110920
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/2508/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9f8874efb9c5ac35210855e9728bffb093d3aee7d8f861dafd73545e3998dea6/github/github-mcp-server/issues/2508
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9f8874efb9c5ac35210855e9728bffb093d3aee7d8f861dafd73545e3998dea6/github/github-mcp-server/issues/2508
og:image:altDescription Since approximately May 18, 2026 (coinciding with v1.0.5 release), the remote MCP endpoint at https://api.githubcopilot.com/mcp/ intermittently returns HTTP 500 with a raw text/plain er...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKentWangYQ
hostnamegithub.com
expected-hostnamegithub.com
None0e882415c7b47986d65f899389c870b31642bb1c6f36516eb042618596c60e62
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
release230e2af5fc0870303dd4569d72d2bb393ed52c52
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/issues/2508#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fissues%2F2508
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%2F2508
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/2508
Reloadhttps://github.com/github/github-mcp-server/issues/2508
Reloadhttps://github.com/github/github-mcp-server/issues/2508
Please reload this pagehttps://github.com/github/github-mcp-server/issues/2508
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
Intermittent HTTP 500 from remote MCP endpoint: "can't get copilot user by id" twirp permission_deniedhttps://github.com/github/github-mcp-server/issues/2508#top
bugSomething isn't workinghttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
request ai reviewhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22request%20ai%20review%22
https://github.com/KentWangYQ
KentWangYQhttps://github.com/KentWangYQ
on May 19, 2026https://github.com/github/github-mcp-server/issues/2508#issue-4478110920
500 Internal Server Error / error getting copilot user details microsoft/vscode-copilot-release#990https://github.com/microsoft/vscode-copilot-release/issues/990
Replace ingress IFC reader list with private marker #2478https://github.com/github/github-mcp-server/pull/2478
bugSomething isn't workinghttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22bug%22
request ai reviewhttps://github.com/github/github-mcp-server/issues?q=state%3Aopen%20label%3A%22request%20ai%20review%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.