canonicalhash

Deterministic JSON hashing and EIP-712 attestations for AI agents via x402.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
98%
命名质量
88%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~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 个工具