Enum Class McpVersion

java.lang.Object
java.lang.Enum<McpVersion>
org.forgerock.openig.mcp.McpVersion
All Implemented Interfaces:
Serializable, Comparable<McpVersion>, Constable

public enum McpVersion extends Enum<McpVersion>
An Enum of all the supported versions of the MCP Protocol Schema.
  • Enum Constant Details

    • v2025_06_18

      public static final McpVersion v2025_06_18
    • v2025_11_25

      public static final McpVersion v2025_11_25
  • Method Details

    • values

      public static McpVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static McpVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • schema

      public NamedJsonSchema schema(String definition, String name)
      Return a NamedJsonSchema for the given definition and name.
      Parameters:
      definition - The definition to use when looking up the schema.
      name - The name to use.
      Returns:
      A NamedJsonSchema for the given definition and name.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<McpVersion>
    • earliestSupportedVersion

      public static McpVersion earliestSupportedVersion()
      Returns the earliest supported version.
      Returns:
      the earliest supported version
    • latestSupportedVersion

      public static McpVersion latestSupportedVersion()
      Returns the latest supported version.
      Returns:
      the latest supported version