Sisk

Constructor

McpProviderIcon constructor

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

McpProviderIcon(string, string?, IEnumerable<McpProviderIconSize>?, McpProviderIconTheme?) #

Creates an icon with the specified source and optional display metadata.

C#
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 #

ArgumentException

sourceUrl is empty or consists only of white-space characters.

Type to search the documentation and the API reference.