Class
McpProviderIcon
Represents an icon that clients can display for an MCP server.
public sealed class McpProviderIcon : IJsonSerializable<McpProviderIcon>Inheritance #
Implements #
IJsonSerializable<McpProviderIcon>
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| McpProviderIcon(string, string?, IEnumerable<McpProviderIconSize>?, McpProviderIconTheme?) | Creates an icon with the specified source and optional display metadata. |
Properties #
| Name | Description |
|---|---|
| MimeType | Gets the MIME type of the icon, if explicitly specified. |
| Sizes | Gets the sizes at which the icon can be displayed. |
| SourceUrl | Gets the URI of the icon resource. |
| Theme | Gets the color theme for which the icon is intended. |
Methods #
| Name | Description |
|---|---|
| SerializeIntoJson(McpProviderIcon, JsonOptions) | Serializes an MCP provider icon into its JSON representation. |