Class ClientCapabilities
java.lang.Object
org.apache.juneau.bean.mcp.v20250618.ClientCapabilities
MCP client capability advertisement in
InitializeRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExperimental capability extensions.getRoots()Roots capability.Sampling capability (free-form map for forward compatibility).putExperimental(String name, Object value) Convenience method to add a single experimental extension entry.putSampling(String name, Object value) Convenience method to add a single sampling capability entry.setExperimental(Map<String, Object> value) Sets experimental extensions.setRoots(RootsCapability value) Sets roots capability.setSampling(Map<String, Object> value) Sets sampling capability.
-
Constructor Details
-
ClientCapabilities
public ClientCapabilities()
-
-
Method Details
-
getRoots
Roots capability.- Returns:
- The capability, or
nullif not set.
-
setRoots
Sets roots capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getSampling
Sampling capability (free-form map for forward compatibility).- Returns:
- The sampling map, or
nullif not set.
-
setSampling
Sets sampling capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putSampling
Convenience method to add a single sampling capability entry.- Parameters:
name- The entry name. Can benull (LinkedHashMaptolerates anull key).value- The entry value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-
getExperimental
Experimental capability extensions.- Returns:
- The experimental map, or
nullif not set.
-
setExperimental
Sets experimental extensions.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putExperimental
Convenience method to add a single experimental extension entry.- Parameters:
name- The extension name. Can benull (LinkedHashMaptolerates anull key).value- The extension value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-