inspector/core/mcp/state
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall d57801d7b3 feat(core): report connection state on a request timeout (#2318)
A request timeout used to surface as a bare `Request timed out`. Every
fact needed to explain it was already in-process: what the client was
still waiting on, when it last heard back, and the state of the
standalone GET notification stream. The SDK's timeout now rejects with
all three, and the same snapshot is shown live in Connection Info and
on the Network entry for the stream.

- core/mcp/connectionDiagnostics.ts: the snapshot type, its one-line
  description, and `annotateRequestTimeout`, which rebuilds the SDK's
  per-request timeout with the state at that moment.
- InspectorClient decorates the SDK Client's `request` (the one funnel
  every verb goes through) so the annotation covers the whole surface;
  tracks outstanding requests with their send time, the last response,
  and the most recent long-lived transport stream; exposes
  `getConnectionDiagnostics()` and `connectionDiagnosticsChange`.
- fetchTracking watches a long-lived stream through a tee'd clone,
  counting SSE events and reporting the close, via a new
  `updateStream` callback wired through the node transport, the remote
  session (`fetch_stream_update`), and the browser transport.
- FetchRequestLogState patches `entry.stream`; the Network entry's
  placeholder reports the event count and open/closed state.
- Connection Info gains a Connection Activity section, ticking while
  open (`useTickingClock`).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01APKSYHGxXBUpnR7ErFiLJn
Signed-off-by: cliffhall <cliff@futurescale.com>
2026-09-13 21:25:31 -04:00
..
fetchRequestLogState.ts feat(core): report connection state on a request timeout (#2318) 2026-09-13 21:25:31 -04:00
index.ts feat: support the Skills extension (SEP-2640) with digest verification 2026-09-04 20:45:15 -04:00
managedListState.ts feat: allow complex JSON values in request _meta 2026-08-23 12:23:40 -04:00
managedPromptsState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
managedRequestorTasksState.ts fix: walk past an empty-string cursor in the legacy task refresh (#2220) 2026-09-06 13:59:51 -04:00
managedResourcesState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
managedResourceTemplatesState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
managedSkillsState.ts feat: Skills extension phase 3 — CLI, TUI, directory reads, frontmatter check 2026-09-07 18:10:37 -04:00
managedToolsState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
mergeTaskIntoList.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
messageLogState.ts fix: surface list-fetch failures instead of swallowing them 2026-08-08 16:48:48 -04:00
pagedPromptsState.ts feat: allow complex JSON values in request _meta 2026-08-23 12:23:40 -04:00
pagedRequestorTasksState.ts SDK v2 migration (behavior-neutral, versionNegotiation: 'legacy') (#1624) 2026-07-15 10:44:24 -04:00
pagedResourcesState.ts feat: allow complex JSON values in request _meta 2026-08-23 12:23:40 -04:00
pagedResourceTemplatesState.ts feat: allow complex JSON values in request _meta 2026-08-23 12:23:40 -04:00
pagedToolsState.ts fix: surface list-fetch failures in paginated mode (#1998) 2026-08-17 20:40:23 -04:00
resourceSubscriptionsState.ts chore: close quality-gate coverage gaps (#1689) (#1766) 2026-07-24 17:20:12 -04:00
stderrLogState.ts feat(core): port v1.5 hook layer (#1243) (#1300) 2026-05-13 17:43:07 -04:00