Class McpBlobResourceContents

java.lang.Object
com.soklet.McpBlobResourceContents
All Implemented Interfaces:
McpResourceContents

@ThreadSafe public final class McpBlobResourceContents extends Object implements McpResourceContents
Immutable binary contents for one MCP resource.

The built-in server can send at most 786,432 raw bytes per binary content item: Base64 encoding must fit the 1,048,576-character JSON string limit. The complete response must also fit the 4 MiB UTF-8 JSON limit. Construction defensively copies data but does not prevalidate the eventual response size. Prefer McpResourceLink for larger payloads; an MCP resource read returning these contents remains subject to the same limits.

Author:
Mark Allen