Constructor
McpProviderIcon constructor
McpProviderIcon(string, string?, IEnumerable<McpProviderIconSize>?, McpProviderIconTheme?) #
Creates an icon with the specified source and optional display metadata.
public McpProviderIcon(string sourceUrl, string? mimeType = null, IEnumerable<McpProviderIconSize>? sizes = null, McpProviderIconTheme? theme = null)Parameters #
sourceUrl string
The URI of the icon resource.
mimeType string?
The MIME type of the icon, or null to let the client infer it.
sizes IEnumerable<McpProviderIconSize>?
The supported icon sizes, or null if the icon can be used at any size.
theme McpProviderIconTheme?
The color theme for which the icon is intended.
Exceptions #
sourceUrl is empty or consists only of white-space characters.