Merchant Context

io.github.ihint由 GitHub 帳號 ihint 發布v0.3.0更新於 Oct 24, 2026

Resolve sourced merchant facts and safe actions before an agent acts.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取金融商業與電商

概覽

AI 產生的概覽

遠端 MCP 服務,讓助理在採取行動前取得有來源的商家事實、報價比較與商家自有的操作交接資訊。

可以做什麼
  • 解析商家的快取身分、有來源的事實、報價、條款、新鮮度與安全操作
  • 依報價、地點、價格、時間、政策、操作支援與新鮮度搜尋快取的商家紀錄
  • 比較兩家以上商家的有來源報價欄位,未知值維持未知
  • 取得商家自有的操作網址及其輸入、權限、確認、有效期限、重試與復原規則
  • 執行預檢:解析商家、評估意圖限制並選定安全操作
  • 執行免費的商家網站診斷,並付費取得一次全新檢查與快取重新整理
適用情境
當助理需要在不猜測的情況下說明某商家賣什麼、價格多少、適用哪些規則,或需要選定下一步安全操作(例如需人工核准的購買)時適用。也適合僅依有來源欄位在多個商家之間比較報價。
執行需求
需要支援 Streamable HTTP 的用戶端連線至託管的遠端端點;未宣告任何套件、環境變數或標頭。付費重新整理路徑需要以 Base 上的 USDC 透過 x402 付款。
安裝前請注意
付費重新整理及其相容別名每次收費 0.01 USDC(Base),應先顯示價格並取得明確的人工核准再呼叫。此服務為早期公開草案,並不認證其他商務或代理協定。檢查器僅存取公開 HTTPS 來源且不傳回頁面內容;付款紀錄儲存雜湊而非錢包位址或已簽章付款權杖。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Merchant Context,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.ihint%2Fmerchant-context/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "merchant-context": {
      "type": "http",
      "url": "https://api.merchant.atomandbits.com/mcp"
    }
  }
}

README

Merchant Context

Merchant Context is an open merchant preflight for agent builders.

It starts with a practical question:

Can an agent tell what you sell, who it is for, what it costs, which rules apply, and what action comes next without guessing?

This repo contains:

Canonical sources

The domain schema and schema/merchant-context.schema.json must stay semantically equal. Versioned releases preserve old contracts.

Status

This is an early public draft from Atom & Bits. It is not a new payment or checkout protocol. It does not certify ACP, UCP, MCP, A2A, x402, or Web Bot Auth support.

The UCP profile declares no services, checkout capabilities, or payment handlers. It gives agents an explicit discovery response without claiming operations that do not exist.

The goal is to give merchants one testable context layer that can map to those systems as they mature.

No outside adoption is claimed from internal tests, registry views, repository activity, or self-funded payments.

Agent endpoints

  • MCP: https://api.merchant.atomandbits.com/mcp
  • Free MCP tool: resolve_merchant
  • Free HTTP: POST https://api.merchant.atomandbits.com/v1/resolve
  • Paid MCP tool: refresh_merchant
  • Paid HTTP x402: POST https://api.merchant.atomandbits.com/v1/refresh
  • Price: $0.01 USDC on Base
  • First verified settlement: Base transaction 0x2f0f…57af

The first paid call settled on 2026-08-04 and returned a live inspection of https://merchant.atomandbits.com.

Quick start

  1. Work through CHECKLIST.md.
  2. Copy examples/saas.json.
  3. Replace every sample value with a fact from your own site or system.
  4. Keep prices, stock, policies, and action URLs current.
  5. Run python3 scripts/validate.py before publishing.

Add it to an agent

The remote MCP endpoint works with clients that support Streamable HTTP:

text
https://api.merchant.atomandbits.com/mcp

Start with resolve_merchant.

It is free.

A cache hit makes no merchant fetch and no paid inspection call.

See the agent integration guide for Codex, Claude Code, Gemini CLI, Cursor, and the OpenAI Responses API.

Agents that support the open Agent Skills format can use skills/merchant-context.

Design rules

  • Facts beat slogans.
  • A URL is not an API.
  • Agents must not infer price, stock, policy, or authority.
  • Each claim should name its source and update time.
  • A purchase or other high-impact action should state when human approval is required.
  • Existing standards win. Map to them instead of inventing a private dialect.

Agent service

The worker directory contains the hosted MCP service under test. It exposes:

  • resolve_merchant, a free sourced merchant record with freshness, unknowns, safe actions, and attribution;
  • search_merchants, a neutral search over cached sourced records;
  • compare_offers, a sourced comparison that keeps unknown values;
  • get_safe_actions, a merchant-owned action handoff with approval and recovery rules;
  • preflight, the reusable resolution and action gate;
  • check_merchant, a free merchant-site diagnostic;
  • refresh_merchant, a $0.01 x402 fresh inspection that needs explicit approval;
  • inspect_merchant, a first-release compatibility alias for paid refresh;
  • direct HTTP routes under /v1; and
  • /.well-known/merchant-context, a public service record for agents and registries.

The inspector accepts public HTTPS origins only. It blocks local and IP targets, checks each redirect, caps response size and time, and returns no page body. The payment path records hashes, not wallet addresses or signed payment tokens.

Run its local checks:

sh
cd workernpm installnpm testnpm run typechecknpx wrangler deploy --dry-run

Contributing

Issues, examples, and corrections are welcome. Read CONTRIBUTING.md before opening a pull request.

License

MIT. See LICENSE.

來源:README.md,提交 846761e

工具

9

get_service_info

Describe the Merchant Context service, price, and inspection checks.

無需輸入參數。

check_merchant

Run a free merchant-site diagnostic. Agents should use resolve_merchant before relying on merchant facts or actions.

輸入參數merchant_url必填

resolve_merchant

Resolve cached merchant identity, sourced facts, offers, terms, freshness, and safe actions for free. Call this before relying on merchant facts or starting an action.

輸入參數client_idmerchant_url必填

search_merchants

Search cached merchant records by sourced offer, place, price, timing, policy, action support, and freshness. Payment and adoption never change order.

輸入參數policytimingclient_idfreshnessgeographyaction_typeitem_or_servicemax_stale_secondsmaximum_price_amountmaximum_price_currency

compare_offers

Compare only sourced offer fields from two or more merchants. Unknown values stay unknown and payment never changes order.

輸入參數client_idmerchant_urls必填

get_safe_actions

Return current merchant-owned action URLs, exact inputs, authority, confirmation, expiry, retry rules, recovery, and attribution.

輸入參數client_idaction_typemerchant_url必填allowed_authorityhuman_confirmation_available

preflight

Resolve one merchant, evaluate sourced intent constraints, select a safe action, state approval, and return attribution.

輸入參數timingclient_idgeographyaction_typemerchant_url必填item_or_serviceallowed_authoritymax_stale_secondsmaximum_price_amountmaximum_price_currencyhuman_confirmation_available

refresh_merchant

Refresh merchant evidence

Pay for a fresh merchant inspection and cache refresh. Show the price and get explicit human approval first.

輸入參數agent_id必填approved必填merchant_url必填

inspect_merchant

Refresh merchant evidence

Compatibility alias for refresh_merchant. Show the price and get explicit human approval first.

輸入參數agent_id必填approved必填merchant_url必填

版本歷史

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

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分