Class McpPromptArgument

java.lang.Object
org.apache.juneau.rest.server.mcp.McpPromptArgument

public class McpPromptArgument extends Object
Revision-neutral declared argument of a prompt.

Supersedes the wire-level PromptArgument bean.

  • Constructor Details

  • Method Details

    • getName

      public String getName()
      The argument name.
      Returns:
      The name, or null if not set.
    • setName

      Sets the argument name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getDescription

      The human-readable argument description.
      Returns:
      The description, or null if not set.
    • setDescription

      Sets the argument description.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getRequired

      public Boolean getRequired()
      Whether the argument is required.
      Returns:
      The flag, or null if not set.
    • setRequired

      Sets whether the argument is required.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.
    • getCompleter

      The completer invoked for a completion/complete request targeting this argument.

      This is server behavior only: it is never mapped into a dated PromptArgument wire bean. See McpServerConfig.promptCompleter(String, String) for the neutral lookup path that resolves this property by exact prompt/argument name.

      Returns:
      The completer, or null if not set.
    • setCompleter

      Sets the completer invoked for a completion/complete request targeting this argument.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object.