struct ActionController::MCPServer::UIMeta

Overview

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

Extended Modules

Defined in:

action-controller/mcp/ui.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def csp : UICSP | Nil #

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


[View source]
def domain : String | Nil #

a dedicated sandbox origin, host specific


[View source]
def permissions : Hash(String, JSON::Any) | Nil #

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


[View source]
def prefers_border : Bool | Nil #

whether the host should draw a border around the card


[View source]