@codespar/mcp-banco-do-brasil 0.1.0-alpha.1 → 0.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/server.json +15 -6
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -8,23 +8,23 @@ BB exposes one of the broadest public-bank API surfaces in the country across Pi
|
|
|
8
8
|
|
|
9
9
|
BB's Developer Portal is **contract-gated** — the full OpenAPI specs are visible only after merchant onboarding. Pix paths follow the BACEN Pix v2 standard; boleto, account, and statement paths are best-guesses based on BB's public marketing pages and conventions shared with peers (Itaú, Santander, Bradesco). Every unverified path is flagged `TODO(verify)` in `src/index.ts`. Pin to exact versions during `0.1.x`.
|
|
10
10
|
|
|
11
|
-
## Tools (
|
|
11
|
+
## Tools (13)
|
|
12
12
|
|
|
13
13
|
| Tool | Purpose |
|
|
14
14
|
|---|---|
|
|
15
|
-
| `create_pix_cob` | Create immediate Pix charge (cob) |
|
|
16
|
-
| `get_pix_cob` |
|
|
17
|
-
| `list_pix_cob` | List immediate Pix charges by date range |
|
|
18
|
-
| `create_pix_devolucao` | Refund a received Pix
|
|
19
|
-
| `get_pix_devolucao` | Retrieve a devolução by id |
|
|
20
|
-
| `resolve_dict_key` | Resolve a DICT key to account data |
|
|
21
|
-
| `register_dict_key` | Register a DICT key on a BB account |
|
|
22
|
-
| `delete_dict_key` | Delete a DICT key owned by the merchant |
|
|
23
|
-
| `register_boleto` | Issue a boleto via BB Cobranças |
|
|
24
|
-
| `get_boleto` | Retrieve a boleto by nosso_numero |
|
|
25
|
-
| `cancel_boleto` | Cancel (baixa) an outstanding boleto |
|
|
26
|
-
| `get_account_balance` |
|
|
27
|
-
| `get_statement` |
|
|
15
|
+
| `create_pix_cob` | Create an immediate Pix charge (cob) with QR code. |
|
|
16
|
+
| `get_pix_cob` | Retrieve an immediate Pix charge by its txid. |
|
|
17
|
+
| `list_pix_cob` | List immediate Pix charges (cob) by date range. |
|
|
18
|
+
| `create_pix_devolucao` | Refund (devolução) a previously received Pix. |
|
|
19
|
+
| `get_pix_devolucao` | Retrieve a Pix devolução by its endToEndId + refund id. |
|
|
20
|
+
| `resolve_dict_key` | Resolve a DICT key (CPF, CNPJ, email, phone, EVP) to the owner's account data before sending a Pix. |
|
|
21
|
+
| `register_dict_key` | Register a DICT key on a BB account owned by the merchant. |
|
|
22
|
+
| `delete_dict_key` | Delete a DICT key owned by the merchant. |
|
|
23
|
+
| `register_boleto` | Issue a boleto via BB Cobranças. |
|
|
24
|
+
| `get_boleto` | Retrieve a boleto by nosso_numero. |
|
|
25
|
+
| `cancel_boleto` | Cancel (baixa) an outstanding boleto before payment. |
|
|
26
|
+
| `get_account_balance` | Retrieve the current balance of a BB conta-corrente (checking) account. |
|
|
27
|
+
| `get_statement` | Retrieve account statement transactions for a BB conta-corrente over a date range. |
|
|
28
28
|
|
|
29
29
|
## Install
|
|
30
30
|
|
|
@@ -55,6 +55,10 @@ BB_ENV="sandbox" # or "production" (default: sandbox)
|
|
|
55
55
|
npx @codespar/mcp-banco-do-brasil
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
## Enterprise
|
|
59
|
+
|
|
60
|
+
Need governance, budget limits, and audit trails for agent payments? [CodeSpar Enterprise](https://codespar.dev/enterprise) adds policy engine, payment routing, and compliance templates on top of these MCP servers.
|
|
61
|
+
|
|
58
62
|
## License
|
|
59
63
|
|
|
60
64
|
MIT
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ async function bbRequest(method, path, body) {
|
|
|
172
172
|
}
|
|
173
173
|
return res.json();
|
|
174
174
|
}
|
|
175
|
-
const server = new Server({ name: "mcp-banco-do-brasil", version: "0.1.0-alpha.
|
|
175
|
+
const server = new Server({ name: "mcp-banco-do-brasil", version: "0.1.0-alpha.2" }, { capabilities: { tools: {} } });
|
|
176
176
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
177
177
|
tools: [
|
|
178
178
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-banco-do-brasil",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "MCP server for Banco do Brasil — Brazil's top public bank. Pix, Cobrança (boleto), Conta-Corrente, and Arrecadação via BB's Developer Portal APIs (OAuth2 + mTLS).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"open-finance",
|
|
32
32
|
"brazil"
|
|
33
33
|
],
|
|
34
|
-
"mcpName": "io.github.codespar/banco-do-brasil"
|
|
34
|
+
"mcpName": "io.github.codespar/mcp-banco-do-brasil"
|
|
35
35
|
}
|
package/server.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
-
"name": "io.github.codespar/banco-do-brasil",
|
|
4
|
-
"description": "MCP server for Banco do Brasil —
|
|
3
|
+
"name": "io.github.codespar/mcp-banco-do-brasil",
|
|
4
|
+
"description": "MCP server for Banco do Brasil — Pix, Cobrança (boleto), Conta-Corrente, Arrecadação (OAuth2 + mTLS)",
|
|
5
5
|
"repository": {
|
|
6
|
-
"url": "https://github.com/codespar/mcp-dev-
|
|
6
|
+
"url": "https://github.com/codespar/mcp-dev-latam",
|
|
7
7
|
"source": "github",
|
|
8
8
|
"subfolder": "packages/banking/banco-do-brasil"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.1.0-alpha.
|
|
10
|
+
"version": "0.1.0-alpha.3",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@codespar/mcp-banco-do-brasil",
|
|
15
|
-
"version": "0.1.0-alpha.
|
|
15
|
+
"version": "0.1.0-alpha.3",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -61,5 +61,14 @@
|
|
|
61
61
|
}
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"provider": {
|
|
66
|
+
"homepage": "https://www.bb.com.br",
|
|
67
|
+
"logoUrl": "https://logo.clearbit.com/bb.com.br",
|
|
68
|
+
"logoFallback": "https://www.google.com/s2/favicons?domain=bb.com.br&sz=128",
|
|
69
|
+
"docsUrl": "https://developers.bb.com.br",
|
|
70
|
+
"sandbox": {
|
|
71
|
+
"available": true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
65
74
|
}
|
package/src/index.ts
CHANGED
|
@@ -197,7 +197,7 @@ async function bbRequest(method: string, path: string, body?: unknown): Promise<
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
const server = new Server(
|
|
200
|
-
{ name: "mcp-banco-do-brasil", version: "0.1.0-alpha.
|
|
200
|
+
{ name: "mcp-banco-do-brasil", version: "0.1.0-alpha.2" },
|
|
201
201
|
{ capabilities: { tools: {} } }
|
|
202
202
|
);
|
|
203
203
|
|