Remote MCP calls to the Copilot-hosted GitHub MCP server fail (crush)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
Piste de recherche
Commencez par le handshake curl manuel et les points d’entrée de Crush MCP dans internal/agent/tools/mcp/init.go, en particulier les lignes journalisées autour de 552 et 294. Comparez la gestion des sessions pour subscriptions/listen avec la initialize capabilities response, puis reproduisez le problème sur l’endpoint distant. C’est terminé lorsque la liste des outils est obtenue sans erreur empty-session et que Crush signale un statut GitHub MCP vert.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
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 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.
Notably, 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.
I'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.
Affected version
I 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.
The curl initialise post returned a version, I hope this is relevant for you:
"version":"github-mcp-server/remote-cea154657bcbd68eeea95ecedde676a3278e2c30"
Steps to reproduce the behavior
- 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 theAuthorization: Bearerheader. (see below) - Have the client perform the standard MCP handshake (
initialize→notifications/initialized→tools/list). - Observe the client fail while listing tools, with the underlying transport attempting
subscriptions/listenand receiving a "session not found" error with an empty session ID.
I'm using the following .crushrc configuration in my local project:
mcp add github --type http --url "https://api.githubcopilot.com/mcp/" \
--timeout 10 --header Authorization "Bearer $GH_PAT"
Before 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):
Repository access: openporte/openporte
Repository permissions: Read access to Dependabot alerts, License compliance alerts, code, code quality, commit statuses, issues, metadata, pull requests, and security events
Expected vs actual behavior
Expected: When starting crush, the MCP status for GitHub should be green.
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.
Logs
This is the relevant line from my crush log (the first time it broke):
2026/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
And the previous startup was successful with:
2026/08/19 02:34:32 INFO Initializing MCP clients source=github.com/charmbracelet/crush/internal/agent/tools/mcp/init.go:294
Crush 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.
And from curl, initialize response capabilities (redacted of unrelated fields):
{"capabilities":{"completions":{},"prompts":{},"resources":{},"tools":{}}, "protocolVersion":"2025-06-18"}
Note resources is empty; no subscribe flag advertised.
- Langage dominant
- Go
- Étoiles
- 33.1k
- Forks
- 5k
- Merge moyen
- 1 j 8 min
- PR mergées (30 j)
- 13
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/github-mcp-server
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
github/github-mcp-server#3235 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
github/github-mcp-server#3042 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
github/github-mcp-server#3032 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
github/github-mcp-server#2803 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
github/github-mcp-server#2740 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de github/github-mcp-server
Issues similaires
-
Remove CAAPFOuvertekind/chore kind/cleanup needs-area
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
rancher/turtles#2848 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
priority: low 🌱 type: enhancement 💅🏼
Difficulté 2/5 Une demi-journée Accessibilité débutants 84/100
nebari-dev/llm-serving-pack#199 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
kedacore/keda#8225 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour