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

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

    • McpServerPrompt

      public McpServerPrompt()
      Creates a new instance of McpServerPrompt.
  • 方法详细资料

    • create

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