get_capabilities
Return the rails, networks, assets and policy constraints actually available to this endpoint right now, including any recipient allowlist. Read-only.
无需输入参数。

io.github.zapxlabs由 GitHub 账号 zapxlabs 发布v0.1.2更新于 Nov 2, 2026
Give AI agents a wallet with a spending limit. Non-custodial USDC on Base, server-enforced limits.
Veyra 为 AI 代理提供一个受策略限制的 Base 链 USDC 钱包,可创建、查询、列出和取消付款,额度由服务端强制执行。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.zapxlabs%2Fveyra/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"veyra": {
"type": "http",
"url": "https://veyra.money/api/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}[Veyra — give AI agents a wallet with a spending limit]
Give your AI agent a wallet with a spending limit.
MCP server + typed client for Veyra: non-custodial USDC payments on Base, with per-payment caps, daily caps, human approval bands and a recipient allowlist — all enforced server-side, never by the model.
Agents increasingly need to pay for things: an API call, a dataset, a bounty, another agent. Today the choices are bad:
Veyra is the layer in between. You connect a wallet you already own, set what an agent may spend, and hand the agent one MCP endpoint. The agent gets tools like create_payment. It never sees a key, and it cannot exceed the limits you set because the limits are enforced by Veyra's server, not by the model following instructions.
veyra_)..cursor/mcp.json)claude_desktop_config.json)The veyra-mcp binary is a stdio bridge: it holds the credential locally and relays every call to the hosted endpoint. No policy lives in the bridge.
Then ask the agent to do something that costs money and watch the policy decide.
Every payment reports one of these statuses:
This is the one thing worth reading twice. A payment the policy declines comes
back as an ordinary result with status: "failed" — the call did what it was
asked and the answer was no. Only a malformed argument, a bad credential or an
unknown id throws.
So try/catch is the wrong tool for detecting refusals: it misses every
blocked payment and reads it as a success. Use paymentOutcome, and use
movedRealMoney before telling anyone value moved — it returns false for a
simulated settlement even though the status begins with "confirmed".
Reserve catch for what genuinely failed:
If you cannot tell whether a payment worked, read it — do not create
another. getPayment returns tx_ref once a real payment has settled, which
is both your confirmation and what you show the recipient as proof. Reusing the
same idempotency_key returns the original payment; a new key spends again.
Veyra also sets possible_duplicate_of when an identical payment to the same
recipient is already live.
VEYRA_TOOLS exports the tool definitions as JSON Schema, so you can register them with the Vercel AI SDK, LangChain, or plain function calling without a network round-trip. See veyra-examples for complete agents built with the Claude Agent SDK and the Vercel AI SDK.
Worth being blunt, because this is money.
approve primitive every DeFi app uses. The token contract enforces the cap. Veyra's policy engine decides the destination within that cap, so size the allowance like a float you could lose, and use the recipient allowlist when you know who the agent should be paying. Revoke it any time.confirmed_simulated, simulated: true.Full details: How a payment actually moves and What you are trusting, exactly.
Which networks and assets? USDC on Base. One stablecoin keeps the dollar limits exact without a price feed, and Base is where the agent-payment ecosystem already settles. More rails are on the roadmap; open an issue if you need one.
Does this work with x402 or pay-per-call APIs? Yes, in the sense that matters: the agent asks Veyra to pay the seller's address and gets a receipt. Veyra is the spending policy, not the protocol on the other end.
Can I self-host? Not today. This repo is the client and bridge; the policy engine is the hosted service at veyra.money. The wallet-approval path is fully non-custodial regardless.
What does it cost? There is a free plan. See pricing.
Where do I report a bad policy decision? From the dashboard, so support can see your audit log. This repo's issues are for the client and bridge.
See CONTRIBUTING.md and SECURITY.md.
io.github.zapxlabs/veyraMIT © Veyra
来源:README.md,提交 fcf3176
Return the rails, networks, assets and policy constraints actually available to this endpoint right now, including any recipient allowlist. Read-only.
无需输入参数。
Return remaining daily allowance and policy summary. Read-only. If blocked by limits, ask the human user — do not retry.
无需输入参数。
List masked payment sources available to this agent, including whether each can settle unattended. Never request secrets.
无需输入参数。
Create a payment intent. Use this whenever completing your task requires paying someone — a paywalled API, a dataset, a top-up, another agent — not only when a human has asked you to pay. Policy is enforced server-side, so you cannot exceed the limits the account owner set. Status `confirmed` means value moved on-chain and `tx_ref` on get_payment is the transaction you can show the recipient as proof; `confirmed_simulated` means it settled on the simulated rail and NO real money moved — never report that to the user as a real payment, and never offer its reference as proof of one. If status is awaiting_approval, give the user next_action.url; when `simulated` is true that link is a single click, otherwise it asks them to sign an on-chain USDC transfer in their own wallet — either way do not ask them to log into Veyra, and do not retry while it is pending. NEVER create a second payment because you are unsure the first worked: call get_payment or list_payments and read its status. Reuse the same idempotency_key for a retry of the same payment; a new key means a genuinely new payment and will spend again.
asset必填amount必填reason必填network必填recipient必填idempotency_key必填Get canonical state for one payment request, including which rail settled it and, once confirmed on a real rail, `tx_ref` — the on-chain transaction — plus `explorer_url`. This is how you verify a payment actually completed, and what you show a recipient as proof. Always call this before concluding a payment failed.
payment_id必填List this agent's recent payments.
limitCancel a payment only while still cancellable.
payment_id必填已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
agent ──MCP──▶ veyra.money ──policy──▶ your wallet ──USDC on Base──▶ recipient │ ├─ under auto-max → executes from your capped on-chain allowance ├─ in the ask band → you approve in your own wallet (one link) └─ over the limits → blocked, agent is told whyclaude mcp add --transport http veyra https://veyra.money/api/mcp \ --header "Authorization: Bearer veyra_..."{ "mcpServers": { "veyra": { "url": "https://veyra.money/api/mcp", "headers": { "Authorization": "Bearer veyra_..." } } }}export VEYRA_TOKEN=veyra_...codex mcp add veyra --url https://veyra.money/api/mcp --bearer-token-env-var VEYRA_TOKEN{ "mcpServers": { "veyra": { "command": "npx", "args": ["-y", "veyra-mcp"], "env": { "VEYRA_TOKEN": "veyra_..." } } }}curl -s https://veyra.money/api/mcp \ -H "Authorization: Bearer veyra_..." \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_budget","arguments":{}}}'npm install veyra-mcpimport { VeyraClient, VeyraToolError, idempotencyKey, movedRealMoney, paymentOutcome,} from "veyra-mcp";
const veyra = new VeyraClient({ token: process.env.VEYRA_TOKEN! });
const budget = await veyra.getBudget();console.log(`spent ${budget.spent_today} of ${budget.daily_limit} USDC today`);
const payment = await veyra.createPayment({ amount: "1.25", recipient: "0x1234…abcd", // USDC on Base reason: "Weather API, 500 calls", idempotency_key: idempotencyKey("weather"),});
switch (paymentOutcome(payment)) { case "settled": // The only case where value actually moved. console.log("paid —", (await veyra.getPayment(payment.payment_id)).tx_ref); break; case "simulated": console.log("settled on the simulated rail; no money moved"); break; case "awaiting_approval": { console.log("owner must approve:", payment.next_action?.url); const settled = await veyra.waitForPayment(payment.payment_id); console.log(movedRealMoney(settled) ? "paid" : paymentOutcome(settled)); break; } case "blocked": console.log("policy refused it:", payment.policy_reason); break;}try { await veyra.createPayment({ /* … */ });} catch (e) { if (e instanceof VeyraToolError) { console.log(e.code, e.message); // VALIDATION_ERROR, UNKNOWN_CREDENTIAL, NOT_FOUND } else throw e;}npm installnpm test # builds, then runs the suite against a local mock of the endpoint