XPayr Non-Custodial Crypto Gateway & AI Agent Commerce MCP
v1.0.021 MCP tools for non-custodial crypto checkout, USDT/USDC links, webhooks, and AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
xpayr_health_check
Check XPayr Gateway API v1 operational health, version, and server timestamp (public endpoint, no API key required).
xpayr_create_payment_session
Create a non-custodial crypto payment session supporting Dual Checkout (Web3 1-Click Pay & Direct Transfer / QR from Binance/Bybit/OKX with on-chain explorer verification), multi-chain agnostic links, 1-year reusable payment links, and automated HTML invoice email delivery.
| Parameter | Type | Description |
|---|---|---|
amount * | number | Invoice amount in fiat/token units (e.g., 49.90). |
currency * | string | Payment token symbol (e.g., USDT, USDC, SOL, TRX, BNB, ETH, MATIC). |
cancel_url | string | HTTPS redirect URL if customer cancels checkout. |
coupon_code | string | Optional promotional discount coupon code to apply. |
customer_email | string | Buyer email address for invoice delivery and payment receipt notifications. |
description | string | Human-readable order description shown on checkout and invoice. |
ipn_callback_url | string | HTTPS webhook endpoint URL for HMAC-SHA256 signed payment lifecycle events. |
is_multi_chain | boolean | When true, generates a universal multi-chain link allowing the buyer to dynamically choose their network and token at checkout. |
is_reusable | boolean | When true, the payment link remains active for 1 year and accepts repeated payments. |
network | string | Blockchain network key (e.g., tron-mainnet, bsc-mainnet, solana-mainnet, polygon-mainnet, base-mainnet, arc-mainnet, bsc-testnet). Optional if is_multi_chain is true. |
order_id | string | Merchant internal order or invoice reference ID (e.g., ORD-1001). |
send_invoice_email | boolean | When true and customer_email is provided, sends a branded responsive HTML invoice email with 1-click payment CTA. |
success_url | string | HTTPS redirect URL after confirmed payment. |
xpayr_get_payment_session
Retrieve full details, metadata, settlement split amounts, checkout mode, and on-chain transaction hash for a specific XPayr payment session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Payment session ID (e.g., ps_6b5b7d8737c0e0ec0a04a29a045d2d5d). |
xpayr_list_payment_sessions
List merchant crypto payment sessions with optional filtering by status (pending, completed, expired, failed), currency, network, and pagination.
| Parameter | Type | Description |
|---|---|---|
currency | string | Filter by token symbol (e.g., USDT, USDC). |
limit | integer | Number of sessions to return per page (1-100). |
network | string | Filter by blockchain network key (e.g., tron-mainnet, solana-mainnet). |
status | string | Filter by session status (pending, processing, completed, expired, failed). |
xpayr_get_public_payment_status
Poll real-time public checkout status, on-chain tx_hash, sender wallet address, block confirmations, and paid_at timestamp for any session (public endpoint, no API key required).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | Payment session ID (e.g., ps_6b5b7d8737c0e0ec0a04a29a045d2d5d). |
xpayr_apply_payment_coupon
Validate and apply a merchant discount coupon code to an active pending payment session and recalculate the effective crypto price.
| Parameter | Type | Description |
|---|---|---|
coupon_code * | string | Discount coupon code to apply. |
session_id * | string | Target payment session ID. |
xpayr_get_merchant_profile
Retrieve authenticated merchant profile, business name, primary settlement wallet address, commission rate in basis points (50 bps = 0.5%), active API keys, and livemode status.
xpayr_get_merchant_balance
Query confirmed non-custodial settlement volume, transaction counts, total merchant received amounts, and platform fees grouped by currency and blockchain network.
xpayr_get_supported_networks
List all active EVM, TRON, Solana, and Arc Mainnet/Testnet blockchain networks, chain IDs, RPC endpoints, smart-contract splitters, and supported tokens enabled for the current API key mode.
xpayr_get_webhook_config
Inspect the merchant webhook callback URL, masked HMAC-SHA256 signing secret, and subscribed payment lifecycle events (payment.pending, payment.completed, payment.failed, payment.expired).
xpayr_set_webhook_endpoint
Configure or update the merchant HTTPS webhook receiver URL and generate a fresh 32-byte HMAC-SHA256 signing secret.
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTPS webhook endpoint URL (e.g., https://mystore.com/webhooks/xpayr). |
xpayr_send_test_webhook
Dispatch a signed test.webhook event with HMAC-SHA256 headers to the configured merchant webhook URL to verify signature validation and delivery.
xpayr_create_ai_agent
Provision a new merchant-managed AI commerce agent identity with scoped credentials and programmable spending guardrails.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable AI agent name (e.g., Procurement Bot Alpha). |
description | string | Purpose and operational scope of the AI agent. |
wallet_address | string | Optional agent execution wallet address. |
xpayr_list_ai_agents
List all AI commerce agents managed by the merchant along with their status, assigned wallets, and spending policies.
xpayr_update_ai_agent_policy
Upsert spending policy rules for an AI commerce agent, including maximum per-transaction USD amount, daily budget cap, auto-approve threshold, and allowed blockchain networks/tokens.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Public ID of the target AI agent. |
allowed_currencies | array | List of permitted token symbols (e.g., ["USDC", "USDT"]). |
allowed_networks | array | List of permitted blockchain network keys. |
auto_approve_under | number | Transactions below this USD amount are auto-approved; higher amounts enter the human approval queue. |
daily_limit_amount | number | Maximum daily cumulative spend in USD. |
max_tx_amount | number | Maximum allowed single transaction amount in USD. |
xpayr_submit_agent_payment_intent
Submit an autonomous AI agent payment intent evaluated in real time against merchant spending policy guardrails (returns approved, pending_approval, or rejected).
| Parameter | Type | Description |
|---|---|---|
amount * | number | Requested payment amount (e.g., 25.00). |
currency * | string | Requested token symbol (e.g., USDC, USDT). |
external_reference | string | External task, tool, or invoice correlation ID. |
network | string | Target network key (e.g., arc-testnet, base-mainnet, solana-mainnet). |
reason | string | Justification or invoice memo for the AI agent payment. |
recipient_address | string | Destination wallet or merchant settlement address. |
xpayr_list_agent_payment_intents
List AI agent payment intents, policy evaluation decisions, and audit trail records for the merchant.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum records to return. |
status | string | Filter by decision status (approved, pending_approval, rejected, bridged). |
xpayr_bridge_agent_intent_to_checkout
Bridge an approved AI agent payment intent into a live executable XPayr payment session with hosted checkout URL and on-chain verification.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | Approved agent payment intent ID. |
xpayr_approve_agent_intent
Approve a pending AI agent payment intent from the merchant human-in-the-loop approval queue and optionally bridge it to a checkout session.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | Pending agent intent ID to approve. |
note | string | Optional reviewer approval note. |
xpayr_reject_agent_intent
Reject a pending AI agent payment intent in the merchant approval queue with an audit reason.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | Pending agent intent ID to reject. |
reason | string | Reviewer rejection reason. |
xpayr_calculate_gateway_fee_and_split
Deterministically calculate XPayr flat 0.5% (50 bps) gateway fee split, net merchant wallet settlement, exchange withdrawal underpayment tolerance (1%, max $0.50), and cost savings compared to BitPay (1%), Coinbase Commerce (1%), NOWPayments (0.5%-1%), and Stripe (2.9% + $0.30). Works offline without API keys.
| Parameter | Type | Description |
|---|---|---|
amount | number | Transaction or monthly volume amount in USD/USDT (e.g., 1000.00). |
currency | string | Settlement token symbol (e.g., USDT, USDC). |
network | string | Blockchain network (e.g., tron-mainnet, solana-mainnet, bsc-mainnet, base-mainnet, arc-mainnet). |