Class McpServerResource
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
-
Field Summary
Fields inherited from class com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent
injector -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent
localizeAttribute
-
Constructor Details
-
McpServerResource
public McpServerResource()
-
-
Method Details
-
create
public io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification create(Method method) Description copied from interface:McpServerComponentCreates 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
-