HPP x402 MCP Bridge

io.github.hpp-io由 GitHub 帳號 hpp-io 發布v0.1.24更新於 Nov 3, 2026

用於 HPP USDC.e 中自主 x402 支付的 MCP 橋接,可按呼叫發現並支付服務。

AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。

原文描述

MCP bridge for autonomous x402 payments in HPP USDC.e — discover and pay for services per call.

概覽

HPP x402 MCP Bridge 的本機 MCP 服務;無需登入;STDIO。

暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@hpp-io/x402-mcp-bridge

[npm] [MCP Registry] [License] [Node]

The agent payment rail for HPP. A stdio MCP bridge + the hpp-x402 CLI that let Claude Desktop / Claude Code / Cursor / Windsurf / OpenClaw make autonomous HPP USDC.e payments over x402 — discover paid services, pay per call, within a spend cap. No API keys, no manual signing.

📖 Full documentation

hpp-io/x402-tools — the complete manual: how it works, every command, buyer and seller flows, payment schemes (exact / upto), wallet modes, and troubleshooting. This README is a quick reference.

Install

bash
# macOS / Linuxcurl -fsSL https://raw.githubusercontent.com/hpp-io/x402-tools/main/install/install.sh | bash# Windows (PowerShell)irm https://raw.githubusercontent.com/hpp-io/x402-tools/main/install/install.ps1 | iex# …or npmnpm install -g @hpp-io/x402-mcp-bridge

Needs Node 20+. On a headless box (no OS keychain) use setup --print-key — see the manual.

Quick start

bash
hpp-x402 setup --install claude-code   # create a wallet + register into your hosthpp-x402 fund                          # where to send USDC.e (gasless, no native gas)hpp-x402 status                        # confirm it's wired

Restart your host and your agent can discover and pay for services. Browse and pay from the terminal too:

bash
hpp-x402 discover "price prediction"               # semantic search; your network onlyhpp-x402 describe <id>                             # input args (schema + example) — no paymenthpp-x402 call <url-or-id> --body '{"hi":"there"}'  # pay + call — a URL, or an id from discover

Pay from your HPP Smart Wallet instead

Rather than funding the agent's key, let it pay from your HPP Smart Wallet under a spending limit you set. In the wallet, open Agents → New, paste the agent's address (hpp-x402 wallet address), issue the delegation, then run the command the wallet shows — it is this, with the value filled in:

bash
hpp-x402 install claude-code -n eip155:190415 --delegation 0x…

Run it on the machine where the agent's key lives. The value is checked against that key and the network before it is written, and again each time the bridge starts. The value can only be used by that key, within the limit, until it expires — but it does end up in your shell history, so treat it like a card with a cap. To stop the agent, revoke the delegation in the wallet.

Full command reference, selling (serve), schemes, and Safe mode → the manual.

Use it from an MCP host

The host spawns the bridge over stdio. A bare entry boots zero-config on HPP Sepolia with an auto-created keychain wallet:

jsonc
{ "mcpServers": { "hpp-x402": {  "command": "npx", "args": ["-y", "@hpp-io/x402-mcp-bridge"]} } }

hpp-x402 install <host> writes this for you. Note: a bare npx @hpp-io/x402-mcp-bridge runs the MCP server (what the host wants) — for the CLI use npx -y -p @hpp-io/x402-mcp-bridge hpp-x402 <command>.

Host-facing tools

ToolWhat it does
wallet_addressreport your wallet address (to fund it)
hpp_discoverlist/search the curated HPP directory (read-only)
hpp_describeone service's input args — schema + example (read-only)
hpp_callcall a discovered service (HTTP/MCP/A2A); pays via your wallet
x402_http_callpay + call any x402 HTTP endpoint
pay_a2a_agentpay + message another A2A agent

Every paid call stays within your spend cap (per-call cap defaults to 1 USDC.e; raise it with wallet_set_limit) and is paid only in allowlisted tokens; discovery never holds funds or sees your keys.

Key env (all optional)

VarNotes
DELEGATE_PRIVATE_KEYauto-created in the OS keychain if unset
HPP_NETWORKeip155:181228 Sepolia (default) / eip155:190415 Mainnet
HPP_X402_ALLOWED_ASSETSextra tokens the bridge may pay in (comma-separated addresses). By default only USDC.e (both networks) and HAC (Sepolia test token); a 402 priced in any other token is refused before signing
RESOURCE_SERVER_URLproxy one upstream MCP server (omit = local tools only)
SAFE_ADDRESS + ALLOWANCE_MODULE_ADDRESSset both = Safe (governance) mode
HPP_PAYMENT_DELEGATIONERC-7710 payment delegation a wallet granted to this key: pays erc7710 accepts from the user's smart account under on-chain caps — this key needs no USDC.e. hpp-x402 install <host> --delegation <value> writes it. Checked against the key and the network at install and at boot (a value issued on the other network, revoked, or expired stops the bridge with the reason); without it such accepts are skipped

Full environment reference + Safe/governance setup are in the manual.

Related

Building an agent / SDK integration (LangChain, OpenAI function-calling, AgentKit, A2A)? See the runnable gallery → hpp-io/hpp-x402-agent-sample

License

Apache-2.0

來源:README.md,提交 d26997e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

5
  1. v0.1.24最新Nov 3, 2026
  2. v0.1.23Oct 22, 2026
  3. v0.1.22Oct 15, 2026
  4. v0.1.21Oct 2, 2026
  5. v0.1.18Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

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