Class McpSkillRegistration.Builder

java.lang.Object
com.soklet.McpSkillRegistration.Builder
Enclosing class:
McpSkillRegistration

@NotThreadSafe public static final class McpSkillRegistration.Builder extends Object
Mutable builder for an immutable Skills registration.
Author:
Mark Allen
  • Method Details

    • locale

      Selects the locale associated with this registration.
      Parameters:
      locale - non-null registration locale
      Returns:
      this builder
      Throws:
      NullPointerException - if the locale is null
    • cachePolicy

      Replaces the registration's cache policy.
      Parameters:
      cachePolicy - non-null policy; public scope is appropriate only for content that does not vary by private identity or authorization
      Returns:
      this builder
      Throws:
      NullPointerException - if the policy is null
    • build

      Validates URI/name agreement and bounded manifest/resource representations.

      Preflight uses representative response wrappers. It cannot account for arbitrary request IDs, server metadata, or multi-entry endpoint pages. Endpoint-wide checks and final request serialization remain separate; construction is not a guarantee that every later response envelope fits.

      Returns:
      immutable registration snapshot
      Throws:
      IllegalArgumentException - if the URI or generated response representation is invalid