sales
Braintree CLI for Coding Agents
Use the Braintree CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write Bearer token auth
Braintree CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The Braintree CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Braintree CLI for Coding Agents
kosmokrator integrations:configure braintree --set access_token="$BRAINTREE_ACCESS_TOKEN" --set merchant_id="$BRAINTREE_MERCHANT_ID" --enable --read allow --write ask --json
kosmo integrations:call braintree.braintree_list_transactions '{"limit":1,"page":1,"status":"example_status"}' --json Discovery Before Execution
Agents and scripts can inspect Braintree docs and schemas before choosing a function.
kosmo integrations:docs braintree --json
kosmo integrations:docs braintree.braintree_list_transactions --json
kosmo integrations:schema braintree.braintree_list_transactions --json
kosmo integrations:search "Braintree" --json
kosmo integrations:list --json Useful Braintree CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
braintree.braintree_list_transactions | Read | limit, page, status | List payment transactions for the Braintree merchant. Returns transaction details including amount, status, payment method, and customer info. |
braintree.braintree_get_transaction | Read | id | Retrieve a single Braintree transaction by its ID. Returns full transaction details including amount, status, payment instrument, and settlement info. |
braintree.braintree_list_customers | Read | limit, page | List customers stored in Braintree. Returns customer details including name, email, phone, and payment methods. |
braintree.braintree_get_customer | Read | id | Retrieve a single Braintree customer by ID. Returns full customer details including contact info, payment methods, and addresses. |
braintree.braintree_list_plans | Read | limit, page | List recurring billing plans configured in Braintree. Returns plan details including billing cycle, price, and trial period. |
braintree.braintree_get_plan | Read | id | Retrieve a single Braintree recurring billing plan by ID. Returns plan details including billing cycle, price, and trial period. |
braintree.braintree_get_current_user | Read | none | Get the current Braintree merchant account information. Returns merchant details including business name, currency, and account status. |
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.