Annotation Interface McpResource.McpAnnotations

Enclosing class:
McpResource

@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public static @interface McpResource.McpAnnotations
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    io.modelcontextprotocol.spec.McpSchema.Role[]
    Describes who the intended customer of this object or data is.
    double
    Describes how important this data is for operating the server.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The date and time (in ISO 8601 format) when the resource was last modified.
  • Element Details

    • audience

      io.modelcontextprotocol.spec.McpSchema.Role[] audience
      Describes who the intended customer of this object or data is. It can include multiple entries to indicate content useful for multiple audiences (e.g., [“user”, “assistant”]).
    • priority

      double priority
      Describes how important this data is for operating the server. A value of 1 means “most important,” and indicates that the data is effectively required, while 0 means “least important,” and indicates that the data is entirely optional.
    • lastModified

      String lastModified
      The date and time (in ISO 8601 format) when the resource was last modified.
      Default:
      ""