Class McpUiResourcePermissions
- Namespace
- ModelContextProtocol.Extensions.Apps
- Assembly
- ModelContextProtocol.Extensions.Apps.dll
Represents the sandbox permissions requested by an MCP Apps UI resource.
[Experimental("MCPEXP003", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp003")]
public sealed class McpUiResourcePermissions
- Inheritance
-
McpUiResourcePermissions
- Inherited Members
Remarks
This maps to the allow attribute on the iframe sandbox in the MCP host.
Permissions are specified as standard browser iframe permission strings,
such as "camera", "microphone", or "geolocation".
Properties
Allow
Gets or sets the list of permissions granted to the sandboxed UI resource.
[JsonPropertyName("allow")]
public IList<string>? Allow { get; set; }
Property Value
Remarks
These correspond to values allowed in the allow attribute of an HTML iframe,
for example "camera", "microphone", "geolocation",
"clipboard-read", or "clipboard-write".