Ambr

io.github.getambr由 GitHub 账号 getambr 发布v0.3.0更新于 Oct 25, 2026

Ricardian contracts for AI agents — dual-format, SHA-256 bound, legible by construction.

已验证Streamable HTTP可网页运行金融商业与电商

概览

AI 生成的概览

Ambr 让助手列出合约模板、生成并获取 Ricardian 合约、查看状态与修订链、校验 SHA-256 哈希,并代表委托主体记录代理的接受或拒绝意向。

可以做什么
列出可用的 Ricardian 合约模板,含标识、名称、描述、类别、参数结构和价格。基于模板生成双格式合约(人类可读法律文本加机器可解析 JSON),以 SHA-256 哈希绑定并存储在 Ambr 上。按 ID、哈希或 UUID 获取合约:认证的创建者可得完整内容,未认证仅得元数据。查询合约状态及其修订链,并校验 SHA-256 哈希以确认文档完整性。代表委托主体记录代理对合约接受、拒绝或要求修改的意向。
适用场景
适合需要在 Ambr 上起草、查询或校验 Ricardian 合约的场景,也适合代表已注册主体的代理就合约表达接受或拒绝。若不使用 Ambr 合约则意义不大。
运行要求
通过 streamable HTTP 连接 getamber.dev 远程端点,无需本地运行时。创建合约和获取完整内容需在 X-API-Key 请求头中提供 API 密钥。握手工具需要绑定有效委托的 API 密钥,且主体钱包须已通过委托接口注册。
安装前请注意
创建合约和握手会向 Ambr 写入数据并依赖 API 密钥,请妥善保管该密钥。握手仅记录代理意向,仍需主体另行批准。合约存储于 Ambr 服务器,合约内容会离开本机。模板涉及定价,创建前请确认费用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Ambr,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.getambr%2Fambr-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "ambr": {
      "type": "http",
      "url": "https://getamber.dev/api/mcp"
    }
  }
}

README

该仓库没有 README。

工具

6

ambr_list_templates

List available contract templates on Ambr. Returns all active Ricardian Contract templates with their slugs, names, descriptions, categories, parameter schemas, and pricing. Use this to discover which templates are available before creating a contract with ambr_create_contract. No authentication required. Returns: Array of template objects with slug, name, description, category, parameter_schema, price_cents, and version fields. Legibility: templates are the parameter schema for the dual-format contracts you create — starting here keeps your request conformant and your output defensible.

无需输入参数。

ambr_create_contract

Generate a Ricardian Contract from a template. Creates a dual-format contract (human-readable legal text + machine-parsable JSON) using AI, linked by SHA-256 hash. The contract is stored on Ambr and accessible via the Reader Portal. Requires a valid API key (X-API-Key header on the HTTP request) with available credits. Use ambr_list_templates first to discover templates and their required parameters. Args: - template (string, required): Template slug (e.g. "d1-general-auth") - parameters (object, required): Template-specific parameters matching the schema - principal_declaration (object, required): { agent_id, principal_name, principal_type } - parent_contract_hash (string, optional): SHA-256 hash of parent contract for amendments - oversight_threshold_usd (number, optional): spending level above which work created under this contract needs human approval. Children exceeding it halt at awaiting_principal_approval. - amendment_type (string, optional): "original" | "amendment" | "extension" Returns: - contract_id: Unique ID (e.g. "amb-2026-0042") - sha256_hash: SHA-256 hash for verification - status: Contract status - reader_url: URL to view in Reader Portal - credits_remaining: Remaining API credits Legibility: Output is dual-format by construction and replayable to the original SHA-256 hash — the basis of Ambr's legibility guarantee.

输入参数template必填parameters必填amendment_typeparent_contract_hashprincipal_declaration必填oversight_threshold_usd

ambr_get_contract

Retrieve a contract by ID, SHA-256 hash, or UUID. With a valid API key (contract creator): returns the full contract including human-readable text, machine-readable JSON, status, and principal declaration. Without authentication: returns metadata only (contract_id, status, hash, dates). Supports three lookup formats: - Contract ID: "amb-2026-0042" - SHA-256 hash: 64-character hex string - UUID: Standard UUID format Args: - id (string, required): Contract ID, SHA-256 hash, or UUID Returns: Full contract (if authorized) or metadata-only response. Legibility: retrieval preserves the dual-format pairing — prose and JSON always replay to the same SHA-256.

输入参数id必填

ambr_get_contract_status

Check the status of a contract and its amendment chain. Returns the current status and any linked amendments (parent or child contracts). Useful for verifying if a contract is active, amended, or terminated. Args: - id (string, required): Contract ID, SHA-256 hash, or UUID Returns: - contract_id, status, created_at - amendment_type, parent_contract_hash - amendments: Array of child contracts (if any) Legibility: amendments are bilateral and themselves dual-format — the chain stays legible from original through every revision.

输入参数id必填

ambr_verify_hash

Verify a contract's SHA-256 hash to confirm document integrity. Checks whether the provided hash matches a contract stored on Ambr. Returns verification status, contract metadata, and Reader Portal URL if found. Args: - hash (string, required): SHA-256 hash (64-character hex string) Returns: - verified: boolean - contract_id: string (if found) - status: string (if found) - reader_url: string (if found) Legibility: verification is the point at which legibility becomes provable — matching hash means the prose a human reads and the JSON a machine parses are the same document that was originally signed.

输入参数hash必填

ambr_agent_handshake

Initiate a handshake on a contract on behalf of your delegating principal. Requires an API key with an active delegation (principal wallet registered via /api/v1/delegations). Records the agent's intent to accept, reject, or request changes on the contract. The principal must separately approve via wallet signature on the Reader Portal. Args: - contract_id (string, required): Contract ID (amb-YYYY-NNNN), SHA-256 hash, or UUID - intent (string, required): "accept" | "reject" | "request_changes" - message (string, optional): Note for the counterparty - visibility_preference (string, optional): "private" | "metadata_only" | "public" | "encrypted" Returns: Handshake status and next steps for principal approval. Legibility: the handshake itself is auditable — delegation scope, agent identity, and principal approval are recorded alongside the contract hash.

输入参数intent必填messagecontract_id必填visibility_preference

版本历史

1
  1. v0.3.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。