MCP Apps Kit - v0.5.0
    Preparing search index...

    Interface Icon

    Icon definition following the MCP specification.

    Supports both URL references and inline base64 data URIs.

    { src: "https://example.com/icon.png", mimeType: "image/png", sizes: ["48x48"] }
    
    { src: "data:image/svg+xml;base64,PHN2Zy...", mimeType: "image/svg+xml", sizes: ["any"] }
    
    { src: "https://example.com/icon-dark.png", theme: "dark" }
    
    interface Icon {
        mimeType?: string;
        sizes?: string[];
        src: string;
        theme?: IconTheme;
    }
    Index

    Properties

    mimeType?: string

    MIME type of the icon.

    Required MIME types that clients must support:

    • "image/png"
    • "image/jpeg"

    Optional MIME types:

    • "image/svg+xml"
    • "image/webp"
    "image/png"
    
    sizes?: string[]

    Icon sizes in "WxH" format.

    Use ["any"] for scalable formats like SVG.

    ["48x48", "96x96"]
    
    ["any"]
    
    src: string

    Icon source URI.

    Can be:

    theme?: IconTheme

    Theme this icon is designed for.

    When specified, clients can select the appropriate icon based on their current light/dark mode setting.