Flujo de ejemplo
Una sesión típica de agente: descubrir, registrar, financiar, pedir, gestionar.
// 1. Discover plans (no auth)
list_plans()
// 2. Create an account ONCE (real email) → token, reusable for 5 years.
// Inside an MCP session it is remembered automatically. With raw HTTP/curl:
// save it to a file and send "Authorization: Bearer <token>" on EVERY request.
// Never register again to "get a new token" — that creates another account.
register_account({ first_name, last_name, email }) → { token, token_expires_at }
set_password({ password }) // optional backup: later login({ email, password })
// 3. (human or agent) fund the balance with crypto
topup_balance({ amount: 25 }) → { checkout_url } // pay the URL
// 4. Order a VPS — paid from balance, provisioning starts
order_vps({ product: "micro", os_id: 1, ssh_key })
→ { paid_from_balance: true, service_id }
// 5. Poll every ~20 s. The first boot applies OS updates (SSH usually opens in 1-5 min);
// access.command appears only when access.ssh_ready is true.
get_vps_status({ service_id }) → { status: "active", access: { ssh_ready: true, command } }Véase también: Docker Compose for AI agents
Comentarios
Aún no hay comentarios. Sé el primero.