github / github/copilot-cli

Copilot CLI couldn't handle BigInt in structured MCP response

Offen
#4,211 5 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:mcp triaged
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the bug

When a MCP server returns big numbers in its response, Copilot CLI cannot handle it and fails with the following error. All ongoing tasks will be aborted
```
Execution failed: TypeError: Do not know how to serialize a BigInt
```
![Image](https://github.com/user-attachments/assets/076fe79c-39b0-447c-b076-624fa938b36c)

### Affected version

1.0.74-0

### Steps to reproduce the behavior

Requires dotnet 10.
1. Clone the repo https://github.com/xj-ms/StructuredContentBigIntMcp
2. Launch Copilot CLI in the repo. The MCP server should be already configured with the local .mcp.json
3. Ask Copilot to call the `return_big_numbers` tool
4. Observe the failure

![Image](https://github.com/user-attachments/assets/ca911c34-26d2-4016-96fd-57c3d4d7d0dd)

### Expected behavior

_No response_

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere den Fehler aus der .mcp.json-Konfiguration des Repositorys, indem du das Tool return_big_numbers aus dem Projekt StructuredContentBigIntMcp aufrufst. Verfolge, wo die strukturierte MCP-Antwort serialisiert wird, und ermittle, wie BigInt-Werte behandelt werden. Als erledigt gilt die Aufgabe, wenn die Antwort keinen Serialisierungsfehler mehr auslöst und laufende Aufgaben nicht mehr abgebrochen werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
api, cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.