JustAMCPMCPAppsHost๏ƒ

Inherits: Object

Host for MCP Apps UI iframes served from the local JustAMCP HTTP server.

Description๏ƒ

Detects _meta.ui.resourceUri on remote tools, enforces deny-by-default CSP and permissions, and proxies App Bridge tools/call messages through JustAMCPMCPClientBridge after user consent. The host page is served at /mcp-apps/host.

Methods๏ƒ

String

host_url() const

Array

list_open_apps() const

Dictionary

open_app(bridge_name: String, ui_meta: Dictionary, html: String)

Dictionary

proxy_tools_call(bridge_name: String, tool_name: String, arguments: Dictionary, user_consented: bool)


Method Descriptions๏ƒ

String host_url() const ๐Ÿ”—

Returns the loopback URL for the MCP Apps host page.


Array list_open_apps() const ๐Ÿ”—

Returns the currently registered MCP Apps (HTML payloads omitted).


Dictionary open_app(bridge_name: String, ui_meta: Dictionary, html: String) ๐Ÿ”—

Registers an MCP App and returns the loopback host URL. The browser is opened only when the JustAMCP HTTP server is listening and the process is not headless or running unit tests.


Dictionary proxy_tools_call(bridge_name: String, tool_name: String, arguments: Dictionary, user_consented: bool) ๐Ÿ”—

Forwards an App Bridge tools/call through the outbound MCP client after consent.