MCP AppsMCP Apps
MCP Apps
让 MCP 工具不只会返回一段文字,还能把一个可交互的 HTML 界面渲染在宿主对话里,例如表单、图表、看板和分步流程。Let an MCP tool return more than text: an interactive HTML surface such as a form, chart, dashboard or multi-step flow rendered inside the host conversation.
MCP Apps 是 MCP 的官方扩展:工具在元数据里声明一个 ui:// 资源,宿主预取并在沙箱 iframe 中渲染;界面与宿主通过 JSON-RPC / postMessage 双向通信。
工具结果仍按 MCP 返回,UI 只是同一结果的可视化层;不支持该扩展的宿主会退化为纯文本工具。
MCP Apps is an official MCP extension. A tool declares a ui:// resource in its metadata; the host prefetches it and renders it in a sandboxed iframe, with bidirectional JSON-RPC over postMessage.
Tool results still travel through MCP; the UI is a presentation layer over the same result, and hosts that do not support the extension fall back to a text-only tool.
很多任务用文字说不清,用户需要在对话里填表、选参数、看图表。MCP Apps 把这层界面标准化,避免每个工具厂商各做一套私有 UI 协议。Many tasks cannot be expressed well in prose: users need to fill a form, choose parameters or inspect a chart. MCP Apps standardises that surface instead of leaving every vendor to invent a private UI protocol.
MCP 应用 · MCP UI 扩展 · ui:// 资源