Class McpServerPrompt
java.lang.Object
com.github.thought2code.mcp.annotated.server.component.AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification>
com.github.thought2code.mcp.annotated.server.component.McpServerPrompt
- All Implemented Interfaces:
McpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification>
public class McpServerPrompt
extends AbstractMcpServerComponent<io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification>
This class represents an MCP server prompt 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
-
McpServerPrompt
public McpServerPrompt()Creates a new instance ofMcpServerPrompt.
-
-
Method Details
-
create
public io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification 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
-