java.lang.Object
com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>
com.github.thought2code.mcp.annotated.server.component.McpServerResource
All Implemented Interfaces:
McpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>

public class McpServerResource extends AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification>
This class represents an MCP server resource component.
Author:
codeboyzhou
  • Constructor Details

    • McpServerResource

      public McpServerResource()
  • Method Details

    • create

      public io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification create(Method method)
      Description copied from interface: McpServerComponent
      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