Class McpResourceDescriptor
java.lang.Object
com.soklet.McpResourceDescriptor
Immutable concrete resource descriptor emitted by
resources/list.- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder for an immutable resource descriptor. -
Method Summary
-
Method Details
-
withUriAndName
public static @NonNull McpResourceDescriptor.Builder withUriAndName(@NonNull URI uri, @NonNull String name) Vends a builder primed with the concrete resource URI and name.- Parameters:
uri- absolute normalized resource URI in ASCII wire formname- nonblank resource name- Returns:
- resource-descriptor builder
- Throws:
IllegalArgumentException- if the URI is relative, not normalized, not in ASCII wire form, or the name is blank
-
getUri
-
getName
-
getTitle
-
getDescription
- Returns:
- human-readable description, if configured
-
getMimeType
- Returns:
- resource MIME type, if configured
-
getIcons
-
getAnnotations
- Returns:
- content annotations, if configured
-
getSizeInBytes
- Returns:
- resource size in bytes, if configured
-
getMetadata
- Returns:
- immutable protocol extension metadata
-
equals
-
hashCode
-