Skip to content

Add MCP App support to template agent #203

Description

@AtrikGhosh

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions