类 McpServerPrompt
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
-
字段概要
从类继承的字段 com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent
injector, NOT_SPECIFIED -
构造器概要
构造器 -
方法概要
从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.component.AbstractMcpServerComponent
resolveComponentAttributeValue
-
构造器详细资料
-
McpServerPrompt
public McpServerPrompt()Creates a new instance ofMcpServerPrompt.
-
-
方法详细资料
-
create
public io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification create(Method method) 从接口复制的说明:McpServerComponentCreates 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
-