接口 McpServerComponent<T>
- 类型参数:
T- the type of the component
- 所有已知实现类:
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.- 作者:
- codeboyzhou
-
方法概要
-
方法详细资料
-
create
Creates an instance of the component for the specified method.- 参数:
method- the method for which to create an instance- 返回:
- an instance of the component for the specified method
-