hashproof
v0.1.2Issue verifiable credentials from AI agents for $0.10 via x402.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_template_requirements
Get the required field keys and layout definition of an existing HashProof template. Free, no auth. Always call this before issuing with a template_slug you didn't create in this session.
| Parameter | Type | Description |
|---|---|---|
template_ref * | string | Template slug or UUID |
preview_template
Render a watermarked preview PDF from an INLINE template definition — free, nothing stored, no payment. Use this to iterate field positions (x, y, width, font_size) until the layout is right, then show the final PDF to the human for approval before issuing. page_width/page_height MUST match the background image's pixel dimensions. The PDF is written to a local file; if you can read PDFs, inspect it and adjust yourself.
| Parameter | Type | Description |
|---|---|---|
fields_json * | array | Field definitions, e.g. [{"key":"holder_name","x":248,"y":1200,"width":3012,"font_size":192,"align":"center"}] |
page_height * | number | Page height in px — must match the background image |
page_width * | number | Page width in px — must match the background image |
values * | object | Sample values, e.g. {"holder_name":"Jane Doe"} |
background_url | string | Public URL of the background image (PNG/JPG). There is no upload endpoint — the image must already be hosted (own site/CDN, GitHub raw URL, S3/R2, Cloudinary...). Tell the human this upfront. Share… |
locale | string | |
output_path | string | Where to save the PDF (default: temp file) |
issue_credential
Issue a verifiable credential — COSTS $0.10 USDC (x402) or 1 API-key credit per call. Get explicit human approval before calling. Requires HASHPROOF_API_KEY or HASHPROOF_WALLET_PRIVATE_KEY in the MCP server env (if neither is set, the error explains how to set up a dedicated wallet). The body follows the HashProof issueCredential schema: issuer{display_name,slug}, platform{display_name,slug}, holder{full_name}, context{type,title}, credential_type, title, values{...}, and optionally template_slug OR an inline template{...} (send only one). Returns id, verification_url, tx_hash and ipfs_cid.…
| Parameter | Type | Description |
|---|---|---|
body * | object | Full issueCredential request body (see https://hashproof.dev/skill.md for the schema) |
verify_credential
Verify an issued credential against three independent sources (database, IPFS, blockchain). Free, no auth. Returns status (active/revoked/expired/not_found), issuer verification and the credential data.
| Parameter | Type | Description |
|---|---|---|
id * | string | Credential id (UUID) from issuance or from a verification URL |