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

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

    • McpServerResource

      public McpServerResource()
  • 方法详细资料

    • create

      public io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification 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