跳到主要内容Skip to main content

MCP AppsMCP Apps

MCP Apps

  • AI 编程AI coding
  • 第三段 · 用深Stage 3 · Going Deeper
  • 引用核验 2026-11-21refs checked 2026-11-21
解决什么问题What problem it solves

让 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.

这是什么What it is

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.

为什么需要知道Why it matters

很多任务用文字说不清,用户需要在对话里填表、选参数、看图表。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.

别名Chinese aliases

MCP 应用 · MCP UI 扩展 · ui:// 资源

出处Sources
  • MCP Apps · 官方概览MCP Apps official overview ↗
  • MCP Apps · 发布公告(2026-01-26)MCP Apps launch announcement, 26 January 2026 ↗