接口 McpServerComponent<T>

类型参数:
T - the type of the component
所有已知实现类:
AbstractMcpServerComponent, 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(Method method)
    Creates an instance of the component for the specified method.
  • 方法详细资料

    • create

      T create(Method method)
      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