github / github/copilot-cli

Copilot CLI couldn't handle BigInt in structured MCP response

未關閉
#4,211 5 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
area:mcp triaged
主要語言
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
```
![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_

貢獻指南

開啟貢獻指南

研究方向

透過呼叫 StructuredContentBigIntMcp 專案的 return_big_numbers 工具,重現儲存庫 .mcp.json 設定中的失敗。追蹤結構化 MCP 回應在哪裡進行序列化,並確認 BigInt 值的處理方式。當回應不再引發序列化錯誤或中止進行中的工作時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
api, cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。