inspector icon indicating copy to clipboard operation
inspector copied to clipboard

Web backend: list and terminate active sessions

Open CloneOfAlex opened this issue 1 month ago • 1 comments

Which client?

Web

The problem

Sessions created by browser tabs that went away keep their transports and child processes alive, and there is no way to see or stop them short of restarting the Inspector. Users running many servers, or servers that hold locks/ports, notice this as resource exhaustion with no explanation.

Solution you have in mind (optional)

An authenticated GET /api/mcp/sessions (server name, transport, created, last consumer seen, queued events) and a DELETE to terminate one, plus a small panel in the web UI.

Alternatives or workarounds you have tried

Restarting the Inspector, which also drops every healthy connection.

Already built it locally?

No response

Before you submit

  • [x] I searched existing issues and this is not a duplicate.
  • [x] This is a request for the Inspector itself, not for the MCP specification or an SDK.

CloneOfAlex avatar Oct 28 '26 23:10 CloneOfAlex

Triage: Priority Low (total 4)

  • Severity 2 — an operator control for leaked sessions; the root cause is tracked in #2824
  • Urgency 2 — wanted eventually, nothing blocked on it
  • Bonuses: none (no milestone, assignee, epic, engagement or reporter-set priority)

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

cliffhall avatar Oct 29 '26 03:10 cliffhall