McpAppResourceOptions
Rendering and security metadata for an MCP App UI resource.
- Kind:
Class - Namespace: Repl.Mcp
- Assembly:
Repl.Mcp - Source: src/Repl.Mcp/McpAppResourceOptions.cs
Signature
Section titled “Signature”public sealed class McpAppResourceOptionsInheritance
Section titled “Inheritance”Properties
Section titled “Properties”Content Security Policy domains requested by the UI.
public McpAppCsp? Csp { get; set; }Returns
Section titled “Returns”Description
Section titled “Description”Optional description of the UI resource.
public string? Description { get; set; }Returns
Section titled “Returns”Domain
Section titled “Domain”Optional host-specific dedicated origin for the UI.
public string? Domain { get; set; }Returns
Section titled “Returns”LauncherText
Section titled “LauncherText”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; }Returns
Section titled “Returns”Human-readable resource name shown by hosts that list app resources.
public string? Name { get; set; }Returns
Section titled “Returns”Permissions
Section titled “Permissions”Browser permissions requested by the UI.
public McpAppPermissions? Permissions { get; set; }Returns
Section titled “Returns”PreferredDisplayMode
Section titled “PreferredDisplayMode”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; }Returns
Section titled “Returns”PrefersBorder
Section titled “PrefersBorder”Optional visual boundary preference.
public bool? PrefersBorder { get; set; }Returns
Section titled “Returns”bool?
UiMetadata
Section titled “UiMetadata”Additional host-specific _meta.ui fields.
Use this for experimental or host-specific presentation options.
public IDictionary<string, string> UiMetadata { get; }Returns
Section titled “Returns”IDictionary<string, string>