Summary
Investigate MCP-UI patterns for rendering rich, interactive UI components from MCP tool responses.
Background
MCP-UI is a protocol/SDK for building interactive UIs within MCP applications. Key concepts:
- Server-side: Tools can return UI resource definitions (HTML/JS rendered in sandboxed iframes)
- Client-side: Host apps render these UI resources using provided components
- Security: All remote code executes in sandboxed iframes
MCP-UI has been standardized into "MCP Apps" as part of the MCP specification.
Potential Use Cases
- Rich tool responses: Weather forecasts with charts, search results with previews
- Interactive forms: Tool argument builders, configuration wizards
- Data visualization: Tables, graphs, maps from tool outputs
- Approval workflows: Human-in-the-loop confirmations with context
Technical Considerations
- MCP-UI provides Web Components (framework-agnostic) - works with Vue.js
- Uses
<ui-resource-renderer> custom element
- Sandboxed iframes for security
- TypeScript, Python, and Ruby SDKs available
Tasks
References
Related
- Part of Milestone 4: Chat Interface (or Post-MVP)
- Depends on: forge-orchestrator WebSocket server
Summary
Investigate MCP-UI patterns for rendering rich, interactive UI components from MCP tool responses.
Background
MCP-UI is a protocol/SDK for building interactive UIs within MCP applications. Key concepts:
MCP-UI has been standardized into "MCP Apps" as part of the MCP specification.
Potential Use Cases
Technical Considerations
<ui-resource-renderer>custom elementTasks
References
Related