U.CASH Pay
Pay x402 resources on U.CASH from your own wallet: view the price, pay on-chain, settle by hash.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"ucash-pay": {
"url": "https://mcp.u.cash/"
}
}
}远程端点
https://mcp.u.cash/streamable-http它能做什么
工具清单
工具(14)
🟢uxc_view_door(res_id, status)
Fetch the public 402 payment door for a resource (what a buyer sees at https://agents.u.cash/r/{res_id}): the price + the multi-coin accepts[] (each asset, the seller receive address, and the exact amount to pay). No key. Use as a BUYER to see what to pay, then uxc_verify_payment after paying. status=true polls settlement without minting a new challenge.
输入模式
{
"type": "object",
"properties": {
"res_id": {
"type": "string"
},
"status": {
"type": "boolean",
"description": "poll mode: GET /r/{id}?status=1 - no-mint settlement check"
}
},
"required": [
"res_id"
]
}🟡uxc_verify_payment(challengeId, hash)
BUYER-SIDE. After paying a resource (from uxc_view_door) on-chain from your own wallet, submit the transaction hash to settle it. Pass the challengeId from the accepts[] entry you paid and the on-chain transaction hash. Returns settled (confirmed) or pending (awaiting confirmations). No seller key needed - the challengeId identifies the resource, and settlement is gated by on-chain confirmation.
输入模式
{
"type": "object",
"properties": {
"challengeId": {
"type": "string"
},
"hash": {
"type": "string"
}
},
"required": [
"challengeId",
"hash"
]
}🟢uxc_get_market(q, limit, fields)
The PUBLIC cross-merchant market catalog: every published checkout across merchants (id, title, price, currency, merchant, domain, payable url). No key. q filters by title/merchant/description.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "filter by title/merchant/description"
},
"limit": {
"type": "integer",
"maximum": 200,
"default": 50
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 20,
"description": "Optional response projection: dot paths to keep, e.g. [\"items.title\",\"items.price\"] or row-level [\"title\",\"price\"]. Envelope/meta keys (ok, success, total, count, pagination) are always kept; unknown paths are ignored; empty/absent = full response."
}
}
}🟢uxc_get_services(limit, fields)
The PUBLIC cross-provider services catalog (eSend rail: each row carries the provider contact email, a sendable asset code and a price). No key.
输入模式
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"default": 50
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 20,
"description": "Optional response projection: dot paths to keep, e.g. [\"items.asset\",\"items.price\"] or row-level [\"asset\",\"price\"]. Envelope/meta keys (ok, success, total, count, pagination) are always kept; unknown paths are ignored; empty/absent = full response."
}
}
}🟢uxc_search_catalog(query, filters, pagination, cloud)
Search a merchant catalog (text query + price filters + pagination). The merchant is resolved from a cloud token (the "cloud" argument) or the platform default. No key.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"filters": {
"type": "string"
},
"pagination": {
"type": "string"
},
"cloud": {
"type": "string"
}
}
}🟢uxc_get_product(id, cloud)
Fetch a single catalog product by id. Public (no key); pair with uxc_search_catalog to find ids.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"cloud": {
"type": "string"
}
},
"required": [
"id"
]
}⚪uxc_lookup_products(ids, cloud, fields)
Batch catalog lookup by ids. Public (no key).
输入模式
{
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string"
}
},
"cloud": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 20,
"description": "Optional response projection: dot paths to keep, e.g. row-level [\"id\",\"title\",\"price\"]. Envelope/meta keys (ok, success, total, count, pagination) are always kept; unknown paths are ignored; empty/absent = full response."
}
},
"required": [
"ids"
]
}🟡uxc_create_checkout(line_items, currency, buyer, context, cloud)
Create a UCP checkout session (multi-item, mixed-currency cart) for a merchant catalog. No key. Returns {id, status, currency, line_items, totals, ap2}.
输入模式
{
"type": "object",
"properties": {
"line_items": {
"type": "array",
"description": "each: {item:{id}, quantity}"
},
"currency": {
"type": "string",
"description": "optional cart display currency"
},
"buyer": {
"type": "string"
},
"context": {
"type": "string"
},
"cloud": {
"type": "string",
"description": "merchant token when buying from a hosted merchant"
}
},
"required": [
"line_items"
]
}🟢uxc_get_checkout(id, cloud)
Fetch a UCP checkout session by id (status: incomplete -> ready_for_complete -> completed). No key; pass cloud for a hosted merchant.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"cloud": {
"type": "string"
}
},
"required": [
"id"
]
}⚪uxc_complete_checkout(id, ap2, cloud)
Mint payment challenges for a checkout session -> ready_for_complete. Optional ap2 (AP2 checkout mandate). No key; pass cloud for a hosted merchant.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"ap2": {
"type": "string",
"description": "optional AP2 checkout mandate"
},
"cloud": {
"type": "string"
}
},
"required": [
"id"
]
}🔴uxc_cancel_checkout(id, cloud)
Cancel a UCP checkout session. No key; pass cloud for a hosted merchant.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"cloud": {
"type": "string"
}
},
"required": [
"id"
]
}🟢uxc_get_order(id, cloud)
View a UCP checkout session as an order (per-item fulfillment status + fulfillment events). No key; pass cloud for a hosted merchant.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"cloud": {
"type": "string"
}
},
"required": [
"id"
]
}🟢uxc_discover_servers(q)
List every u.cash MCP server in the fleet (buyer, seller, prime, legacy): product surface, auth model, transports with install coordinates, docs URL. Optional q filters by name/product/summary. Discovery only - connect to each server directly with your own credentials; no call is ever proxied.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "case-insensitive substring over name/product/summary"
}
}
}🟢uxc_discover_tools(q, server, limit)
Search tools across every u.cash MCP server by name or description (case-insensitive substring), optionally scoped to one server. Returns the tool, a one-liner, its server, and how to connect. Discovery only - connect to that server directly; no call is ever proxied.
输入模式
{
"type": "object",
"properties": {
"q": {
"type": "string",
"description": "substring matched over tool name + description"
},
"server": {
"type": "string",
"description": "optional: restrict to one fleet server name"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 20
}
}
}社区
证据