Annotation Interface McpComplete


@Target({METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented public @interface McpComplete
Annotates a method used for completion functionality in the MCP framework. This annotation can be used in two mutually exclusive ways: 1. To complete an expression within a URI template of a resource 2. To complete a prompt argument Note: You must use either the prompt or the uri attribute, but not both simultaneously.
Author:
Christian Tzolov
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name reference to a prompt.
    The name reference to a resource template URI.
  • Element Details

    • prompt

      String prompt
      The name reference to a prompt. This is used when the completion method is intended to complete a prompt argument.
      Default:
      ""
    • uri

      String uri
      The name reference to a resource template URI. This is used when the completion method is intended to complete an expression within a URI template of a resource.
      Default:
      ""