Enum Class McpProtocolVersion
- All Implemented Interfaces:
Serializable, Comparable<McpProtocolVersion>, Constable
An exact MCP core protocol revision.
This type may gain reviewed constants in Soklet 4.x; use a forward-compatible default when switching over its values.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMCP 2025-03-26.MCP 2025-06-18.MCP 2025-11-25.MCP 2026-07-28. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Optional<@NonNull McpProtocolVersion> fromWireValue(@NonNull String wireValue) Finds a known exact revision without selecting a fallback.static McpProtocolVersionReturns the enum constant of this class with the specified name.static McpProtocolVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
V2025_03_26
MCP 2025-03-26. -
V2025_06_18
MCP 2025-06-18. -
V2025_11_25
MCP 2025-11-25. -
V2026_07_28
MCP 2026-07-28.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getWireValue
- Returns:
- the exact MCP protocol revision sent on the wire
-
fromWireValue
public static @NonNull Optional<@NonNull McpProtocolVersion> fromWireValue(@NonNull String wireValue) Finds a known exact revision without selecting a fallback.- Parameters:
wireValue- wire revision- Returns:
- the corresponding revision, or empty for an unknown value
-