Axiom Wallet
Use this skill when the user wants to interact with their Axiom Wallet through MCP.
Axiom Wallet can be used to:
- - check the payment method on file
- review recent transactions
- retrieve single-use payment details for a user-requested purchase (charged to the card on file)
- attach receipt details after a successful purchase
The Axiom MCP endpoint is:
INLINECODE0
When to use this skill
Use Axiom Wallet when the user asks you to:
- - buy or pay for something with Axiom
- check their Axiom payment method or account info
- inspect recent Axiom transactions
- retrieve payment details for a specific checkout
Do not use this skill for unrelated browsing, account settings changes outside the available MCP tools, or speculative purchases the user has not clearly requested.
Authentication
If Axiom is not yet authenticated in the current environment, run:
CODEBLOCK0
This opens the OAuth login page in a headless browser. The page automatically enters device-flow mode and displays an activation URL.
- 1. The page displays an activation URL under the heading "Activation URL".
- Read the activation URL from the page — it is the link element with a
data-device-auth-url attribute. - Send only the activation URL to the user with a message like: "To connect Axiom Wallet, open this link on your device and approve access: [URL]"
- Wait — the page polls automatically. When the user approves on their device, mcporter receives the OAuth token and authentication is complete.
If the page shows a login form instead of the activation URL, click the "Sign in on another device" button at the bottom of the page. This switches to device-flow mode and displays the activation URL. Then continue from step 1 above.
If the session expires (5-minute TTL), the page shows a "Try again" button. Click it to generate a fresh activation URL and resend to the user.
Only share what is necessary for approval. Never share OAuth tokens, cookies, browser state, or unrelated page content.
If auth fails or expires, tell the user and retry the same command. To clear cached tokens:
CODEBLOCK1
Available tools
Use the MCP tools exposed by the server when available:
- -
whoami — returns user profile (name, email, shipping address, phone) - INLINECODE3 — returns the card on file (brand and last 4 digits only). Use this to verify a payment method exists before attempting a purchase.
- INLINECODE4 — lists recent transactions (optional
cardId filter, limit) - INLINECODE7 — issues a single-use virtual card for a purchase and charges the user's card on file. Requires
itemName, itemAmount (dollars), merchant (merchantName, merchantWebsite), and reasonForPurchase (userCommand, aiReasoning). May fail if blocked by spending rules, if approval is required, or if the card on file is declined. - INLINECODE16 — attaches receipt details to a completed transaction
Purchase workflow
When the user asks you to buy something, use this order:
- 1. Confirm the purchase details.
- Use the exact item, merchant, quantity, and price the user asked for.
- Do not invent purchase-critical facts.
- 2. Complete all checkout steps that do not require payment.
- Fill in name, email, shipping address, and any other required fields first.
- Advance through the checkout until the final step where payment details are needed to proceed.
- The goal is to reach the final total (including shipping, tax, and fees) before requesting a card.
- 3. Verify payment method.
- Call
get_payment_method to confirm the user has a card on file.
- If no payment method exists, tell the user to add a card in their account settings and stop.
- 4. Request payment details.
- Call
get_payment_details with:
-
itemName — name of the item being purchased
-
itemAmount — the final total in dollars
-
merchant —
{ merchantName, merchantWebsite }
-
reasonForPurchase —
{ userCommand: "the user's original request", aiReasoning: "why this purchase fulfills it" }
- This issues a single-use virtual card and charges the user's card on file for the total amount.
- Treat the returned card as single-use and intended for one authorization only.
- Do not request payment details until you have the complete total — the user's card is charged at this point.
- 5. Complete checkout.
- Enter the returned card number, expiry, CVV, and
billing address to finalize payment.
- Always use the billing address returned by
get_payment_details — not the user's shipping address. These are different. Verify the billing fields match before submitting.
- Do not store or reuse card details outside the active checkout flow.
- 6. Record the receipt.
- After a successful purchase, call
create_receipt with the transaction ID and accurate purchase facts.
- Do not include hidden chain-of-thought, internal reasoning, secrets, tokens, or unrelated context.
Items: For each item include:
- imageUrl — product image URL (see references/enrichment.md for how to find these reliably)
- url — link to the product page
- description — short variant info (size, color, etc.)
Order confirmation: Include orderConfirmationUrl with the merchant's order confirmation page URL and orderNumber with the confirmation number.
Audit trail: Provide categorized steps. Each step has a category, an action (short title), and optional detail (extra context).
Categories:
- request_initiated — what the user asked for, product identification
- purchase_in_progress — checkout steps (shipping, tax, etc.)
- approval_required — if user approval was needed via Axiom
- purchase_complete — payment and order confirmation
- receipt_created — final receipt attachment
Example steps for a typical purchase:
CODEBLOCK2
Safety and behavior rules
- - Always verify a payment method is on file before requesting payment details.
- Never claim a purchase succeeded unless checkout actually completed.
- If spending rules, approval requirements, or policy checks block the purchase, stop and tell the user what happened.
- Never bypass approval flows.
- Never expose OAuth tokens, session details, cookies, or browser state.
- Never include internal reasoning in receipts or any external system.
- Never fabricate merchant, amount, tax, shipping, or transaction details.
Troubleshooting
mcporter not found or outdated
mcporter ≥0.8.0 must be installed and available on PATH. Check with
mcporter --version. OpenClaw checks required binaries at skill load time.
Auth expired or failed
Retry:
CODEBLOCK3
Cross-device approval timed out
Start a fresh auth flow and send the new approval link or activation code.
No payment method on file
Tell the user to add a card in their Axiom account settings and stop.
Card declined
Tell the user their card was declined and suggest they check their card details or try a different card.
Spending rules blocked the transaction
Tell the user Axiom's rules prevented the purchase and do not retry blindly.
Axiom Wallet
当用户希望通过MCP与他们的Axiom钱包进行交互时,使用此技能。
Axiom钱包可用于:
- - 查看存档的支付方式
- 查看近期交易记录
- 获取用户请求购买的单次支付详情(从存档卡中扣款)
- 在成功购买后附加收据详情
Axiom MCP端点地址为:
https://mcp.useaxiom.ai/mcp
何时使用此技能
当用户要求您执行以下操作时,使用Axiom钱包:
- - 使用Axiom购买或支付某物
- 查看其Axiom支付方式或账户信息
- 查看近期Axiom交易记录
- 获取特定结账的支付详情
请勿将此技能用于无关的浏览、超出可用MCP工具的账户设置更改,或用户未明确要求的推测性购买。
身份验证
如果当前环境中尚未完成Axiom身份验证,请运行:
bash
mcporter auth https://mcp.useaxiom.ai/mcp --browser none --oauth-timeout 300000
这将在无头浏览器中打开OAuth登录页面。该页面会自动进入设备流模式并显示激活URL。
- 1. 页面会在激活URL标题下显示一个激活URL。
- 从页面中读取激活URL——它是带有data-device-auth-url属性的链接元素。
- 仅将激活URL发送给用户,并附带类似以下消息:要连接Axiom钱包,请在你的设备上打开此链接并批准访问:[URL]
- 等待——页面会自动轮询。当用户在设备上批准后,mcporter将收到OAuth令牌,身份验证即完成。
如果页面显示的是登录表单而非激活URL,请点击页面底部的在其他设备上登录按钮。这将切换到设备流模式并显示激活URL。然后从上述步骤1继续。
如果会话过期(5分钟TTL),页面会显示重试按钮。点击它以生成新的激活URL并重新发送给用户。
仅分享批准所需的信息。切勿分享OAuth令牌、Cookie、浏览器状态或无关的页面内容。
如果身份验证失败或过期,请告知用户并重试相同的命令。要清除缓存的令牌:
bash
mcporter auth https://mcp.useaxiom.ai/mcp --reset
可用工具
在可用时使用服务器暴露的MCP工具:
- - whoami — 返回用户资料(姓名、邮箱、收货地址、电话)
- getpaymentmethod — 返回存档卡信息(仅品牌和最后4位数字)。在尝试购买前使用此工具验证支付方式是否存在。
- listtransactions — 列出近期交易记录(可选cardId筛选、limit限制)
- getpaymentdetails — 为购买生成一次性虚拟卡并从用户存档卡中扣款。需要itemName、itemAmount(美元)、merchant(merchantName、merchantWebsite)和reasonForPurchase(userCommand、aiReasoning)。如果被消费规则阻止、需要批准或存档卡被拒绝,可能会失败。
- createreceipt — 将收据详情附加到已完成交易
购买流程
当用户要求您购买某物时,请按以下顺序操作:
- 1. 确认购买详情。
- 使用用户要求的确切商品、商家、数量和价格。
- 不要编造购买关键信息。
- 2. 完成所有不需要支付的结账步骤。
- 首先填写姓名、邮箱、收货地址以及任何其他必填字段。
- 推进结账流程,直到需要支付详情才能继续的最后一步。
- 目标是在请求卡片之前获取最终总金额(包括运费、税费和费用)。
- 3. 验证支付方式。
- 调用get
paymentmethod以确认用户有存档卡。
- 如果不存在支付方式,告知用户在其账户设置中添加卡片并停止。
- 4. 请求支付详情。
- 使用以下参数调用get
paymentdetails:
- itemName — 所购商品的名称
- itemAmount — 最终总金额(美元)
- merchant — { merchantName, merchantWebsite }
- reasonForPurchase — { userCommand: 用户的原始请求, aiReasoning: 此购买为何满足该请求 }
- 这将生成一次性虚拟卡并从用户存档卡中扣除总金额。
- 将返回的卡片视为一次性使用,仅用于一次授权。
- 在获得完整总金额之前不要请求支付详情——此时用户卡片将被扣款。
- 5. 完成结账。
- 输入返回的卡号、有效期、CVV和
账单地址以完成支付。
- 始终使用get
paymentdetails返回的账单地址——而非用户的收货地址。这两者不同。在提交前验证账单字段是否匹配。
- 不要在活跃结账流程之外存储或重复使用卡片详情。
- 6. 记录收据。
- 成功购买后,使用交易ID和准确的购买事实调用create_receipt。
- 不要包含隐藏的思维链、内部推理、秘密、令牌或无关上下文。
商品:每件商品包括:
- imageUrl — 产品图片URL(关于如何可靠获取这些信息,请参见references/enrichment.md)
- url — 产品页面链接
- description — 简短变体信息(尺寸、颜色等)
订单确认:包括orderConfirmationUrl(商家订单确认页面URL)和orderNumber(确认号)。
审计追踪:提供分类的steps。每个步骤包含category、action(简短标题)和可选的detail(额外上下文)。
分类:
- request_initiated — 用户请求的内容、产品识别
- purchaseinprogress — 结账步骤(运费、税费等)
- approval_required — 如果需要通过Axiom获得用户批准
- purchase_complete — 支付和订单确认
- receipt_created — 最终收据附件
典型购买的步骤示例:
{ category: request_initiated, action: 用户请求商品, detail: 我想要这个中号 https://shop.example.com/product }
{ category: request_initiated, action: 产品已识别, detail: 重磅T恤 - 黑色 $25.00(闪购,原价$35) }
{ category: purchaseinprogress, action: 尺寸确认有货 }
{ category: purchaseinprogress, action: 已输入收货地址, detail: 123 Main St, McLean VA 22101 }
{ category: purchaseinprogress, action: 已选择配送方式, detail: 标准配送(2-4个工作日)$6.57 }
{ category: purchaseinprogress, action: 已计算税费, detail: 弗吉尼亚州税 $1.51 }
{ category: purchaseinprogress, action: 最终总金额, detail: $33.08 }
{ category: purchase_complete, action: 支付完成, detail: Axiom虚拟卡 }
{ category: purchase_complete, action: 订单已确认, detail: 订单号 #7XC9R4NGX }
{ category: receipt_created, action: 收据已附加 }
安全与行为规则
- - 在请求支付详情之前,始终验证存档卡是否存在。
- 除非结账实际完成,否则切勿声称购买成功。
- 如果消费规则、批准要求或策略检查阻止了购买,请停止并告知用户发生了什么。
- 切勿绕过批准流程。
- 切勿暴露OAuth令牌、会话详情、Cookie或浏览器状态。
- 切勿在收据或任何外部系统中包含内部推理。
- 切勿编造商家、金额、税费、运费或交易详情。
故障排除
mcporter未找到或版本过旧
必须安装mcporter ≥0.8.0并确保其在PATH中可用。使用mcporter --version检查。OpenClaw在技能加载时检查所需的二进制文件。
身份验证过期或失败
重试:
bash
mcporter auth https://mcp.useaxiom.ai/mcp
跨设备批准超时
启动新的身份验证流程,并发送新的批准链接或激活码。
没有存档的支付方式
告知用户在其Axiom账户设置中添加卡片并停止。
卡片被拒绝
告知用户其卡片被拒绝,并建议检查卡片详情或尝试其他卡片。
消费规则阻止了交易
告知用户Axiom的规则阻止了此次购买,不要盲目重试。