$ openticket agents --help
Buy tickets programmatically_
Every ticket is discoverable and buyable by an agent — via MCP, paid from an agent wallet or hosted Stripe Checkout.
$ loading…
$ loading…
$ openticket agents --help
Every ticket is discoverable and buyable by an agent — via MCP, paid from an agent wallet or hosted Stripe Checkout.
$ loading…
$ loading…
# 0. install the skills — your agent learns the whole flow
npx skills add LucasLeguizamo/openticket-skills --copy
# 1. connect your agent (Claude Desktop, etc.)
{
"mcpServers": {
"openticket": {
"url": "https://open-ticket-ochre.vercel.app/api/mcp",
"headers": { "Authorization": "Bearer ot_live_demo_key_solo_para_test" }
}
}
}MCP server (streamable HTTP): https://open-ticket-ochre.vercel.app/api/mcp
# 2. tools
# 3. autonomous purchase (agent wallet)
An agent whose API key has a wallet loaded pays off_session — no browser, no checkout page. buy_ticket charges the wallet and issues the ticket in the same response: status: confirmed · paid: true. Without a wallet it falls back to hosted Stripe Checkout (pending_payment + checkout_url). Spend limits, idempotent retries and structured errors (sold_out · mandate_exceeded · payment_failed) apply either way.
# 4. emulate a purchase — hand this to any agent
Connect the server (step 1), then paste this prompt to your agent:
You have the OpenTicket MCP tools connected. Emulate a real purchase:
1. Call search_events and pick one event with an available ticket type.
2. Call buy_ticket with quantity 1, buyer_email "agent@test.com", a fresh
idempotency_key, and spend_limit { amount_minor: 5000, currency: "USD" }.
3. Show me the result: status, order_id, the ticket code and the ics_path.
This demo key has a wallet loaded, so buy_ticket pays autonomously and returns
status "confirmed" (paid: true) instantly — no browser, no checkout page.Or from a terminal:
# one-time: point otick at OpenTicket and paste the demo key export OPENTICKET_BASE_URL=https://open-ticket-ochre.vercel.app echo ot_live_demo_key_solo_para_test | otick login # emulate a purchase (wallet → confirmed instantly, no browser) otick events # grab a ticket_type id (tt_...) otick buy <tt_id> --limit 50USD --email agent@test.com
# 5. discovery without MCP
openticket v0.1 · rails: mcp ✓ · web ✓ · acp/x402/ap2 ⧗