Copilot CLI couldn't handle BigInt in structured MCP response
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### 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
```

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

### Expected behavior
_No response_
### Additional context
_No response_
贡献指南
调研方向
通过调用 StructuredContentBigIntMcp 项目的 return_big_numbers 工具,复现仓库 .mcp.json 配置中的故障。跟踪结构化 MCP 响应在哪里被序列化,并确定 BigInt 值的处理方式。当响应不再引发序列化错误或中止正在进行的任务时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- api, cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100