Package dev.relism.flash.ext.mcp
Annotation Interface Prompt
Marks a
.
McpPrompt subclass as an MCP prompt template and declares its metadata,
discovered by
invalid reference
McpConfig#toolsPackage(String)
@Prompt(name = "summarize", args = @PromptArg(name = "text", required = true))
public class SummarizePrompt extends McpPrompt {
@Override
public PromptMessage render(PromptArguments args) {
return PromptMessage.withUserRole(new TextContent("Summarize: " + args.getString("text")));
}
}
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionArguments accepted by the prompt template — always strings per the MCP specification.