Interface McpServerComponent<T>
- Type Parameters:
T- the type of the component
- All Known Implementing Classes:
AbstractMcpServerComponent,McpServerCompletion,McpServerPrompt,McpServerResource,McpServerTool
public interface McpServerComponent<T>
This interface represents an MCP server component (resource/prompt/tool) that is responsible for
creating instances of a specific type
T for a given method.- Author:
- codeboyzhou
-
Method Summary
-
Method Details
-
create
Creates an instance of the component for the specified method.- Parameters:
method- the method for which to create an instance- Returns:
- an instance of the component for the specified method
-