Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.codespar/mcp-braspag

NPM · @CODESPAR/MCP-BRASPAG · SCANNED AUG 4

MCP server for Braspag — Cielo orchestration, token vault (Cartão Protegido), recurrence, split

+24 this week 69 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security86
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability74
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 2590 tokens (~117/item across 22 items; 22 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
  • Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · @codespar/mcp-braspag

# add to Claude Code
claude mcp add codespar-mcp-braspag -- npx -y @codespar/mcp-braspag
# add to Codex CLI
codex mcp add codespar-mcp-braspag -- npx -y @codespar/mcp-braspag
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codespar-mcp-braspag": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@codespar/mcp-braspag"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add codespar-mcp-braspag --command npx --arg -y --arg @codespar/mcp-braspag
# ~/.hermes/config.yaml
mcp_servers:
  codespar-mcp-braspag:
    command: "npx"
    args: ["-y", "@codespar/mcp-braspag"]
// mcp.json
{
  "mcpServers": {
    "codespar-mcp-braspag": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-braspag"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Aug 26 +4
    • Stability: unverified → 0.27 functional
  • 2 Aug 26 +7
    • Schema quality: unverified → excellent functional
  • 1 Aug 26 +53
    • Provenance: unverified → fail security
    • Malware scan: unverified → pass security
    • Install scripts: unverified → pass security
    • Known CVEs: unverified → partial security
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • Tool coverage: unverified → 100 functional
    • License: unverified → pass functional
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Dependency health: unverified → partial functional
    • Licence: MIT functional
  • 31 Jul 26 −40
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 27 Jul 26 45

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 4 Aug 2026 · Analysed npm/@codespar/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 94 packages

94 packages in the resolved dependency tree · 94 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 22 exposed · ~2,523 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
capture_sale ~91

Capture a pre-authorized sale (PUT /sales/{paymentId}/capture). Supports partial capture via amount, and optional serviceTaxAmount (airline / travel merchants).

NameTypeReqDescription
amountnumberAmount to capture in cents. Omit for full capture.
payment_idstringyesBraspag PaymentId (GUID)
service_tax_amountnumberService tax amount in cents. Optional.

No output schema declared.

No examples provided.

create_antifraud_analysis ~312

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.

NameTypeReqDescription
BrowserobjectBrowser metadata (CookiesAccepted, Email, HostName, etc.). Optional.
CartobjectCart with Items array (GiftCategory, HostHedge, Name, Quantity, Sku, UnitPrice, ...). Optional but improves scoring.
FingerPrintIdstringDevice fingerprint id collected on the merchant page. Optional but strongly recommended.
MerchantDefinedFieldsarrayArray of { Id, Value } for merchant-defined signals. Optional.
MerchantOrderIdstringyesMerchant-side order id
ProviderstringyesAntifraud provider: 'Cybersource' or 'Konduto'
Sequencestring'AnalyseFirst' (default) or 'AuthorizeFirst'. Optional.
SequenceCriteriastring'OnSuccess' or 'Always'. Optional.
ShippingobjectShipping address + method + price. Optional.
TotalOrderAmountnumberyesTotal order amount in cents
TravelobjectTravel-specific antifraud block (airline, hotel). Optional.

No output schema declared.

No examples provided.

create_boleto_sale ~161

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).

NameTypeReqDescription
CustomerobjectyesCustomer object. For boleto, Identity (CPF/CNPJ) and Address are required by most providers.
MerchantOrderIdstringyesMerchant-side order id
PaymentobjectyesBoleto payment object: { Type: 'Boleto', Amount, Provider, BoletoNumber?, Assignor?, Demonstrative?, ExpirationDate (YYYY-MM-DD), Identification?, Instructions? }.

No output schema declared.

No examples provided.

create_pix_sale ~138

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).

NameTypeReqDescription
CustomerobjectyesCustomer object. Identity (CPF/CNPJ) is required by many PSPs on Pix.
MerchantOrderIdstringyesMerchant-side order id
PaymentobjectyesPix payment object: { Type: 'Pix', Amount, QrCodeExpiration? (seconds), AdditionalDataPix? }.

No output schema declared.

No examples provided.

create_recurrent ~119

Create a recurrent payment schedule (POST /recurrentPayments). Used for subscriptions and any schedule where Braspag (not the merchant) drives the recurrence.

NameTypeReqDescription
CustomerobjectyesCustomer object
MerchantOrderIdstringyesMerchant-side order id
RecurrentPaymentobjectyesRecurrent-specific fields: AuthorizeNow, StartDate, EndDate, Interval (Monthly | Bimonthly | Quarterly | SemiAnnual | Annual), Amount, CreditCard, etc. Pass the full Braspag RecurrentPayment shape.

No output schema declared.

No examples provided.

create_sale ~164

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.

NameTypeReqDescription
CustomerobjectyesCustomer identification (Braspag shape)
MerchantOrderIdstringyesMerchant-side order id (appears in reports)
PaymentobjectyesBraspag Payment object. Shape depends on Type. For CreditCard/DebitCard pass a CreditCard/DebitCard sub-object. For Boleto pass Provider/ExpirationDate. For Pix, Amount is enough. For EletronicTransf…

No output schema declared.

No examples provided.

create_sale_3ds ~184

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.

NameTypeReqDescription
CustomerobjectyesCustomer object (Braspag shape)
MerchantOrderIdstringyesMerchant-side order id
PaymentobjectyesBraspag Payment object with Type=CreditCard, Authenticate=true, and CreditCard.ExternalAuthentication { Cavv, Xid, Eci, Version, ReferenceId } filled from the 3DS 2.0 authenticate step.

No output schema declared.

No examples provided.

create_split_capture ~142

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).

NameTypeReqDescription
SplitPaymentsarrayyesOverride split mix at capture time. Each element: { SubordinateMerchantId, Amount (cents), Fares: { Mdr, Fee } }.
amountnumberTotal amount to capture in cents. Omit for full capture of all sub-merchants.
payment_idstringyesBraspag PaymentId (GUID) of the authorized split sale

No output schema declared.

No examples provided.

create_split_sale ~166

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.

NameTypeReqDescription
CustomerobjectyesCustomer object
MerchantOrderIdstringyesMerchant-side order id
PaymentobjectyesBraspag Payment object with SplitPayments array. Type is typically CreditCard. Each SplitPayments entry: { SubordinateMerchantId: string, Amount: number (cents), Fares: { Mdr: number (percent), Fee:…

No output schema declared.

No examples provided.

create_zero_auth ~171

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.

NameTypeReqDescription
BrandstringyesCard brand (Visa, Master, Elo, Amex, Hipercard, ...)
CardNumberstringyesCard PAN (or Cartão Protegido token)
CardTypestringCreditCard or DebitCard
ExpirationDatestringyesExpiration date (MM/YYYY)
HolderstringyesCardholder name
SecurityCodestringCVV. Optional depending on merchant config.

No output schema declared.

No examples provided.

delete_card_token ~69

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.

NameTypeReqDescription
tokenstringyesCartão Protegido vault token to delete

No output schema declared.

No examples provided.

disable_recurrent ~56

Deactivate a recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/Deactivate). Stops future charges; does not refund historical ones.

NameTypeReqDescription
recurrent_payment_idstringyesBraspag RecurrentPaymentId (GUID)

No output schema declared.

No examples provided.

get_card_token ~53

Retrieve the stored card data associated with a Cartão Protegido token (GET /card/{token}). Returns masked card fields + brand + expiration.

NameTypeReqDescription
tokenstringyesCartão Protegido vault token

No output schema declared.

No examples provided.

get_recurrent ~51

Get a recurrent payment's configuration and history (GET /recurrentPayments/{recurrentPaymentId} — Query API).

NameTypeReqDescription
recurrent_payment_idstringyesBraspag RecurrentPaymentId (GUID)

No output schema declared.

No examples provided.

get_sale ~41

Get sale detail by PaymentId (GET /sales/{paymentId} — Query API).

NameTypeReqDescription
payment_idstringyesBraspag PaymentId (GUID)

No output schema declared.

No examples provided.

get_sale_by_order_id ~63

Look up sale(s) by MerchantOrderId (GET /sales?merchantOrderId=X — Query API). Returns an array of PaymentIds matching the merchant order.

NameTypeReqDescription
merchant_order_idstringyesMerchant-side order id used when the sale was created

No output schema declared.

No examples provided.

reactivate_recurrent ~62

Reactivate a previously deactivated recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/Reactivate). Resumes future scheduled charges from the next configured date.

NameTypeReqDescription
recurrent_payment_idstringyesBraspag RecurrentPaymentId (GUID)

No output schema declared.

No examples provided.

tokenize_card ~123

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.

NameTypeReqDescription
BrandstringyesCard brand (Visa, Master, Elo, Amex, Hipercard, ...)
CardNumberstringyesCard PAN
CustomerNamestringyesCustomer full name
ExpirationDatestringyesExpiration date (MM/YYYY)
HolderstringyesCardholder name as printed

No output schema declared.

No examples provided.

update_recurrent_amount ~69

Update the charged amount on a recurrent payment (PUT /recurrentPayments/{recurrentPaymentId}/Amount). Body carries the new amount in cents.

NameTypeReqDescription
amountnumberyesNew amount in cents
recurrent_payment_idstringyesBraspag RecurrentPaymentId (GUID)

No output schema declared.

No examples provided.

update_recurrent_next_payment ~92

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.

NameTypeReqDescription
next_payment_datestringyesNew next payment date (YYYY-MM-DD)
recurrent_payment_idstringyesBraspag RecurrentPaymentId (GUID)

No output schema declared.

No examples provided.

update_recurrent_payment ~129

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.

NameTypeReqDescription
PaymentobjectyesNew Payment object for the recurrent schedule. Shape matches the Payment block of create_sale — typically { Type: 'CreditCard', CreditCard: { CardNumber, Holder, ExpirationDate, Brand, SecurityCode?…
recurrent_payment_idstringyesBraspag RecurrentPaymentId (GUID)

No output schema declared.

No examples provided.

void_sale ~67

Void / cancel a sale (PUT /sales/{paymentId}/void). Supports full void (omit amount) or partial void.

NameTypeReqDescription
amountnumberAmount to void in cents. Omit for full void.
payment_idstringyesBraspag PaymentId (GUID)

No output schema declared.

No examples provided.