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 分

    請在儲存庫或註冊中心條目中宣告授權條款。