Sisk

Class

McpProviderIcon

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

Represents an icon that clients can display for an MCP server.

C#
public sealed class McpProviderIcon : IJsonSerializable<McpProviderIcon>

Inheritance #

object ← McpProviderIcon

Implements #

IJsonSerializable<McpProviderIcon>

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
McpProviderIcon(string, string?, IEnumerable<McpProviderIconSize>?, McpProviderIconTheme?)Creates an icon with the specified source and optional display metadata.

Properties #

NameDescription
MimeTypeGets the MIME type of the icon, if explicitly specified.
SizesGets the sizes at which the icon can be displayed.
SourceUrlGets the URI of the icon resource.
ThemeGets the color theme for which the icon is intended.

Methods #

NameDescription
SerializeIntoJson(McpProviderIcon, JsonOptions)Serializes an MCP provider icon into its JSON representation.

Type to search the documentation and the API reference.