Package org.mockserver.netty.mcp
Class McpPromptRegistry
java.lang.Object
org.mockserver.netty.mcp.McpPromptRegistry
Registry of MCP prompts exposed by MockServer's own MCP server.
Mirrors McpResourceRegistry and McpToolRegistry: each prompt is
statically configured here with a name, description, an ordered list of
McpPromptRegistry.PromptArguments and a message template. prompts/list returns the
prompt metadata; prompts/get returns a prompt's messages with the supplied
arguments substituted into {{argument}} placeholders.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.node.ArrayNodegetMessages(String name, com.fasterxml.jackson.databind.JsonNode arguments) Build the messages for a named prompt, substituting{{argument}}placeholders with the supplied argument values.
-
Constructor Details
-
McpPromptRegistry
public McpPromptRegistry()
-
-
Method Details
-
getPrompts
-
getMessages
public com.fasterxml.jackson.databind.node.ArrayNode getMessages(String name, com.fasterxml.jackson.databind.JsonNode arguments) Build the messages for a named prompt, substituting{{argument}}placeholders with the supplied argument values. Returnsnullwhen the prompt is unknown.
-