Class IconUtils
java.lang.Object
org.springframework.ai.mcp.annotation.common.IconUtils
Converts
McpIcon annotations into schema icons.- Since:
- 2.1.0
- Author:
- Christian Tzolov
-
Method Summary
-
Method Details
-
toIcons
- Returns:
- the icons as legacy schema records, or
nullwhen the annotation declares none, so that theiconsfield is omitted from the definition
-
toModernIcons
public static @Nullable List<io.modelcontextprotocol.modern.McpSchema.Icon> toModernIcons(McpIcon[] icons) - Returns:
- the icons as modern schema records, or
nullwhen the annotation declares none
-