Skip to content
{mcpdesc}

Encode binary Resource Contents as base64

A Resource example’s blob must be valid base64. Check the encoding rather than placing raw binary or a URL in the field. Encoded content remains untrusted, and a valid encoding does not establish that the resource exists or is safe to open.

A blob in Resource Contents is canonical base64.

Rule ID: mcp.resource-contents.blob.base64
Owner: mcp
Surface: BlobResourceContents · Path: blob
Kind: structural
Requirement level: must
Protocol versions: independent of the MCP protocol version
Status: internal · Enforcement: internal

Source: expected-invalid/resource-example-result-semantics.json · Selected: /resources/0/examples/invalid-result/result/contents/0

{
"uri": "asset:///invalid.bin",
"blob": "not base64"
}

resource.yaml at immutable tag v0.9.0-rc.3.