Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

No dedicated test fixture simulates a mid-session server crash/disconnect

Đã đóng
#2,437 1 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

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

Từ ngày 5/10/2026.

  • #2598 của @cliffhall — đang mở

Đánh giá

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

Hướng nghiên cứu

Bắt đầu với logic Crash-Reconciliation trong core/mcp/inspectorClient.ts, đặc biệt là các khu vực xung quanh dòng 1207-1260 và 1965-2160, sau đó kiểm tra các fixture test-servers hiện có. Thêm một fixture hoặc mode bị crash hoặc bị treo tại một điểm session được chọn, và thêm các test core thực thi những đường dẫn reconciliation đó và luôn vượt qua một cách ổn định.

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

Mô tả

chore v2
Which client?

All / shared core

The problem

core/mcp/inspectorClient.ts has substantial crash-reconciliation logic (roughly lines 1207-1260 and 1965-2160) for handling a server process dying or disconnecting mid-session, but there's no dedicated test fixture/mock server that deliberately crashes at a chosen point in a session. Coverage of this logic currently relies on incidental paths rather than a targeted simulation, so a regression here could slip through.

Solution you have in mind (optional)

Add a test-servers fixture (or a mode flag on an existing one) that can be told to crash/hang at a specific point in a session, and add core tests that drive the client through the reconciliation paths using it.

Alternatives or workarounds you have tried

No response

Already built it locally?

No response

Before you submit
  • I searched existing issues and this is not a duplicate.
  • This is a request for the Inspector itself, not for the MCP specification or an SDK.
Ngôn ngữ chính
TypeScript
Star
11.1k
Fork
1.5k
Merge trung bình
4 giờ 4 phút
Pull request đã merge (30 ngày)
170

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

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 modelcontextprotocol/inspector

Tất cả issue của modelcontextprotocol/inspector

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.