@codespar/mcp-open-finance 0.2.1 → 0.2.2
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 +2 -2
- package/dist/index.js +4 -1
- package/package.json +2 -2
- package/server.json +14 -5
- package/src/__tests__/index.test.ts +2 -2
- package/src/index.ts +6 -1
package/README.md
CHANGED
|
@@ -112,13 +112,13 @@ Sandbox availability varies by institution. Contact your financial institution f
|
|
|
112
112
|
- `insurance_products` — List insurance products from institutions
|
|
113
113
|
- `pension_products` — List pension products from institutions
|
|
114
114
|
|
|
115
|
-
Want to contribute? [Open a PR](https://github.com/codespar/mcp-dev-
|
|
115
|
+
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).
|
|
116
116
|
|
|
117
117
|
## Links
|
|
118
118
|
|
|
119
119
|
- [Open Finance Brasil](https://openfinancebrasil.org.br)
|
|
120
120
|
- [Open Finance Brasil Developer Portal](https://openfinancebrasil.atlassian.net)
|
|
121
|
-
- [MCP Dev
|
|
121
|
+
- [MCP Dev LATAM](https://github.com/codespar/mcp-dev-latam)
|
|
122
122
|
- [Landing Page](https://codespar.dev/mcp)
|
|
123
123
|
|
|
124
124
|
## Enterprise
|
package/dist/index.js
CHANGED
|
@@ -75,7 +75,10 @@ async function openFinanceRequest(method, path, body) {
|
|
|
75
75
|
}
|
|
76
76
|
return res.json();
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
79
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
80
|
+
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).";
|
|
81
|
+
const server = new Server({ name: "mcp-open-finance", version: "0.2.1" }, { capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT });
|
|
79
82
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
80
83
|
tools: [
|
|
81
84
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codespar/mcp-open-finance",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "MCP server for Open Finance Brasil
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "MCP server for Open Finance Brasil — accounts, transactions, consents, credit cards, loans, financings, investments, payment-initiation, customer qualifications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
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-open-finance",
|
|
4
|
-
"description": "MCP server for Open Finance Brasil — accounts, transactions, consents, credit
|
|
4
|
+
"description": "MCP server for Open Finance Brasil — accounts, transactions, consents, credit, loans, investments",
|
|
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/open-finance"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.2.
|
|
10
|
+
"version": "0.2.2",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@codespar/mcp-open-finance",
|
|
15
|
-
"version": "0.2.
|
|
15
|
+
"version": "0.2.2",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -26,5 +26,14 @@
|
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
|
-
]
|
|
29
|
+
],
|
|
30
|
+
"provider": {
|
|
31
|
+
"homepage": "https://www.openfinancebrasil.org.br",
|
|
32
|
+
"logoUrl": "https://logo.clearbit.com/openfinancebrasil.org.br",
|
|
33
|
+
"logoFallback": "https://www.google.com/s2/favicons?domain=openfinancebrasil.org.br&sz=128",
|
|
34
|
+
"docsUrl": "https://openbanking-brasil.github.io",
|
|
35
|
+
"sandbox": {
|
|
36
|
+
"available": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
30
39
|
}
|
|
@@ -35,9 +35,9 @@ beforeEach(async () => {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
describe("mcp-open-finance", () => {
|
|
38
|
-
it("should register
|
|
38
|
+
it("should register 18 tools", async () => {
|
|
39
39
|
const result = await listToolsHandler();
|
|
40
|
-
expect(result.tools).toHaveLength(
|
|
40
|
+
expect(result.tools).toHaveLength(18);
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
it("should call correct API endpoint for get_account_balance", async () => {
|
package/src/index.ts
CHANGED
|
@@ -85,9 +85,14 @@ async function openFinanceRequest(method: string, path: string, body?: unknown):
|
|
|
85
85
|
return res.json();
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
// Managed-tier pointer surfaced to the agent via MCP `instructions`.
|
|
89
|
+
// Informational only — nothing CodeSpar-hosted is called (MIT-safe).
|
|
90
|
+
const MANAGED_TIER_HINT =
|
|
91
|
+
"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).";
|
|
92
|
+
|
|
88
93
|
const server = new Server(
|
|
89
94
|
{ name: "mcp-open-finance", version: "0.2.1" },
|
|
90
|
-
{ capabilities: { tools: {} } }
|
|
95
|
+
{ capabilities: { tools: {} }, instructions: MANAGED_TIER_HINT }
|
|
91
96
|
);
|
|
92
97
|
|
|
93
98
|
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|