Skip to content

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

Closed

Description

@CloneOfAlex

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.

Activity

  1. added
    enhancement
    v2
    on Sep 18, 2026
  2. added
    chore
    and removed
    enhancement
    on Sep 23, 2026
  3. cliffhall commented on Sep 23, 2026

    @cliffhall
    Member

    Triage: Priority Low (total 4)

    • Severity 2: test coverage gap, no user-facing behavior. Retyped `enhancement` → `chore`.
    • Urgency 2: wanted eventually.
    • Bonuses: none

    Board: #28, Status Incoming (awaiting maintainer review, no milestone yet).

  4. added this to the v2.10.0 milestone on Sep 23, 2026
  5. self-assigned this
    on Oct 5, 2026
  6. added a commit that references this issue on Oct 8, 2026
    cf85f55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chorev2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions