Class ServerCapabilities
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ServerCapabilities
MCP server capability advertisement returned by
ServerDiscoverResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletions capability.Experimental capability extensions.Schema-defined capability extensions (distinct from the free-formexperimentalbag).Logging capability.Prompts capability.Resources capability.getTools()Tools capability.putExperimental(String name, Object value) Convenience method to add a single experimental extension entry.putExtensions(String name, Object value) Convenience method to add a single capability extension entry.Sets completions capability.setExperimental(Map<String, Object> value) Sets experimental extensions.setExtensions(Map<String, Object> value) Sets capability extensions.setLogging(LoggingCapability value) Sets logging capability.setPrompts(PromptCapability value) Sets prompts capability.setResources(ResourceCapability value) Sets resources capability.setTools(ToolCapability value) Sets tools capability.
-
Constructor Details
-
ServerCapabilities
public ServerCapabilities()
-
-
Method Details
-
getTools
Tools capability.- Returns:
- The capability, or
nullif not set.
-
setTools
Sets tools capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getPrompts
Prompts capability.- Returns:
- The capability, or
nullif not set.
-
setPrompts
Sets prompts capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getResources
Resources capability.- Returns:
- The capability, or
nullif not set.
-
setResources
Sets resources capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getLogging
Logging capability.- Returns:
- The capability, or
nullif not set.
-
setLogging
Sets logging capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getCompletions
Completions capability.- Returns:
- The capability, or
nullif not set.
-
setCompletions
Sets completions capability.- Parameters:
value- The new value. Can benull to unset the property.- 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).
-
getExtensions
Schema-defined capability extensions (distinct from the free-formexperimentalbag).- Returns:
- The extensions map, or
nullif not set.
-
setExtensions
Sets capability extensions.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putExtensions
Convenience method to add a single capability extension entry.The extension map is lazily initialized on first use and preserves insertion order across repeated calls.
- Parameters:
name- The extension name. Can benull (LinkedHashMaptolerates anull key).value- The extension value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-