- • mcpAppClient() shim, first in <head>
- • Defines window.agentgemApp synchronously
- • ui/initialize, bounded retry ×5 / 800 ms
- • Baked by every scaffold; injected by the on-read backstop
- • needs: the capabilities the host advertises
- • Runner attaches only when it is non-empty
- • Reconciled against the code at save time
- • Undeclared call throws; uncalled declaration prunes
- • AUTO_CAPS bypass the prompt
- • Gated caps ask the viewer
- • Denial answers JSON-RPC error −32001
- • Streaming caps push ui/notifications/tool-result
- • No shim → window.agentgemApp undefined
- • ui/initialize never sent → retries exhaust
- • callTool rejects "no host"; app shows baked data
- • Host still advertised tools to a mute frame