Class ClientCapabilities

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

MCP client capability advertisement carried by RequestMeta.
  • Constructor Details

  • Method Details

    • getRoots

      Roots capability.
      Returns:
      The capability, or null if not set.
    • setRoots

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

      Elicitation capability.
      Returns:
      The capability, or null if not set.
    • setElicitation

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

      Sampling capability.
      Returns:
      The capability, or null if not set.
    • setSampling

      Sets sampling 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).