Class ClientCapabilities

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

MCP client capability advertisement in InitializeRequest.
  • 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).
    • getSampling

      Sampling capability (free-form map for forward compatibility).
      Returns:
      The sampling map, 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).
    • putSampling

      Convenience method to add a single sampling capability entry.
      Parameters:
      name - The entry name. Can be null (LinkedHashMap tolerates a null key).
      value - The entry value. Can be null (stored as null).
      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).