github / github/copilot-cli

Copilot CLI couldn't handle BigInt in structured MCP response

Đang mở
#4,211 5 bình luận 3 reaction 0 người được giao Xem trên GitHub
area:mcp triaged
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện lỗi từ cấu hình .mcp.json của repository bằng cách gọi công cụ return_big_numbers từ dự án StructuredContentBigIntMcp. Theo dõi nơi phản hồi MCP có cấu trúc được tuần tự hóa và xác định cách xử lý các giá trị BigInt. Được xem là hoàn tất khi phản hồi không còn gây ra lỗi tuần tự hóa hoặc hủy các tác vụ đang diễn ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
api, cli
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.