Module: ActionMCP::Apps

Defined in:
lib/action_mcp/apps.rb

Overview

Constants for the MCP Apps extension (ext-apps, SEP-1865, draft 2026-01-26). See: github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx

Constant Summary collapse

EXTENSION_KEY =
"io.modelcontextprotocol/ui"
VISIBILITY_VALUES =
%w[model app].freeze
URI_SCHEME =
%r{\Aui://\S+\z}
MIME_TYPE =
MimeTypes::APP_HTML
CSP_KEYS =

‘_meta.ui.csp` directive keys per ext-apps spec.

%i[connectDomains resourceDomains frameDomains baseUriDomains].freeze
ORIGIN_PATTERN =

Accepts http/https origins only. Wildcard subdomain (‘*.example.com`), ports, and paths are allowed. WebSocket origins (ws://, wss://) are not accepted by ActionMCP — declare them via `ws://` over fetch if you must.

%r{\Ahttps?://[^\s"'<>]+\z}