@codespar/mcp-matera 0.2.0-alpha.1 → 0.2.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 +28 -16
- package/dist/index.js +4 -1
- package/package.json +1 -1
- package/server.json +14 -5
- package/src/index.ts +6 -1
package/README.md
CHANGED
|
@@ -63,20 +63,32 @@ Add to `.cursor/mcp.json` or `.vscode/mcp.json`:
|
|
|
63
63
|
}
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
## Tools
|
|
67
|
-
|
|
68
|
-
| Tool |
|
|
69
|
-
|
|
70
|
-
| `create_pix_charge_static` |
|
|
71
|
-
| `create_pix_charge_dynamic` |
|
|
72
|
-
| `get_pix_charge` | Retrieve a Pix charge by txid |
|
|
73
|
-
| `
|
|
74
|
-
| `
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
66
|
+
## Tools (22)
|
|
67
|
+
|
|
68
|
+
| Tool | Purpose |
|
|
69
|
+
|---|---|
|
|
70
|
+
| `create_pix_charge_static` | Create a static Pix charge (reusable QR code tied to a merchant Pix key). |
|
|
71
|
+
| `create_pix_charge_dynamic` | Create a dynamic Pix charge (single-use QR with expiration). |
|
|
72
|
+
| `get_pix_charge` | Retrieve a Pix charge (static or dynamic) by txid. |
|
|
73
|
+
| `list_pix_charges` | List immediate Pix charges (BCB /cob) with date and status filters. |
|
|
74
|
+
| `update_pix_charge` | Update an immediate Pix charge (BCB PATCH /cob/{txid}). |
|
|
75
|
+
| `create_pix_charge_due` | Create a due-dated Pix charge (BCB /cobv — Pix com Vencimento). |
|
|
76
|
+
| `get_pix_charge_due` | Retrieve a due-dated Pix charge (BCB GET /cobv/{txid}). |
|
|
77
|
+
| `create_pix_payment` | Initiate an outbound Pix transfer (ordem de pagamento). |
|
|
78
|
+
| `get_pix_payment` | Retrieve an outbound Pix payment by endToEndId. |
|
|
79
|
+
| `refund_pix_payment` | Refund (devolução) a Pix payment. |
|
|
80
|
+
| `list_pix_payments` | List outbound Pix payments with optional filters. |
|
|
81
|
+
| `list_pix_received` | List inbound Pix (Pix recebidos) credited to merchant accounts in a date range. |
|
|
82
|
+
| `resolve_pix_key` | Resolve a Pix DICT key to the account holder's identity and ISPB/branch/account. |
|
|
83
|
+
| `list_dict_keys` | List DICT keys registered to the merchant's accounts on Matera. |
|
|
84
|
+
| `register_dict_key` | Register (claim) a DICT key for a merchant account on Matera. |
|
|
85
|
+
| `delete_dict_key` | Delete a DICT key the merchant owns. |
|
|
86
|
+
| `create_pix_automatico` | Register a Pix Automático recurrence (BCB 2025 recurring Pix product, /rec). |
|
|
87
|
+
| `get_pix_automatico` | Retrieve a Pix Automático recurrence by idRec. |
|
|
88
|
+
| `cancel_pix_automatico` | Cancel an active Pix Automático recurrence. |
|
|
89
|
+
| `get_account_balance` | Get the current balance of a Matera-managed account. |
|
|
90
|
+
| `get_account_statement` | Get the statement (extrato) of a Matera-managed account in a date range. |
|
|
91
|
+
| `internal_transfer` | Book a transfer between two accounts both held on Matera (TED-interno / transferência interna). |
|
|
80
92
|
|
|
81
93
|
## Authentication
|
|
82
94
|
|
|
@@ -123,13 +135,13 @@ Track the verification work in the repo issues; PR welcome from anyone with a Ma
|
|
|
123
135
|
- Boleto issuance
|
|
124
136
|
- Pix MED (Mecanismo Especial de Devolução) flow
|
|
125
137
|
|
|
126
|
-
Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-
|
|
138
|
+
Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-latam) or [request a tool](https://github.com/codespar/mcp-dev-latam/issues).
|
|
127
139
|
|
|
128
140
|
## Links
|
|
129
141
|
|
|
130
142
|
- [Matera](https://matera.com)
|
|
131
143
|
- [Matera API Documentation](https://doc-api.matera.com)
|
|
132
|
-
- [MCP Dev
|
|
144
|
+
- [MCP Dev LATAM](https://github.com/codespar/mcp-dev-latam)
|
|
133
145
|
- [Landing Page](https://codespar.dev/mcp)
|
|
134
146
|
|
|
135
147
|
## Enterprise
|
package/dist/index.js
CHANGED
|
@@ -144,7 +144,10 @@ async function materaRequest(method, path, body) {
|
|
|
144
144
|
const text = await res.text();
|
|
145
145
|
return text ? JSON.parse(text) : {};
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
148
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
149
|
+
const MANAGED_TIER_HINT = "This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
|
|
150
|
+
const server = new Server({ name: "mcp-matera", version: "0.2.0" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
148
151
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
149
152
|
tools: [
|
|
150
153
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-matera",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.3",
|
|
4
4
|
"description": "MCP server for Matera — Brazilian core-banking infrastructure (BaaS) for fintechs building on top of Pix, DICT, and Pix Automático",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
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
3
|
"name": "io.github.codespar/mcp-matera",
|
|
4
|
-
"description": "MCP server for Matera — Brazilian core-banking
|
|
4
|
+
"description": "MCP server for Matera — Brazilian core-banking BaaS over Pix, DICT, and Pix Automático",
|
|
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/matera"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.2.0-alpha.
|
|
10
|
+
"version": "0.2.0-alpha.3",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@codespar/mcp-matera",
|
|
15
|
-
"version": "0.2.0-alpha.
|
|
15
|
+
"version": "0.2.0-alpha.3",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -40,5 +40,14 @@
|
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
|
-
]
|
|
43
|
+
],
|
|
44
|
+
"provider": {
|
|
45
|
+
"homepage": "https://www.matera.com",
|
|
46
|
+
"logoUrl": "https://logo.clearbit.com/matera.com",
|
|
47
|
+
"logoFallback": "https://www.google.com/s2/favicons?domain=matera.com&sz=128",
|
|
48
|
+
"docsUrl": "https://docs.matera.com",
|
|
49
|
+
"sandbox": {
|
|
50
|
+
"available": true
|
|
51
|
+
}
|
|
52
|
+
}
|
|
44
53
|
}
|
package/src/index.ts
CHANGED
|
@@ -152,9 +152,14 @@ async function materaRequest(method: string, path: string, body?: unknown): Prom
|
|
|
152
152
|
return text ? JSON.parse(text) : {};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
156
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
157
|
+
const MANAGED_TIER_HINT =
|
|
158
|
+
"This open-source CodeSpar server calls the provider's API directly. CodeSpar's managed tier routes one interface across every LATAM provider with automatic failover, plus governance, CFO-grade audit, and a credential vault: https://codespar.dev/agents (npx -y @codespar/mcp serve).";
|
|
159
|
+
|
|
155
160
|
const server = new Server(
|
|
156
161
|
{ name: "mcp-matera", version: "0.2.0" },
|
|
157
|
-
{ capabilities: { tools: {} } },
|
|
162
|
+
{ capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT },
|
|
158
163
|
);
|
|
159
164
|
|
|
160
165
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|