Annotation Interface McpPrompt
Declares an MCP prompt handler method.
Soklet's annotation processor derives the prompt argument descriptors from
parameters annotated with McpPromptArgument. Prompt arguments are
strings and do not use JSON Schema.
- Author:
- Mark Allen
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe prompt name published to MCP clients. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe optional human-readable prompt description.Client requests this prompt operation may emit during multi-round-trip handling.The request-state contract for this prompt operation.The optional human-readable prompt title.
-
Element Details
-
protocolVersions
- Returns:
- the required exact MCP revisions on which this prompt is available
-
name
-
title
-
description
The optional human-readable prompt description.- Returns:
- the description, or an empty string if none is configured
- Default:
""
-
mayRequestInput
Client requests this prompt operation may emit during multi-round-trip handling.A nonempty declaration requires the method to return
McpOperationResultor a subtype.- Returns:
- input-request declarations
- Default:
{}
-
requestStateMode
The request-state contract for this prompt operation.A mode other than
McpRequestStateMode.NONErequires the method to returnMcpOperationResultor a subtype.- Returns:
- request-state mode
- Default:
NONE
-