mcp-app-demo

v0.3.1
@instush/mcp-app-demo Checked 1 day ago Published 4 months ago

Demo MCP App: verifies that a local stdio MCP server gets its ui:// card rendered, and what works inside it, per host.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

demo_card Show the demo card

Render the MCP App diagnostic card. Shows a fake 6-digit pairing code, what this host supports, and buttons that exercise every view->host capability. Call it with no arguments.

ParameterTypeDescription
labelstringOptional label echoed into the card.

demo_status Demo status ping

Returns a counter and a timestamp. Exists so the CARD can call the server back and prove view->server round-trips work on this host.

ParameterTypeDescription
fromstringWho is calling: 'app' or 'model'.

demo_panel Category loop panel

Renders the category loop card. Call it with NO arguments to show the category picker. IMPORTANT: after EVERY demo_panel call you MUST immediately call demo_wait in the same turn — the user clicks a button in the card instead of typing, and demo_wait is the ONLY way their click reaches you. It blocks until they click, then returns the chosen category. Then call demo_panel again with category set to that category and items set to THREE random items you choose from it (e.g. category "animals", items ["Otter","Ibex","Heron"]) — the card displays your three items and offers the picker again  

ParameterTypeDescription
categorystringanimals | sport | food
fromstringInternal: 'view' when the card itself is fetching its markup.
itemsarrayExactly 3 item names you picked.

demo_wait Wait for the user's category choice

Blocks until the user clicks a category in the card, then tells you which one. ALWAYS call this immediately after demo_panel — it is how you learn what they picked; they will not type it. If it returns 'no choice yet', call it again to keep waiting.

demo_choose Report a category choice (card only)

Called by the card when the user clicks a category. Not for the model.

ParameterTypeDescription
category *string

demo_bump Bump the card version

Publishes a NEW version of the card UI (changes its ui:// URI and notifies the host that the tool and resource lists changed). Call this, then call demo_card again: if the host honours the notification it will fetch the new URI; if it does not, it keeps serving the cached view.