{"name":"io.github.codespar/mcp-braspag","slug":"codespar-mcp-braspag","title":null,"description":"MCP server for Braspag — Cielo orchestration, token vault (Cartão Protegido), recurrence, split","url":"https://mcp.market/server/codespar-mcp-braspag","rating":null,"grade":"B","score":82,"certified":false,"status":"active","category":"ecommerce","tags":["ecommerce"],"presence":{"score":45,"stars":271,"forks":50,"downloads_week":25,"last_push_at":"2026-08-29T02:02:48.000Z","license":"MIT"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/codespar/mcp-dev-latam","website":null,"version":"0.2.2","remotes":[],"packages":[{"registryType":"npm","identifier":"@codespar/mcp-braspag","version":"0.2.2","transport":{"type":"stdio"},"environmentVariables":[{"description":"Braspag MerchantId (UUID)","isRequired":true,"format":"string","isSecret":true,"name":"BRASPAG_MERCHANT_ID"},{"description":"Braspag MerchantKey (secret)","isRequired":true,"format":"string","isSecret":true,"name":"BRASPAG_MERCHANT_KEY"},{"description":"Environment: 'sandbox' or 'production'. Defaults to 'sandbox'.","format":"string","name":"BRASPAG_ENV"}]}],"tools":[{"name":"capture_sale","description":"Capture a pre-authorized sale (PUT /sales/{paymentId}/capture). Supports partial capture via amount, and optional serviceTaxAmount (airline / travel merchants).","write_action":false,"price_micros":0,"input_schema":null},{"name":"create_antifraud_analysis","description":"Submit a standalone Antifraud analysis (POST /fraudanalysis) through Braspag's antifraud orchestration (Cybersource Decision Manager or Konduto, depending on merchant wiring). Use when the merchant wants to run a sub-analysis without attaching it to a capture — for example to pre-score a cart. For inline-in-sale antifraud, include the FraudAnalysis block inside create_sale's Payment.","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_boleto_sale","description":"Convenience wrapper to create a Boleto sale (POST /sales with Payment.Type=Boleto). Returns BarCodeNumber, DigitableLine, ExpirationDate, and Url for the rendered boleto. Provider is typically 'Bradesco2', 'Santander2', 'BancoDoBrasil2', or 'Simulado' (sandbox).","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_pix_sale","description":"Convenience wrapper to create a Pix sale (POST /sales with Payment.Type=Pix). Returns a QrCodeBase64Image and QrCodeString (Pix copia e cola) that the merchant can display. Braspag confirms payment asynchronously via webhook (Notification URL must be configured at merchant level).","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_recurrent","description":"Create a recurrent payment schedule (POST /recurrentPayments). Used for subscriptions and any schedule where Braspag (not the merchant) drives the recurrence.","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_sale","description":"Create a sale on the Braspag Transaction API (POST /sales). Pass a full Braspag sale payload. Payment.Type may be CreditCard, DebitCard, Boleto, Pix, or EletronicTransfer. Braspag orchestrates routing across multiple acquirers based on merchant-level rules.","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_sale_3ds","description":"Create a 3DS-authenticated credit sale (POST /sales). Same endpoint as create_sale but the CreditCard object carries ExternalAuthentication (Cavv, Xid/Eci, Version, ReferenceId) produced by a prior 3DS 2.0 flow. Use when the merchant already ran Braspag's 3DS 2.0 authentication (bp.mpi.braspag.com.br) and now wants to authorize the transaction with liability shift.","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_split_capture","description":"Capture a previously authorized split sale with overridden per-sub-merchant amounts (PUT /sales/{paymentId}/capture with a SplitPayments body). Use when the original split mix needs adjusting at capture time (e.g. partial shipment from one seller).","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_split_sale","description":"Create a sale with marketplace split rules (POST /sales with Payment.SplitPayments). Same endpoint as create_sale, but exposes the split array shape explicitly: each element has a SubordinateMerchantId, Amount (cents), Fares { Mdr, Fee }. Use for marketplace / multi-seller scenarios where Braspag splits the capture across sub-merchants.","write_action":true,"price_micros":0,"input_schema":null},{"name":"create_zero_auth","description":"Zero-dollar authorization / card validation (POST /zeroauth). Braspag routes a $0 (or minimum-amount) authorization through the acquirer to confirm the card is live and not blocked, without committing funds. Returns Valid=true/false plus ReturnCode/ReturnMessage. Useful before saving a card-on-file for future recurrence.","write_action":true,"price_micros":0,"input_schema":null},{"name":"delete_card_token","description":"Delete a Cartão Protegido vault token (DELETE /card/{token}). After deletion the token can no longer be used to create sales. Use when the cardholder requests removal or the card has been reported stolen.","write_action":true,"price_micros":0,"input_schema":null},{"name":"disable_recurrent","description":"Deactivate a recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/Deactivate). Stops future charges; does not refund historical ones.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_card_token","description":"Retrieve the stored card data associated with a Cartão Protegido token (GET /card/{token}). Returns masked card fields + brand + expiration.","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_recurrent","description":"Get a recurrent payment's configuration and history (GET /recurrentPayments/{recurrentPaymentId} — Query API).","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_sale","description":"Get sale detail by PaymentId (GET /sales/{paymentId} — Query API).","write_action":false,"price_micros":0,"input_schema":null},{"name":"get_sale_by_order_id","description":"Look up sale(s) by MerchantOrderId (GET /sales?merchantOrderId=X — Query API). Returns an array of PaymentIds matching the merchant order.","write_action":true,"price_micros":0,"input_schema":null},{"name":"reactivate_recurrent","description":"Reactivate a previously deactivated recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/Reactivate). Resumes future scheduled charges from the next configured date.","write_action":false,"price_micros":0,"input_schema":null},{"name":"tokenize_card","description":"Tokenize a card into the Braspag vault / Cartão Protegido (POST /card). Returns a reusable token that can substitute CardNumber on future sales — reduces PCI scope and enables cross-acquirer reuse.","write_action":false,"price_micros":0,"input_schema":null},{"name":"update_recurrent_amount","description":"Update the charged amount on a recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/Amount). Body carries the new amount in cents.","write_action":true,"price_micros":0,"input_schema":null},{"name":"update_recurrent_next_payment","description":"Update the NextPaymentDate on a recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/NextPaymentDate). Useful to skip a cycle or realign billing dates. Body carries the new date in YYYY-MM-DD.","write_action":true,"price_micros":0,"input_schema":null},{"name":"update_recurrent_payment","description":"Update the Payment (CreditCard + Customer) on a recurrent schedule (PUT /recurrentPayments/{recurrentPaymentId}/Payment). Used when the card on file expires or the customer updates their payment method. Pass the full replacement Payment object.","write_action":true,"price_micros":0,"input_schema":null},{"name":"void_sale","description":"Void / cancel a sale (PUT /sales/{paymentId}/void). Supports full void (omit amount) or partial void.","write_action":false,"price_micros":0,"input_schema":null}],"scan":{"score":82,"grade":"B","scanned_at":"2026-09-26T21:19:08.640Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-26T21:19:08.612Z","components":{"code":{"score":25,"max":25,"notes":["3 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":6,"max":15,"notes":["static API keys via environment variables"]},"maintenance":{"score":15,"max":15,"notes":["last push 29 days ago"]},"identity":{"score":7,"max":10,"notes":["registry namespace matches repository owner"]}},"findings":[],"inputs":{"packages":[{"registryType":"npm","identifier":"@codespar/mcp-braspag","version":"0.2.2","found":true,"license":"MIT","hasInstallScripts":false,"dependencyCount":1,"publishedAt":"2026-06-22T18:43:12.564Z","weeklyDownloads":25}],"repo":{"found":true,"owner":"codespar","repo":"mcp-dev-latam","archived":false,"pushedAt":"2026-08-29T02:02:48Z","stars":271,"forks":50,"openIssues":10,"ownerType":"Organization","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/269058982?v=4","ownerCreatedAt":"2026-03-18T00:40:56Z","license":"MIT"},"icon":{"url":"https://avatars.githubusercontent.com/u/269058982?v=4&s=128","source":"github"},"presence":{"stars":271,"forks":50,"downloadsWeek":25,"license":"MIT","lastPushAt":"2026-08-29T02:02:48.000Z","score":45}}}},"grade_history":[],"reviews":[]}