Class McpSkillRegistration
java.lang.Object
com.soklet.McpSkillRegistration
Immutable association between a Skills snapshot and its root resource URI.
Construction validates the generated manifest but does not publish endpoint
resources. The URI identifies the root SKILL.md, not a directory.
Locale and cache settings do not grant authorization to read the bundle.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder for an immutable Skills registration.static final classImmutable, framework-generated resource identity and content fingerprint. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns framework-derived file manifest entries without copying file bytes.getUri()inthashCode()toString()withUriAndSkillBundle(@NonNull URI uri, @NonNull McpSkillBundle skillBundle, @NonNull Set<@NonNull McpProtocolVersion> protocolVersions) Starts registration of a bundle at its root document URI.
-
Method Details
-
withUriAndSkillBundle
public static @NonNull McpSkillRegistration.Builder withUriAndSkillBundle(@NonNull URI uri, @NonNull McpSkillBundle skillBundle, @NonNull Set<@NonNull McpProtocolVersion> protocolVersions) Starts registration of a bundle at its root document URI.- Parameters:
uri- absolute normalized hierarchical ASCII URI ending in literal/SKILL.md, without query, fragment, dot segments, or encoded separatorsskillBundle- validated immutable snapshot whose name matches the URI's final skill-directory segmentprotocolVersions- nonempty exact revisions serving this Skill- Returns:
- mutable builder with no locale and private zero-TTL cache policy
- Throws:
NullPointerException- if either argument is null
-
getUri
-
getSkillBundle
- Returns:
- the supplied immutable bundle
-
getProtocolVersions
- Returns:
- exact protocol revisions on which this Skill is available
-
getLocale
-
getCachePolicy
- Returns:
- configured cache policy, private zero-TTL when omitted
-
getResources
Returns framework-derived file manifest entries without copying file bytes.- Returns:
- cached immutable list in canonical bundle path order, root document first
-
equals
-
hashCode
-
toString
-