Class McpIcon

java.lang.Object
com.soklet.McpIcon

@ThreadSafe public final class McpIcon extends Object
Immutable icon descriptor for an MCP tool, prompt, or resource.

The source must be absolute and contain well-formed UTF-16. Its spelling is retained without URI normalization or a scheme allowlist. MIME types use the same ASCII media-type syntax parser as MCP content. Size hints must use ASCII decimal WxH dimensions with a lowercase x, or exactly any; order, duplicates, and decimal spelling are retained.

Soklet does not fetch icons, verify dimensions or media bytes, establish trusted source domains, or sanitize SVG. Applications and consuming clients own source and rendering policy; prefer trusted HTTPS sources or image data URIs. Construction does not prevalidate the eventual JSON response size.

Author:
Mark Allen