mcp-pomelo

v0.1.1
io.github.codespar/mcp-pomelo Checked 5 days ago Published 2 months ago

MCP server for Pomelo — pan-LATAM card issuing: users, virtual/physical cards, transactions

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_user

Create a card-holder identity (POST /users/v1). The user is the person or business the card is issued to. Pass the Pomelo user shape for the target country (name, surname, identification_type/value, birthdate, address, email, phone).

ParameterTypeDescription
identification_type *stringCountry document type (e.g. DNI, CPF, CURP, CC)
identification_value *stringDocument number
name *stringGiven name
operation_country *stringISO-3 country of operation (e.g. ARG, BRA, MEX, COL)
surname *stringFamily name
addressobjectResidential address: street_name, street_number, zip_code, city, region, country (ISO-3)
birthdatestringYYYY-MM-DD
emailstringEmail address
extraobjectAny additional Pomelo user fields, merged into the payload
genderstringMALE | FEMALE | OTHER (country-dependent requirement)
idempotency_keystringOptional idempotency key. Auto-generated when omitted.
phonestringPhone in international format

get_user

Fetch a user by id (GET /users/v1/{id}).

ParameterTypeDescription
user_id *stringPomelo user id (usr-...)

update_user

Patch a user (PATCH /users/v1/{id}). Pass only the fields to change (e.g. status ACTIVE | BLOCKED, email, phone, address).

ParameterTypeDescription
patch *objectFields to update, Pomelo user shape
user_id *stringPomelo user id (usr-...)
idempotency_keystringOptional idempotency key. Auto-generated when omitted.

create_card

Issue a card for a user (POST /cards/v1). card_type VIRTUAL is usable immediately; PHYSICAL enters embossing/shipping and must be activated on receipt. affinity_group_id selects the card program (BIN, art, limits) configured with Pomelo.

ParameterTypeDescription
affinity_group_id *stringCard program id (afg-...)
card_type *stringCard form factor
user_id *stringOwner user id (usr-...)
addressobjectShipping address for PHYSICAL cards (street_name, street_number, zip_code, city, region, country)
extraobjectAny additional Pomelo card fields, merged into the payload
idempotency_keystringOptional idempotency key. Auto-generated when omitted.

get_card

Fetch a card by id (GET /cards/v1/{id}). Returns masked PAN, status, type and program data — never full card credentials.

ParameterTypeDescription
card_id *stringPomelo card id (crd-...)

list_cards

List cards (GET /cards/v1), filterable by user and status. Paginated.

ParameterTypeDescription
pagenumberPage number (0-based)
sizenumberPage size
statusstringFilter by status (e.g. ACTIVE, BLOCKED, DISABLED)
user_idstringFilter by owner user id

update_card_status

Change a card's lifecycle status (PATCH /cards/v1/{id}): ACTIVE to unblock/activate, BLOCKED to freeze, DISABLED to cancel permanently. status_reason is required by Pomelo for blocks (e.g. CLIENT_INTERNAL_REASON, LOST, STOLEN).

ParameterTypeDescription
card_id *stringPomelo card id (crd-...)
status *stringTarget status
idempotency_keystringOptional idempotency key. Auto-generated when omitted.
status_reasonstringReason code (required for BLOCKED/DISABLED)

list_transactions

Search the card-transactions feed (GET /transactions/v1), filterable by card, user and time window. Paginated.

ParameterTypeDescription
card_idstringFilter by card id
fromstringISO-8601 start of window
pagenumberPage number (0-based)
sizenumberPage size
tostringISO-8601 end of window
user_idstringFilter by user id

get_transaction

Fetch a single card transaction by id (GET /transactions/v1/{id}).

ParameterTypeDescription
transaction_id *stringPomelo transaction id (ctx-...)