Class ServerCapabilities

java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ServerCapabilities

MCP server capability advertisement returned by ServerDiscoverResult.
  • Constructor Details

  • Method Details

    • getTools

      Tools capability.
      Returns:
      The capability, or null if not set.
    • setTools

      Sets tools capability.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getPrompts

      Prompts capability.
      Returns:
      The capability, or null if not set.
    • setPrompts

      Sets prompts capability.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getResources

      Resources capability.
      Returns:
      The capability, or null if not set.
    • setResources

      Sets resources capability.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getLogging

      Logging capability.
      Returns:
      The capability, or null if not set.
    • setLogging

      Sets logging capability.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getCompletions

      Completions capability.
      Returns:
      The capability, or null if not set.
    • setCompletions

      Sets completions capability.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getExperimental

      Experimental capability extensions.
      Returns:
      The experimental map, or null if not set.
    • setExperimental

      Sets experimental extensions.
      Parameters:
      value - The new value. Can be null 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 be null (LinkedHashMap tolerates a null key).
      value - The extension value. Can be null (stored as null).
      Returns:
      This object (for method chaining).
    • getExtensions

      Schema-defined capability extensions (distinct from the free-form experimental bag).
      Returns:
      The extensions map, or null if not set.
    • setExtensions

      Sets capability extensions.
      Parameters:
      value - The new value. Can be null 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 be null (LinkedHashMap tolerates a null key).
      value - The extension value. Can be null (stored as null).
      Returns:
      This object (for method chaining).