# xenarch-mcp

Xenarch, the payment network.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add xenarch/xenarch-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list xenarch/xenarch-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get xenarch/xenarch-mcp xenarch_check_gate

# Call a tool
npx -y @smithery/cli@latest tool call xenarch/xenarch-mcp xenarch_check_gate '{}'
```

## Direct MCP Connection

Endpoint: `https://xenarch-mcp--xenarch.run.tools`

**Optional config:**
- `privateKey` (query) — Wallet private key (hex, 0x-prefixed). Auto-generates on first run if omitted.
- `rpcUrl` (query) — Base RPC endpoint URL
- `network` (query) — Network for payments
- `autoApproveMaxUsd` (query) — Max USD to auto-approve without prompting

## Tools (3)

- `xenarch_check_gate` — Check if a URL or domain has a Xenarch payment gate. Returns pricing, payment instructions, and gate details.
- `xenarch_pay` — Pay for gated content or a service via Xenarch. Executes a USDC micropayment on Base through the splitter contract. Ret…
- `xenarch_get_history` — View your Xenarch payment history. Shows past micropayments made by this wallet, optionally filtered by domain.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get xenarch/xenarch-mcp <tool-name>
```

## Resources

- `xenarch://pricing` — How Xenarch micropayments work: pricing model, supported networks, and payment flow.

## Prompts (1)

- `pay-for-content` (url) — Step-by-step guide for paying to access gated content via Xenarch
