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

Đang mở
#294 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@FredApps đang làm issue này rồi.

Từ ngày 17/11/2026.

  • #295 của @FredApps — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

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.

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

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
18 giờ 41 phút
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DiffCI/core

Tất cả issue của DiffCI/core

Issue tương tự

Thêm issue về TypeScript

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.