Title: Remote MCP calls to the Copilot-hosted GitHub MCP server fail (crush) · Issue #3129 · github/github-mcp-server · GitHub
Open Graph Title: Remote MCP calls to the Copilot-hosted GitHub MCP server fail (crush) · Issue #3129 · github/github-mcp-server
X Title: Remote MCP calls to the Copilot-hosted GitHub MCP server fail (crush) · Issue #3129 · github/github-mcp-server
Description: Describe the bug Remote MCP calls to the Copilot-hosted GitHub MCP server (https://api.githubcopilot.com/mcp/) fail during tool listing with a "session not found" error, specifically on the subscriptions/listen request, which is sent wit...
Open Graph Description: Describe the bug Remote MCP calls to the Copilot-hosted GitHub MCP server (https://api.githubcopilot.com/mcp/) fail during tool listing with a "session not found" error, specifically on the subscri...
X Description: Describe the bug Remote MCP calls to the Copilot-hosted GitHub MCP server (https://api.githubcopilot.com/mcp/) fail during tool listing with a "session not found" error, specifically on t...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3129
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remote MCP calls to the Copilot-hosted GitHub MCP server fail (crush)","articleBody":"### Describe the bug\n\nRemote MCP calls to the Copilot-hosted GitHub MCP server (`https://api.githubcopilot.com/mcp/`) fail during tool listing with a \"session not found\" error, specifically on the `subscriptions/listen` request, which is sent with an empty session ID. This started abruptly today - first occurence at `2026/08/20 14:29:20` UTC+2 - with no local config or token changes, and reproduces consistently across multiple client (Crush) versions (0.88.1, 0.89.0 and 0.90.0), so it does not appear to be a client-side regression. I have been using the remote MCP calls for the past 2-3 weeks successfully.\n\nNotably, the `initialize` response's `capabilities.resources` object is empty (`{}`) — no `subscribe: true` is advertised — yet the client attempts a `subscriptions/listen` call regardless, which then fails with the empty-session error and tears down the connection.\n\nI've isolated this to the server/session layer with a manual curl reproduction (see below, and double check it as I asked my local AI to give me the curl commands for this investigation): a raw `initialize` -> `notifications/initialized` ->`tools/list` sequence against the same endpoint, with the same PAT, completes successfully and returns a valid session ID. This suggests the issue is specific to how the session ID is being handled/propagated for the `subscriptions/listen` call path, not with authentication or the basic MCP handshake.\n\n### Affected version\n\nI don't know which version the remote is using. But I can see in this morning crush logs that it triggers no error, and then in the early afternoon and until now I have the errors. So whatever changed during that time period.\n\nThe curl initialise post returned a version, I hope this is relevant for you:\n\n \"version\":\"github-mcp-server/remote-cea154657bcbd68eeea95ecedde676a3278e2c30\"\n\n### Steps to reproduce the behavior\n\n1. Configure an MCP client (I used Crush, versions 0.90.0, 0.89.0, and 0.88.1, all reproduce identically) to connect to `https://api.githubcopilot.com/mcp/` via HTTP transport with a valid PAT in the `Authorization: Bearer` header. (see below)\n2. Have the client perform the standard MCP handshake (`initialize` → `notifications/initialized` → `tools/list`).\n3. Observe the client fail while listing tools, with the underlying transport attempting `subscriptions/listen` and receiving a \"session not found\" error with an empty session ID.\n\nI'm using the following `.crushrc` configuration in my local project:\n\n```\nmcp add github --type http --url \"https://api.githubcopilot.com/mcp/\" \\\n --timeout 10 --header Authorization \"Bearer $GH_PAT\"\n```\n\nBefore calling `crush` I load my GitHub PAT in the GH_PAT env variable. I'm using a fine grained access token (which is not expired):\n\n Repository access: openporte/openporte\n Repository permissions: Read access to Dependabot alerts, License compliance alerts, code, code quality, commit statuses, issues, metadata, pull requests, and security events\n\n### Expected vs actual behavior\n\n**Expected:** When starting crush, the MCP status for GitHub should be green.\n\n**Actual:** When starting crush, the MCP status for GitHub is red with an error. The message is truncated in the TUI: `GitHub error: connection cl...` the rest isn't visible. But I have a log message which is in the next section.\n\n\n### Logs\n\nThis is the relevant line from my crush log (the first time it broke):\n\n```\n2026/08/20 14:29:20 ERRO Error listing tools error=\"connection closed: calling \"tools/list\": client is closing: sending \"subscriptions/listen\": failed to connect (session ID: ): session not found\" source=github.com/charmbracelet/crush/internal/agent/tools/mcp/init.go:552\n```\n\nAnd the previous startup was successful with:\n```\n2026/08/19 02:34:32 INFO Initializing MCP clients source=github.com/charmbracelet/crush/internal/agent/tools/mcp/init.go:294\n```\n\nCrush was running the whole time between this two dates. I restarted crush this afternoon because I added a new provider to its config. In my crush sessions this morning and yesterday, I referenced GitHub issues which were read from crush.\n\nAnd from curl, `initialize` response capabilities (redacted of unrelated fields):\n```json\n{\"capabilities\":{\"completions\":{},\"prompts\":{},\"resources\":{},\"tools\":{}}, \"protocolVersion\":\"2025-06-18\"}\n```\nNote `resources` is empty; no `subscribe` flag advertised.","author":{"url":"https://github.com/jcberthon","@type":"Person","name":"jcberthon"},"datePublished":"2026-08-20T21:09:10Z","url":"https://github.com/github/github-mcp-server/issues/3129"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d68f3492-ced1-1ea5-f6c2-7e349a6c3c83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB8E:1B0ABF:5E2845:81D446:6B068F6C |
| html-safe-nonce | f05ee480d95384852838a768c23fb62595d6d462c46a5ec8dd94c000f6f41e32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjhFOjFCMEFCRjo1RTI4NDU6ODFENDQ2OjZCMDY4RjZDIiwidmlzaXRvcl9pZCI6IjI5MDAxODgwNzE1NTc3NjI5MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f5169fb8cd7f812c061e6493acb1d976d5d4ed00435c4c25fc6a0e55fa28ad45 |
| hovercard-subject-tag | issue:5207890399 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a93046d4c5b2da53301bacc65e0047ef794761c5a0b20f425ef1f5343482354/github/github-mcp-server/issues/3129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a93046d4c5b2da53301bacc65e0047ef794761c5a0b20f425ef1f5343482354/github/github-mcp-server/issues/3129 |
| og:image:alt | Describe the bug Remote MCP calls to the Copilot-hosted GitHub MCP server (https://api.githubcopilot.com/mcp/) fail during tool listing with a "session not found" error, specifically on the subscri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jcberthon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width