Problem
Adds MCP Apps support on the agent: advertise the UI extension to MCP servers, attach mcpApp on tool results for Template UI, and expose host proxy APIs for app resources/read and tools/call.
Proposed solution
How
- On MCP
initialize, advertise io.modelcontextprotocol/ui with mimeTypes: ["text/html;profile=mcp-app"].
- Filter model tool list by
_meta.ui.visibility; stamp mcp_app on results (including when LangChain conversion fails but raw MCP result was captured).
- Request-scoped host proxy (
mcp_host + routes): read UI resources, list tools/resources, call tools only when visibility includes app.
- Docs/config notes for enabling with Template UI (
frame_src / features.mcp_apps on the UI side).
Alternatives considered
No response
Additional context
No response
Problem
Adds MCP Apps support on the agent: advertise the UI extension to MCP servers, attach mcpApp on tool results for Template UI, and expose host proxy APIs for app resources/read and tools/call.
Proposed solution
How
initialize, advertiseio.modelcontextprotocol/uiwithmimeTypes: ["text/html;profile=mcp-app"]._meta.ui.visibility; stampmcp_appon results (including when LangChain conversion fails but raw MCP result was captured).mcp_host+ routes): read UI resources, list tools/resources, call tools only when visibility includesapp.frame_src/features.mcp_appson the UI side).Alternatives considered
No response
Additional context
No response