Annotation Interface McpArgument


Applies to MCP handler method parameters that should be bound from the incoming MCP arguments object.
Author:
Mark Allen
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Indicates whether the argument is optional for annotated binding.
    Specifies the argument name in the incoming MCP arguments object.
  • Element Details

    • value

      Specifies the argument name in the incoming MCP arguments object.
      Returns:
      the argument name, or an empty string to infer it from the Java parameter name
      Default:
      ""
    • optional

      boolean optional
      Indicates whether the argument is optional for annotated binding.
      Returns:
      true if the argument may be omitted
      Default:
      false