Skip to content

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(pull : JSON::PullParser)#

View source

.new(csp : ActionController::MCPServer::UICSP | Nil = nil, permissions : Nil | Hash(String, JSON::Any) = nil, domain : Nil | String = nil, prefers_border : Bool | Nil = nil)#

View source

.new(*, __pull_for_json_serializable pull : JSON::PullParser)#

View source

Methods#

#csp : UICSP | ::Nil#

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

View source

#domain : String | ::Nil#

a dedicated sandbox origin, host specific

View source

#permissions : Hash(String, JSON::Any) | ::Nil#

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

View source

#prefers_border : Bool | ::Nil#

whether the host should draw a border around the card

View source