Repository navigation
Closed
Description
Background
clients/web/src/App.tsx is currently a 42-line MantineProvider shell that mounts InspectorView with no wiring — every prop is a fixture. Once the v2 core/ hook layer lands AND a concrete InspectorClient exists to instantiate, App.tsx becomes the seam between the hook output and InspectorView's prop interface.
The plan flags this as a follow-up: "Wiring App.tsx to the v2 core hook layer."
Acceptance criteria
-
App.tsxcallsuseInspectorClientand the per-primitiveuseManaged*hooks. -
InspectorViewreceives every required prop from hook output (no fixture imports remain inApp.tsx). - Connection lifecycle handlers (
onToggleConnection,onDisconnect) dispatchuseInspectorClient'sconnect/disconnectrather than the existing demo stub insideInspectorView. - Per-screen action handlers wire to the right hook:
onCallTool→useManagedTools,onGetPrompt→useManagedPrompts,onReadResource→useManagedResources,onSetLevel→useMessageLog,onCancel→useManagedRequestorTasks, etc. - The demo stub inside
InspectorView(STUB_MIN_DELAY_MS,STUB_MAX_DELAY_MS,STUB_SUCCESS_RATE,handleToggleConnection, the timer machinery —InspectorView.tsx:96-249) is removed;InspectorViewbecomes pure prop-driven. - Storybook stories for
InspectorViewcontinue to work via fixture props (Storybook never goes throughApp.tsx).
Test plan
-
npm run format && npm run lint && npm run buildclean. -
npm run devagainst a real MCP server (e.g.npx @modelcontextprotocol/server-filesystem) — connect / disconnect cycle works end-to-end. - Calling a tool from the Tools screen produces a real result in the result panel (no stub).
- Reading a resource from the Resources screen produces real contents.
- Setting a log level via the Logging screen actually issues
logging/setLeveland subsequent logs respect the new level. - All
InspectorViewstories continue rendering with fixtures —npm run storybookshows no regressions.
Out of scope
- Persistence (saving the server list across reloads — that's a
useServersv2-only hook concern, separate effort). - Multi-server connection state (the v2 design is single-active-server; no change here).
- Any new screens or features beyond what's already wired in
InspectorView.
Blocked by
v2 core/ hook layer effort— landed in feat(core): port v1.5 hook layer (#1243) #1300.- Port v1.5 InspectorClient runtime + transports + auth subsystem #1302 —
App.tsxneeds tonew InspectorClient(...)to pass intouseInspectorClient. The concrete class plus its transports / fetch tracking / OAuth / auth subsystem are not yet in v2.
Related
- Current state:
clients/web/src/App.tsx(42 lines),clients/web/src/components/views/InspectorView/InspectorView.tsx - Plan reference:
specification/v2_ux_interfaces_plan.md§ "Out of this plan, but adjacent" - Component contracts:
specification/v2_ux_interfaces.md
Activity
Port v1.5 web dev backend (vite-hono-plugin + remote-server bootstrap) (
fix(web): wire dev-backend auth token into createWebEnvironment + sho…
fix(web): address #1244 PR review feedback (JsonValue cast, client li…
Wire App.tsx to v2 core/ hook layer; remove demo stub from InspectorV…