three.ws Agent Payments
io.github.nirholas由 GitHub 帳號 nirholas 發布v0.1.5更新於 Nov 1, 2026
Governed x402 payment sessions: pay any endpoint with budget, allowlist & per-tx caps, no key.
發布方自己的服務:Payments Ai Mcp
概覽
為 AI 代理提供受控管的 x402 付款工作階段:建立具預算與白名單的工作階段,在不暴露錢包私鑰的情況下支付付費 HTTP 端點。
- 可以做什麼
- 建立、列出、檢視與取消由 three.ws 額度出資的付款工作階段,可設定預算、有效期限、單筆上限與主機白名單。
- 使用工作階段權杖支付 x402 HTTP 端點,由平台錢包簽章並在伺服器端強制執行政策。
- 檢視某個工作階段的剩餘預算、狀態與近期付款紀錄,或列出所有工作階段及彙總統計。
- 取消工作階段,將未花費的預算退回額度。
- 適用情境
- 當代理需要呼叫付費的 x402 API,而你希望以預算、單筆上限與主機白名單限制支出、而不是交出錢包私鑰時使用。也適合事後稽核或取消代理的支出。
- 執行需求
- 透過 npx 在本機執行(需要 Node.js)。需要帶額度的 three.ws 帳號來為工作階段注資。工作階段管理工具需要 THREE_WS_SESSION(瀏覽器 __Host-sid cookie 的值);pay_with_session 預設使用 PAYMENT_SESSION_TOKEN(pss_ 開頭的 bearer 權杖)。選用 THREE_WS_BASE 與 THREE_WS_TIMEOUT_MS。需要連線至 three.ws API 及鏈上結算的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 three.ws Agent Payments,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@three-ws/agentcore-payments-mcp
MCP server for three.ws Agent Payment Sessions — govern agent x402 spending without exposing private keys.
Concept
The agent does not hold a wallet. It proposes spend. Governance enforces policy.
A Payment Session is a budget envelope you fund once from your three.ws credits. You hand an agent the session bearer token; the agent calls paid x402 endpoints through this server. The platform's wallet signs every transaction. The session's allowlist, per-transaction ceiling, and total budget are enforced atomically on the server — the agent can never overspend.
Quick start
MCP client config (~/.cursor/mcp.json, Claude Desktop, etc.):
Environment variables
Tools
create_payment_session
Create a new session funded from your credits.
Returns { session, token }. The token is shown once — store it immediately.
pay_with_session
Pay an x402 endpoint using a session token. The platform wallet signs; your session's policy is enforced.
Returns { ok, paid, result, payment, session } with the tx hash, explorer link, and updated budget.
If session_token is omitted, the PAYMENT_SESSION_TOKEN env var is used.
check_payment_session
Inspect a session's budget, status, and recent payments.
list_payment_sessions
List all sessions for the authenticated user, with aggregate stats.
cancel_payment_session
Cancel a session and refund the un-spent budget to your credits.
Network support
Integrating with @three-ws/x402-mcp
The existing pay_and_call tool in @three-ws/x402-mcp now accepts session_token directly:
This routes the payment through /api/pay/execute instead of signing locally — the session's governance policy applies.
Examples
Runnable, no-payment examples live in examples/:
Neither one holds a wallet, reads a credential, or calls pay_with_session, so
nothing is signed and nothing is spent. plan-a-session.mjs is the habit worth
copying: read what an endpoint actually charges before you decide what budget to
authorize. See examples/README.md.
Session lifecycle
Programmatic use
The package entry point exports TOOLS (every tool definition: name, title,
description, inputSchema, annotations, handler) and buildServer(), which returns a
fully-registered McpServer with no transport attached. Importing is side-effect free and needs
no credential, so you can mount these tools inside a host of your own or inspect the surface
offline; a credential is only required when a handler actually runs.
Security properties
- No key exposure: the session token is a time-bounded, HMAC-signed grant. Compromising it lets an attacker spend up to the remaining budget at allowed hosts — nothing more.
- Atomic budget enforcement: concurrent payments use a SQL
UPDATE … WHERE remaining >= amount RETURNING— two simultaneous requests can never collectively overspend. - Allowlist: if
allowed_hostsis set, the governor rejects any request to a host not on the list before signing. - Per-transaction cap:
max_per_tx_usdprevents a single large payment draining the entire budget. - SSRF protection: all x402 target URLs are validated against a public-IP allowlist and DNS-resolved server-side before any payment is signed.
來源:packages/agentcore-payments-mcp/README.md,提交 c8f2cde
工具
0版本歷史
2- v0.1.5最新Oct 10, 2026
- v0.1.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Payments 整合
Payments Ai Mcp
ai.payments.managed官方發布者
Payments AI 提供的遠端 MCP 端點,以 Merchant of Record 身分協助為 AI 打造的應用上架產品與品牌化結帳頁。

Qut Pay (Kaspi QR payments)
kz.qut官方發布者
Qut Pay MCP 伺服器,用於哈薩克 Kaspi QR 付款:建立、查詢、取消與退款發票,並模擬沙箱付款。

walletcap for Coinbase payments MCP
由 GitHub 帳號 coriolislabs 發布
為 Coinbase 支付 MCP 錢包提供消費限額:單筆上限與跨程序共用的 24 小時滾動 USDC 預算。

FawryPay cash payments (unofficial)
由 GitHub 帳號 mohamedaly-cloud 發布
非官方的本機 MCP 伺服器,讓助理處理埃及 FawryPay Pay-at-Fawry 現金支付,並可選擇啟用退款與取消工具。

Toss Payments
由 GitHub 帳號 groove79 發布
針對 Toss Payments 的在地 MCP 伺服器,讓助理查詢付款、列出交易與結算,並在人工核准後取消或退款。