Interface IMCPResourceController


public interface IMCPResourceController
An MCP resource represents content an LLM agent or user can opt to add to their context window. MCP resources can be dynamically added/removed to the list of resources available on a server by a resourceController Resource controllers are declared in extension point org.eclipse.mcp.modelContextProtocolServer The class attribute of a resourceControllery element must be an instance of org.eclipse.mcp.IMCPResourceController
  • Method Details

    • initialize

      void initialize(IMCPResourceFactory manager)
      Parameters:
      manager - The manager can be used by your factory to dynamically add and remove resources to its MCP server
    • readResource

      String[] readResource(String url)
      Used to lazily resolve a url to content
      Parameters:
      url -
      Returns:
      the resolved content of the url