github / github/copilot-cli

Copilot CLI couldn't handle BigInt in structured MCP response

オープン
#4,211 コメント 5 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

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

Image

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

Expected behavior

No response

Additional context

No response

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リポジトリの .mcp.json 構成から、StructuredContentBigIntMcp プロジェクトの return_big_numbers ツールを呼び出して障害を再現します。構造化された MCP レスポンスがどこでシリアライズされるかを追跡し、BigInt 値の処理を特定します。レスポンスがシリアライズエラーを発生させなくなり、進行中のタスクを中断しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
shell
領域
api, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。