java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification>
com.github.codeboyzhou.mcp.declarative.server.component.McpServerTool
所有已实现的接口:
McpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification>

public class McpServerTool extends AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification>
This class represents an MCP server tool component.
作者:
codeboyzhou
  • 构造器详细资料

    • McpServerTool

      public McpServerTool()
      Creates a new instance of McpServerTool.
  • 方法详细资料

    • create

      public io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification create(Method method)
      从接口复制的说明: McpServerComponent
      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