Enum Class McpChangeKind
- All Implemented Interfaces:
Serializable,Comparable<McpChangeKind>,Constable
The kind of change a neutral MCP subscription can be notified about.
Mirrors the four notification shapes SEP-2575 defines for subscriptions/listen: one per-resource
change and three list-changed signals. RESOURCE_UPDATED is the only kind that carries a resource
URI (see McpChangeEvent.resourceUri()).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe prompt list changed.A specific subscribed resource's content changed.The resource list changed.The tool list changed. -
Method Summary
Modifier and TypeMethodDescriptionstatic McpChangeKindReturns the enum constant of this class with the specified name.static McpChangeKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESOURCE_UPDATED
A specific subscribed resource's content changed. -
TOOLS_LIST_CHANGED
The tool list changed. -
PROMPTS_LIST_CHANGED
The prompt list changed. -
RESOURCES_LIST_CHANGED
The resource list changed.
-
-
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
-