MCP server: ping gets a method-not-found error instead of an empty result

オープン
#294 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@FredApps がすでに取り組んでいます。

2026年11月17日 から。

  • #295 @FredApps による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript

調査の方向性

Start in packages/diffci-cli/src/client/mcp.ts and read how handle() dispatches MCP requests and formats responses. Check the existing tests for the MCP server, if available, and add coverage for the ping request shown in the repro. Done means ping returns the expected empty result; a linked pull request is already open for this issue.

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

説明

The MCP server (diffci mcp, packages/diffci-cli/src/client/mcp.ts) has no ping case in handle(). A ping request gets the method-not-found error. The MCP base protocol (Lifecycle → Ping) requires the receiver to "respond promptly with an empty response". Clients that ping to check the connection can treat the error as a dead server.

Repro: start diffci mcp, send initialize, then {"jsonrpc":"2.0","id":2,"method":"ping"}.

Expected: {"jsonrpc":"2.0","id":2,"result":{}}.

Actual: an error response (method not found) for id 2.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
18時間 41分
マージ済み PR(30日)
48

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

DiffCI/core のほかの issue

DiffCI/core の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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