XPayr Non-Custodial Crypto Gateway & AI Agent Commerce MCP

v1.0.0
io.github.xpayrcom/xpayr-mcp-server Checked 1 day ago Published 23 days ago

21 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.

ParameterTypeDescription
amount *numberInvoice amount in fiat/token units (e.g., 49.90).
currency *stringPayment token symbol (e.g., USDT, USDC, SOL, TRX, BNB, ETH, MATIC).
cancel_urlstringHTTPS redirect URL if customer cancels checkout.
coupon_codestringOptional promotional discount coupon code to apply.
customer_emailstringBuyer email address for invoice delivery and payment receipt notifications.
descriptionstringHuman-readable order description shown on checkout and invoice.
ipn_callback_urlstringHTTPS webhook endpoint URL for HMAC-SHA256 signed payment lifecycle events.
is_multi_chainbooleanWhen true, generates a universal multi-chain link allowing the buyer to dynamically choose their network and token at checkout.
is_reusablebooleanWhen true, the payment link remains active for 1 year and accepts repeated payments.
networkstringBlockchain 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_idstringMerchant internal order or invoice reference ID (e.g., ORD-1001).
send_invoice_emailbooleanWhen true and customer_email is provided, sends a branded responsive HTML invoice email with 1-click payment CTA.
success_urlstringHTTPS 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.

ParameterTypeDescription
session_id *stringPayment 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.

ParameterTypeDescription
currencystringFilter by token symbol (e.g., USDT, USDC).
limitintegerNumber of sessions to return per page (1-100).
networkstringFilter by blockchain network key (e.g., tron-mainnet, solana-mainnet).
statusstringFilter 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).

ParameterTypeDescription
session_id *stringPayment 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.

ParameterTypeDescription
coupon_code *stringDiscount coupon code to apply.
session_id *stringTarget 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.

ParameterTypeDescription
url *stringHTTPS 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.

ParameterTypeDescription
name *stringHuman-readable AI agent name (e.g., Procurement Bot Alpha).
descriptionstringPurpose and operational scope of the AI agent.
wallet_addressstringOptional 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.

ParameterTypeDescription
agent_id *stringPublic ID of the target AI agent.
allowed_currenciesarrayList of permitted token symbols (e.g., ["USDC", "USDT"]).
allowed_networksarrayList of permitted blockchain network keys.
auto_approve_undernumberTransactions below this USD amount are auto-approved; higher amounts enter the human approval queue.
daily_limit_amountnumberMaximum daily cumulative spend in USD.
max_tx_amountnumberMaximum 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).

ParameterTypeDescription
amount *numberRequested payment amount (e.g., 25.00).
currency *stringRequested token symbol (e.g., USDC, USDT).
external_referencestringExternal task, tool, or invoice correlation ID.
networkstringTarget network key (e.g., arc-testnet, base-mainnet, solana-mainnet).
reasonstringJustification or invoice memo for the AI agent payment.
recipient_addressstringDestination 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.

ParameterTypeDescription
limitintegerMaximum records to return.
statusstringFilter 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.

ParameterTypeDescription
intent_id *stringApproved 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.

ParameterTypeDescription
intent_id *stringPending agent intent ID to approve.
notestringOptional reviewer approval note.

xpayr_reject_agent_intent

Reject a pending AI agent payment intent in the merchant approval queue with an audit reason.

ParameterTypeDescription
intent_id *stringPending agent intent ID to reject.
reasonstringReviewer 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.

ParameterTypeDescription
amountnumberTransaction or monthly volume amount in USD/USDT (e.g., 1000.00).
currencystringSettlement token symbol (e.g., USDT, USDC).
networkstringBlockchain network (e.g., tron-mainnet, solana-mainnet, bsc-mainnet, base-mainnet, arc-mainnet).