struct

ActionController::MCPServer::UIMeta

Inherits JSON::Serializable < Struct < Value < Object

How hosts render a card, the _meta.ui of an MCP Apps resource. Set a default with MCPServer.ui_meta, or override it for a card with a <card>.meta.json file next to it, i.e. bookings/card.meta.json

Constructors

new(pull : JSON::PullParser)
Source
new(csp : ActionController::MCPServer::UICSP | Nil = nil, permissions : Nil | Hash(String, JSON::Any) = nil, domain : Nil | String = nil, prefers_border : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

csp

domains the card needs, by default it can't load external resources

Source
domain

a dedicated sandbox origin, host specific

Source
permissions

browser permissions requested, i.e. {"camera": {}, "clipboardWrite": {}}

Source
prefers_border

whether the host should draw a border around the card

Source