Midtrans for your agents.
Connect Midtrans once and every agent you run inside Even (Claude Code, Codex, OpenCode, Even Agents) can use it: 7 curated tools, discovered on demand, with your key stored on your machine and every call going direct to Midtrans.
What agents can do with Midtrans
Curated for agents: the calls that matter, with schemas and descriptions written for tool use, not an endpoint dump.
midtrans_create_snap_tokenCreate a Snap transaction token for the hosted checkout page. Returns the token and redirect URL.
midtrans_get_transaction_statusGet the full transaction status by the order ID you provided when creating it.
midtrans_cancel_transactionCancel a pending transaction by order ID.
midtrans_refund_transactionRefund a transaction by order ID with the refund amount and reason.
midtrans_approve_transactionApprove a transaction that is in the challenge state.
midtrans_charge_core_apiCharge a transaction directly (no Snap page). `payment_type` is the payment method, e.g. credit_card, gopay, bank_transfer.
midtrans_capture_transactionCapture a pre-authorized transaction by order ID.
Connect it in a minute
The connect flow is agent-driven: Even opens the key page in its own browser and collects the key through a secure native field. It never passes through the chat.
- Paste the prompt below into any agent running inside Even, or click Connect in Even's catalog.
- Log into the Midtrans dashboard and go to Settings > Configuration.
- Copy your Server Key.
- Use the server key as the username in basic auth. The password is left empty.
- Paste the key into Even's secure field. Even verifies it and your agents are live.
Connect Midtrans to Even: call connect_begin("midtrans") on the even-connect MCP and walk me through it.
Create payment tokens in Midtrans, retrieve transaction status, and process refunds or approvals for Southeast Asian payments.
More Even Connect services
One MCP server, a handful of meta-tools, every service below. Agents search for the right tool at run time, so context stays lean.