live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/agent-mcp


@orangecheck/agent-mcp / canonicalizeInvocation

Function: canonicalizeInvocation()

function canonicalizeInvocation(inv: McpInvocation): Uint8Array;

Defined in: index.ts:54

Produce the canonical bytes for an MCP invocation. The bytes are what the action envelope's content.hash is a SHA-256 of.

Shape: { "arguments": <canonical JSON of args>, "server": <server url>, "tool": <tool name> }

The shape is intentionally minimal so verifiers can reconstruct it without knowing anything server- or tool-specific.

Parameters

ParameterType
invMcpInvocation

Returns

Uint8Array