Package org.mcpjava.server
Interface Icon
public interface Icon
Represents an icon that can be associated with tools, resources, or prompts.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder for creating icons.static enumThe theme for an icon -
Method Summary
-
Method Details
-
src
String src()Gets the source URI- Returns:
- the icon source URI
-
mimeType
Gets the MIME type- Returns:
- the MIME type of the icon
-
sizes
Gets the sizes available for this icon- Returns:
- the list of sizes, may be empty
-
theme
Optional<Icon.Theme> theme()The theme for this icon- Returns:
- the theme
-
of
Creates a newIcon.- Parameters:
uri- the icon URImimeType- the icon MIME type- Returns:
- the new icon
-
builder
Creates a builder for anIcon.- Parameters:
uri- the icon URI- Returns:
- the new icon builder
-