Mirror of https://github.com/modelcontextprotocol/inspector — Visual testing tool for MCP servers
  • TypeScript 90.8%
  • JavaScript 8.8%
  • CSS 0.2%
  • HTML 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
cliffhall 4c1d2f2c34 Phase 4: Move screen selection state into the screens themselves
ToolsScreen, PromptsScreen, and ResourcesScreen each tracked the user's
current selection via `selectedXxxName` / `onSelectXxx` props, hoisting
screen-local UI state into whatever rendered them. InspectorView never
threaded those callbacks anywhere, so clicks in the controls panel did
not display the matching detail panel — the detail panel only rendered
if a parent fed selection back in.

Move selection into `useState` inside each screen and drop the
`selectedXxxName` / `onSelectXxx` props. MCP-derived data (`callState`,
`getPromptState`, `readState`) keeps flowing in from `InspectorView` as
props. ResourcesScreen wraps `onReadResource` so a template-expanded URI
becomes the selected resource for preview rendering.

Update each screen's stories to drop the deleted props. Stories that
need a pre-selected item use a `play` function to click it — no
component coupling to Storybook.

Add Phase 4.3 to the interfaces plan describing the rule.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 09:27:22 -04:00
.claude Add new components, typography, badge contrast, and screen layout refactors 2026-03-28 20:38:04 -04:00
.github/workflows Install root dependencies in CI so core/*.ts can resolve SDK 2026-04-16 12:43:27 -04:00
clients/web Phase 4: Move screen selection state into the screens themselves 2026-04-26 09:27:22 -04:00
core Refactor ServerCard stack to use id-based callbacks 2026-04-25 18:33:38 -04:00
specification Phase 4: Move screen selection state into the screens themselves 2026-04-26 09:27:22 -04:00
.gitignore Add .claude/ to .gitignore 2026-04-17 11:57:53 -04:00
AGENTS.md Refactor renamed the component groups to something less obtuse: 2026-03-28 12:58:47 -04:00
CLAUDE.md feat: Add Mantine theme, 12 atom components, and 25 molecule components with Storybook stories 2026-03-17 10:23:56 -04:00
package-lock.json Phase 0 foundations for component interfaces refactor 2026-04-15 16:06:23 -04:00
package.json Phase 0 foundations for component interfaces refactor 2026-04-15 16:06:23 -04:00