struct ActionController::MCPServer::UIMeta
inherits Struct
#
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
Included modules
JSON::Serializable
Extended modules
JSON::Schema
Constructors#
.new(csp : ActionController::MCPServer::UICSP | Nil = nil, permissions : Nil | Hash(String, JSON::Any) = nil, domain : Nil | String = nil, prefers_border : Bool | Nil = nil)#
Methods#
#csp : UICSP | ::Nil#
domains the card needs, by default it can't load external resources
#permissions : Hash(String, JSON::Any) | ::Nil#
browser permissions requested, i.e. {"camera": {}, "clipboardWrite": {}}