Interface IconProvider


public interface IconProvider
Provides icons for a prompt, resource, or tool.

The lifecycle of an IconProvider is implementation-specific. For example, implementations may require an IconProvider to have a no-argument constructor, or may require integration with a component framework.

  • Method Summary

    Modifier and Type
    Method
    Description
    getIcons(FeatureType featureType, String name)
    Returns a list of icons for an MCP server feature.
  • Method Details

    • getIcons

      List<Icon> getIcons(FeatureType featureType, String name)
      Returns a list of icons for an MCP server feature. The list may include various different icons for the same feature for display at different sizes or for different themes.
      Parameters:
      featureType - the type of feature to retrieve icons for (e.g. prompt, tool etc.)
      name - the name of the feature (i.e. the tool name, the prompt name etc.)
      Returns:
      the list of icons, which may be empty if no icons are available