Stream Presence — MCP Toolprint

v1.0.0
dev.streampresence/mcp-toolprint Checked 4 days ago Published 12 days ago

Pin an MCP tool definition at approval; check at call time whether it changed, and which fields.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pin_toolprint Pin a toolprint

Pin the reference print of an MCP tool's definition as presented to you: server (the server's endpoint URL, or a provider-chosen URN for a local server), tool name, and the definition (description, input_schema, terms where present). The pin is signed: sign the JCS-canonical bytes of {"action": "toolprint_pin", "did": <your did>, "print_digest": <digest>} with your Ed25519 key. To record the print at the provider tier, add provider_signature: {did, signature} — the provider's signature over the print core. Pinning a definition already on record returns the existing print.

ParameterTypeDescription
definition *objectThe definition as presented: description, input_schema, terms (string, object, or null)
did *stringYour did:key (did:key:z…)
server *stringServer id: endpoint URL or provider URN
signature *stringBase64url Ed25519 signature over the pin call object
tool *stringThe tool's name
provider_signatureobjectOptional {did, signature}: the provider's signature over the print core

check_toolprint Check a toolprint

Check a tool's definition as presented in your current session against the print on record. Returns match, changed (with the fields that differ — values for text fields, digests for the schema), or unknown (no print on record; the response carries the current digest so the definition can be pinned). Identity is optional: pass did + signature over the JCS-canonical {"action": "toolprint_check", "did": <did>, "current_digest": <digest>} to meter under your did:key; a supplied signature that does not verify is an error, never a silent downgrade.

ParameterTypeDescription
definition *objectThe definition as presented in this session
server *stringServer id: endpoint URL or provider URN
tool *stringThe tool's name
didstringOptional: your did:key
signaturestringOptional: base64url Ed25519 signature over the check call object

toolprint_history Toolprint history

Every distinct print on record for a (server, tool) pair, in first-seen order: digest, tier, pinned by/at, first and last seen, observation count, the field digests, and the full pinned definition — plus the change events: each moment a new distinct digest was first observed for the pair. Read-only; no signature required.

ParameterTypeDescription
server *stringServer id: endpoint URL or provider URN
tool *stringThe tool's name