Skip to content

McpAppResourceOptions

Rendering and security metadata for an MCP App UI resource.

public sealed class McpAppResourceOptions

Content Security Policy domains requested by the UI.

public McpAppCsp? Csp { get; set; }

McpAppCsp

Optional description of the UI resource.

public string? Description { get; set; }

string

Optional host-specific dedicated origin for the UI.

public string? Domain { get; set; }

string

Optional fallback text returned when an MCP client calls the launcher tool. The HTML-producing handler is used only for the UI resource.

public string? LauncherText { get; set; }

string

Human-readable resource name shown by hosts that list app resources.

public string? Name { get; set; }

string

Browser permissions requested by the UI.

public McpAppPermissions? Permissions { get; set; }

McpAppPermissions

Optional preferred display mode requested by the UI. Standard values are available from McpAppDisplayModes. Hosts decide which display modes they support.

public string? PreferredDisplayMode { get; set; }

string

Optional visual boundary preference.

public bool? PrefersBorder { get; set; }

bool?

Additional host-specific _meta.ui fields. Use this for experimental or host-specific presentation options.

public IDictionary<string, string> UiMetadata { get; }

IDictionary<string, string>