canonicalhash
Deterministic JSON hashing and EIP-712 attestations for AI agents via x402.
我該用這個嗎
品質與安全性
A
根據工具定義與協定合規性的自動化分析。
上下文成本
~470Token(工具定義)
~731 B典型回應大小
極小的注意力影響(128k 上下文的 0.37%)
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"canonicalhash": {
"url": "https://canonicalhash-production.up.railway.app/mcp"
}
}
}遠端端點
https://canonicalhash-production.up.railway.app/mcpstreamable-http它能做什麼
工具清單
工具(5)
🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪canonicalize(payload, algorithm)
Canonicalize JSON with RFC 8785 and return a SHA-256 hash plus an EIP-712 signed attestation.
輸入結構描述
{
"type": "object",
"properties": {
"payload": {
"type": "string",
"description": "The JSON payload stringified (e.g., '{\"b\":2,\"a\":1}')"
},
"algorithm": {
"default": "sha256",
"type": "string",
"enum": [
"sha256",
"sha512"
]
}
},
"required": [
"payload"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪batch_canonicalize(payloads)
Batch canonicalize up to 1000 JSON payloads in one call.
輸入結構描述
{
"type": "object",
"properties": {
"payloads": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of JSON payloads, each stringified"
}
},
"required": [
"payloads"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡create_receipt(action, metadata)
Generate a tamper-evident EIP-712 action receipt for an agent decision.
輸入結構描述
{
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "Description of the action"
},
"metadata": {
"description": "Additional metadata stringified JSON",
"type": "string"
}
},
"required": [
"action"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢structure_extraction(text, schema)
Extract structured JSON from messy text (emails, logs, tickets) using regex or Needle 3.
輸入結構描述
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The messy text to extract from"
},
"schema": {
"description": "Optional output schema stringified JSON",
"type": "string"
}
},
"required": [
"text"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪verify_attestation(attestation)
Verify an EIP-712 attestation against the published public key. Always free.
輸入結構描述
{
"type": "object",
"properties": {
"attestation": {
"type": "string",
"description": "The attestation object stringified JSON"
}
},
"required": [
"attestation"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}社群
證據
近期觀測
已驗證未記錄版本5 個工具