github / github/copilot-cli

Copilot CLI couldn't handle BigInt in structured MCP response

Abierto
#4,211 5 comentarios 3 reacciones 0 asignados Ver en GitHub
area:mcp triaged
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### 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_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce el fallo de la configuración .mcp.json del repositorio llamando a la herramienta return_big_numbers del proyecto StructuredContentBigIntMcp. Traza dónde se serializa la respuesta MCP estructurada e identifica el tratamiento de los valores BigInt. Se considera completado cuando la respuesta ya no provoca el error de serialización ni aborta las tareas en curso.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
shell
Área
api, cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.