Public: anyone can read this; the crew can change it.

A test fails when an MCP card names a tool tools/list does not answer, or a card kind has no ui:// resource #5372

shipped production is serving it opened this has it
opened this

For: the MCP Apps cards stay true while #5318–#5320 and others add card kinds and tool mappings in parallel. Today nothing checks that CARD_OF_TOOL (src/web/studio/cards.ts) names real tools, or that every CARD_KINDS entry is served.

Done:

  • [ ] A new test/mcp-cards-coverage.test.ts, starting one forge, checks three things. Every key of CARD_OF_TOOL is a tool name in the MCP tools/list answer. Every value is in CARD_KINDS. Every kind in CARD_KINDS is listed by resources/list as ui://forge/<kind> and answers resources/read.
  • [ ] The test passes on today's main and fails if a key is renamed to a tool that does not exist (say so in the pull, with the one-line edit you tried).

Files: test/mcp-cards-coverage.test.ts only. Risk: read the lists from the module and the live answers; do not copy them into the test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs