Package io.meeds.mcp.server.util
Class McpToolIconUtils
java.lang.Object
io.meeds.mcp.server.util.McpToolIconUtils
Turns the Font Awesome icon name an add-on declares for a tool
(
fa-clipboard) into the standard MCP tool icon external clients
display: the matching Font Awesome Free solid SVG, bundled in this module
under "mcp-tool-icons/fa-solid/", inlined as a data:image/svg+xml URI with
a mid-grey fill that reads on light and dark backgrounds. Only the bundled
SVGs are served: a name with no bundled file gives no icon.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<io.modelcontextprotocol.spec.McpSchema.Icon> toMcpIcons(String iconName)
-
Field Details
-
ICONS_PATH
The classpath folder of the bundled Font Awesome Free solid SVGs.- See Also:
-
MAX_ICON_BYTES
public static final int MAX_ICON_BYTESThe largest SVG file inlined, in bytes.- See Also:
-
ICON_FILL
The fill given to the icon, readable on light and dark backgrounds.- See Also:
-
-
Method Details
-
toMcpIcons
- Parameters:
iconName- a Font Awesome icon name, such asfa-clipboard- Returns:
- the MCP icons of that name: one data URI icon, or an empty list when the name is blank, malformed, or has no bundled SVG
-