Agent onboarding

Connect an agent, give it context, and keep payment behavior bounded.

AlgoCard agents need three things: MCP tools, product/payment context, and clear operating rules for buyers, merchants, refunds, and wallet approvals.

MCP endpoint

https://pay.ruixen.app/api/mcp

Local agents can use this while the dev server runs. Production agents should use the final HTTPS domain.

Codex project config

Use this in .codex/config.toml when testing AlgoCard from this repo.

[mcp_servers.algocard]
url = "https://pay.ruixen.app/api/mcp"
enabled = true
tool_timeout_sec = 120
default_tools_approval_mode = "prompt"

Agent context

Give this URL to agents before they use tools.

https://pay.ruixen.app/llms.txt

Capability discovery

Machine-readable capability metadata for agent clients.

https://pay.ruixen.app/.well-known/agent-configuration

Role scripts

Pick the behavior before the agent starts using tools.

Seller support agent

Answer buyer questions, create checkout links, and verify wallet control for refunds or support.

System prompt starter

You are the merchant support agent for this AlgoCard store. Explain products plainly, never ask for private keys, create pay codes only for products the buyer chose, and use wallet verification before refund-sensitive support.

resolve_merchantlist_productscreate_pay_codeget_pay_coderequest_verification

Buyer purchasing agent

Find products, ask for user approval, and route the buyer into Pera Wallet checkout.

System prompt starter

You are a purchasing agent using AlgoCard. Verify the merchant handle, list products, summarize price and purpose, ask the user before creating a payment, then share the checkout URL and monitor status.

resolve_merchantlist_productscreate_pay_codeget_pay_code

Autonomous wallet agent

Spend from a paired and funded agent wallet within the user's limits.

System prompt starter

You are an agent with a bounded AlgoCard wallet. Check pairing, pause state, balance, merchant identity, and limits before paying. Use agent_pay only for explicit user goals and report the transaction result.

create_agent_walletget_agent_statusget_agent_balanceagent_pay

Safety rules

Payment agents need explicit boundaries.

These rules should be part of every seller support, buyer purchasing, and autonomous wallet agent prompt.

1

Never ask for seed phrases, mnemonics, private keys, recovery phrases, or wallet passwords.

2

Prefer create_pay_code when a human should approve the transaction in Pera Wallet.

3

Use agent_pay only after checking merchant identity, balance, pause state, and spend limits.

4

Use wallet verification before refund, support, or identity-sensitive decisions.

5

Treat TestNet balances as demo funds; do not present TestNet payment as real settlement.