Copilot CLI couldn't handle BigInt in structured MCP response
オープン
まだ誰も着手していません。
area:mcp
triaged
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 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.
- Clone the repo https://github.com/xj-ms/StructuredContentBigIntMcp
- Launch Copilot CLI in the repo. The MCP server should be already configured with the local .mcp.json
- Ask Copilot to call the
return_big_numberstool - Observe the failure
Expected behavior
No response
Additional context
No response
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リポジトリの .mcp.json 構成から、StructuredContentBigIntMcp プロジェクトの return_big_numbers ツールを呼び出して障害を再現します。構造化された MCP レスポンスがどこでシリアライズされるかを追跡し、BigInt 値の処理を特定します。レスポンスがシリアライズエラーを発生させなくなり、進行中のタスクを中断しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- api, cli
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100