mcp-pagbrasil

v0.1.0
io.github.codespar/mcp-pagbrasil Checked 9 hours ago Published 5 months ago

PagBrasil — cross-border acquiring into Brazil: Pix, Boleto Flash, refunds

Values you need

VariableWhat it is
PAGBRASIL_PBTOKENrequired secret Merchant token (pbtoken) from the PagBrasil Dashboard
PAGBRASIL_SECRETrequired secret Secret phrase from the PagBrasil Dashboard
PAGBRASIL_BASE_URLoptional API base URL. Defaults to https://sandbox.pagbrasil.com/api; production hosts are issued per-merchant.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-pagbrasil -e 'PAGBRASIL_PBTOKEN=<PAGBRASIL_PBTOKEN>' -e 'PAGBRASIL_SECRET=<PAGBRASIL_SECRET>' -- npx -y @codespar/mcp-pagbrasil@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-pagbrasil": {
      "args": [
        "-y",
        "@codespar/mcp-pagbrasil@0.1.0"
      ],
      "command": "npx",
      "env": {
        "PAGBRASIL_PBTOKEN": "<PAGBRASIL_PBTOKEN>",
        "PAGBRASIL_SECRET": "<PAGBRASIL_SECRET>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-pagbrasil": {
      "args": [
        "-y",
        "@codespar/mcp-pagbrasil@0.1.0"
      ],
      "command": "npx",
      "env": {
        "PAGBRASIL_PBTOKEN": "<PAGBRASIL_PBTOKEN>",
        "PAGBRASIL_SECRET": "<PAGBRASIL_SECRET>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PAGBRASIL_PBTOKEN",
      "id": "pagbrasil-pbtoken",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "PAGBRASIL_SECRET",
      "id": "pagbrasil-secret",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-pagbrasil": {
      "args": [
        "-y",
        "@codespar/mcp-pagbrasil@0.1.0"
      ],
      "command": "npx",
      "env": {
        "PAGBRASIL_PBTOKEN": "${input:pagbrasil-pbtoken}",
        "PAGBRASIL_SECRET": "${input:pagbrasil-secret}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-pagbrasil]
command = "npx"
args = ["-y", "@codespar/mcp-pagbrasil@0.1.0"]
env = { "PAGBRASIL_PBTOKEN" = "<PAGBRASIL_PBTOKEN>", "PAGBRASIL_SECRET" = "<PAGBRASIL_SECRET>" }

For AI agents

  1. Ask the user for: PAGBRASIL_PBTOKEN, PAGBRASIL_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: create_order, get_order, refund_order.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json