McpAppResource

data class McpAppResource(val uri: String, val html: String, val csp: McpAppCsp = McpAppCsp(), val permissions: Set<String> = emptySet(), val prefersBorder: Boolean? = null, val domain: String? = null)(source)

An MCP App view read from its server (resources/read of a ui:// URI, §"UI Resource Format").

Constructors

Link copied to clipboard
constructor(uri: String, html: String, csp: McpAppCsp = McpAppCsp(), permissions: Set<String> = emptySet(), prefersBorder: Boolean? = null, domain: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

a dedicated origin the view asked for (host-specific; not used here).

Link copied to clipboard
Link copied to clipboard

the browser features the view asks for (camera, microphone, geolocation, clipboardWrite); hosts may grant them, this one grants none.

Link copied to clipboard

whether the view wants the host's border and background (null: host decides).

Link copied to clipboard
val uri: String