Package org.eclipse.mcp
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 Summary
Modifier and TypeMethodDescriptionvoid
initialize
(IMCPResourceFactory manager) String[]
readResource
(String url) Used to lazily resolve a url to content
-
Method Details
-
initialize
- Parameters:
manager
- The manager can be used by your factory to dynamically add and remove resources to its MCP server
-
readResource
Used to lazily resolve a url to content- Parameters:
url
-- Returns:
- the resolved content of the url
-