Nagora
Buy real goods with Nano (XNO) through escrow. Search, purchase, track orders, get signed receipts.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"nagora": {
"command": "npx",
"args": [
"@nagora/mcp"
]
}
}
}可运行的软件包
0.1.0stdio远程端点
https://api.nagora.shop/mcpstreamable-http它能做什么
工具清单
工具(9)
🟢search_listings(q, categoryId, minPrice, maxPrice, sortBy, ...)
Full-text search over active listings on nagora.shop. No API key required. Returns an items array and total count. Use get_listing for full detail before purchasing.
输入模式
{
"type": "object",
"properties": {
"q": {
"description": "Free-text search query, e.g. 'mechanical keyboard'",
"type": [
"string",
"null"
],
"default": null
},
"categoryId": {
"description": "Numeric category filter",
"type": [
"integer",
"null"
],
"default": null
},
"minPrice": {
"description": "Minimum price filter",
"type": [
"number",
"null"
],
"default": null
},
"maxPrice": {
"description": "Maximum price filter",
"type": [
"number",
"null"
],
"default": null
},
"sortBy": {
"description": "Sort order: newest, price_asc, or price_desc. Default newest",
"type": [
"string",
"null"
],
"default": null
},
"startIndex": {
"description": "Pagination offset, default 0",
"type": [
"integer",
"null"
],
"default": null
},
"count": {
"description": "Page size 1-100, default 20",
"type": [
"integer",
"null"
],
"default": null
}
}
}🟢register_agent(name, nanoAddress, contactEmail, homepageUrl, callbackUrl)
Creates a Nagora agent and mints its API key in one call. No Nagora account or signup required. IMPORTANT: this is a remote server with no local storage, so the key is returned ONCE in the result. Store it securely and pass it as the apiKey argument on subsequent calls in this session; for long-lived setups reconnect with an 'Authorization: Bearer <key>' header instead. Skip this tool if a credential is already configured; check with whoami.
输入模式
{
"type": "object",
"properties": {
"name": {
"description": "Agent name, e.g. 'claude-shopper' (max 64 chars)",
"type": "string"
},
"nanoAddress": {
"description": "Nano (XNO) address refunds should be sent to: the wallet this agent pays from",
"type": "string"
},
"contactEmail": {
"description": "Optional contact email for order issues",
"type": [
"string",
"null"
],
"default": null
},
"homepageUrl": {
"description": "Optional homepage describing the agent",
"type": [
"string",
"null"
],
"default": null
},
"callbackUrl": {
"description": "Optional webhook URL; Nagora POSTs signed order state-change events to it",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"name",
"nanoAddress"
]
}🟢confirm_delivery(orderId, apiKey)
Confirms the goods or digital content arrived and releases the escrowed funds to the seller. Requires the order's escrowStatus to be Shipped. Call promptly once delivery is verified: the seller is waiting on this to get paid. If never called, an auto-finalise timer releases funds after the configured window.
输入模式
{
"type": "object",
"properties": {
"orderId": {
"description": "Order ID to confirm",
"type": "string",
"format": "uuid"
},
"apiKey": {
"description": "Agent API key (nag_agt_...). Omit when connected with an Authorization header",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"orderId"
]
}🟢get_order(orderId, apiKey)
Polls an order placed by this agent. Returns orderStatus, escrowStatus, funding timestamps, tracking info, and the receipt ID once available. Poll after funding the deposit address, and after the seller ships, before calling confirm_delivery.
输入模式
{
"type": "object",
"properties": {
"orderId": {
"description": "Order ID returned by create_purchase",
"type": "string",
"format": "uuid"
},
"apiKey": {
"description": "Agent API key (nag_agt_...). Omit when connected with an Authorization header",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"orderId"
]
}🟢whoami(apiKey)
Verifies the configured credential and returns the agent's identity, spending caps, callback URL, and webhook secret. Call this first to confirm the credential works.
输入模式
{
"type": "object",
"properties": {
"apiKey": {
"description": "Agent API key (nag_agt_...). Omit when connected with an Authorization header",
"type": [
"string",
"null"
],
"default": null
}
}
}🟢get_receipt(orderId, apiKey)
Returns the cryptographically signed receipt for a completed order, including the seller's Nano address, the on-chain payout block hash, and Nagora's KMS signature. Available only after escrow is Released; returns an error while the order is still in progress.
输入模式
{
"type": "object",
"properties": {
"orderId": {
"description": "Order ID to fetch the receipt for",
"type": "string",
"format": "uuid"
},
"apiKey": {
"description": "Agent API key (nag_agt_...). Omit when connected with an Authorization header",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"orderId"
]
}🟡create_purchase(listingId, quantity, deliveryOptionId, variantId, shippingAddress, ...)
Places an order against a listing. Returns a depositAddress (per-order escrow Nano account) and amountNano. IMPORTANT: the order is not funded by this call. Send exactly amountNano to depositAddress from the agent's Nano wallet to fund escrow. Once funds are detected the order moves to AwaitingShipment automatically. Physical listings require a shippingAddress.
输入模式
{
"type": "object",
"properties": {
"listingId": {
"description": "Listing to purchase",
"type": "string",
"format": "uuid"
},
"quantity": {
"description": "Quantity, default 1",
"type": "integer",
"default": 1
},
"deliveryOptionId": {
"description": "Delivery option ID from get_listing, when the listing offers several",
"type": [
"integer",
"null"
],
"default": null
},
"variantId": {
"description": "Variant ID from get_listing, when the listing has variants",
"type": [
"string",
"null"
],
"format": "uuid",
"default": null
},
"shippingAddress": {
"description": "Required for physical delivery; omit for digital listings",
"type": [
"object",
"null"
],
"properties": {
"fullName": {
"type": [
"string",
"null"
]
},
"line1": {
"type": [
"string",
"null"
]
},
"line2": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"postalCode": {
"type": [
"string",
"null"
]
},
"countryCode": {
"type": [
"string",
"null"
]
},
"phone": {
"type": [
"string",
"null"
]
}
},
"required": [
"fullName",
"line1",
"line2",
"city",
"state",
"postalCode",
"countryCode",
"phone"
],
"default": null
},
"quotedTotalNano": {
"description": "Total in XNO from a recent get_listing call. Rejected if more than 2% off the live rate; omit to skip the guard",
"type": [
"number",
"null"
],
"default": null
},
"apiKey": {
"description": "Agent API key (nag_agt_...). Omit when connected with an Authorization header",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"listingId"
]
}🟢get_listing(listingId)
Fetch a single listing by ID. No API key required. Returns full detail including variants, delivery options, and pricing. Use the returned Nano total as quotedTotalNano when purchasing to guard against exchange-rate drift.
输入模式
{
"type": "object",
"properties": {
"listingId": {
"description": "Listing ID from search_listings",
"type": "string",
"format": "uuid"
}
},
"required": [
"listingId"
]
}🔴cancel_order(orderId, apiKey)
Cancels an order whose escrow is still Initiated (no on-chain funds sent yet). Restores listing stock. Cannot cancel once escrow is Funded; use the dispute or refund flow on the website instead.
输入模式
{
"type": "object",
"properties": {
"orderId": {
"description": "Order ID to cancel",
"type": "string",
"format": "uuid"
},
"apiKey": {
"description": "Agent API key (nag_agt_...). Omit when connected with an Authorization header",
"type": [
"string",
"null"
],
"default": null
}
},
"required": [
"orderId"
]
}推荐提示词
search_listingssearch_listingsget_orderget_ordersearch_listings社区
证据