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
  • Constructor Details

    • McpServerPrompt

      public McpServerPrompt()
      Creates a new instance of McpServerPrompt.
  • Method Details

    • create

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