finance
Mercado Pago CLI for CI
Use the Mercado Pago CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Bearer token auth
Mercado Pago CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. The Mercado Pago CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Mercado Pago CLI for CI
kosmokrator integrations:configure mercado-pago --set access_token="$MERCADO_PAGO_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call mercado-pago.mercado_pago_list_payments '{"limit":1,"offset":1,"external_reference":"example_external_reference","status":"example_status","date_created_from":"example_date_created_from","date_created_to":"example_date_created_to"}' --json Discovery Before Execution
Agents and scripts can inspect Mercado Pago docs and schemas before choosing a function.
kosmo integrations:docs mercado-pago --json
kosmo integrations:docs mercado-pago.mercado_pago_list_payments --json
kosmo integrations:schema mercado-pago.mercado_pago_list_payments --json
kosmo integrations:search "Mercado Pago" --json
kosmo integrations:list --json Useful Mercado Pago CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
mercado-pago.mercado_pago_list_payments | Read | limit, offset, external_reference, status, date_created_from, date_created_to | Search and list payments from Mercado Pago. Supports filtering by status, external reference, and date range. Returns a paginated list of payment records. |
mercado-pago.mercado_pago_get_payment | Read | id | Retrieve full details of a specific Mercado Pago payment by its ID. Returns payment status, amount, payer information, and more. |
mercado-pago.mercado_pago_create_payment | Write | transaction_amount, payment_method_id, payer_email, installments | Create a new payment in Mercado Pago. Requires the transaction amount, payment method ID, and payer email. Optionally specify the number of installments. |
mercado-pago.mercado_pago_list_customers | Read | email, limit, offset | Search and list customers in Mercado Pago. Optionally filter by email. Returns a paginated list of customer records. |
mercado-pago.mercado_pago_get_customer | Read | id | Retrieve full details of a specific Mercado Pago customer by their ID. Returns customer name, email, default card, and more. |
mercado-pago.mercado_pago_list_preferences | Read | limit, offset, sponsor_id | List checkout preferences from Mercado Pago. Returns a paginated list of checkout preference objects that define items, payer details, and payment settings. |
mercado-pago.mercado_pago_get_current_user | Read | none | Get the authenticated Mercado Pago user's account information, including name, email, and user ID. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.