@albertomarturelo/cta-mcp 0.1.0-rc.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alberto Marturelo Lorenzo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # @albertomarturelo/cta-mcp
2
+
3
+ `cta-mcp`: a stdio [MCP](https://modelcontextprotocol.io) server that lets an AI
4
+ agent (Claude Desktop, Claude Code, any MCP client) read your **own** Chilean bank
5
+ accounts — balances and movements. A thin surface over
6
+ [`@albertomarturelo/cta-core`](https://www.npmjs.com/package/@albertomarturelo/cta-core).
7
+
8
+ > ⚠️ **Pre-alpha and unofficial.** Not affiliated with, sponsored or endorsed by
9
+ > any bank. Automating access to your own account may breach your bank's terms,
10
+ > and **the bank may block your access or your device**. Provided "as is", without
11
+ > warranty (MIT). Read-only: it never moves money.
12
+
13
+ No tool accepts a password: login happens in a browser window where you type your
14
+ credentials yourself. The `login` tool returns as soon as the window opens.
15
+
16
+ ## Install
17
+
18
+ ```bash
19
+ npm i -g @albertomarturelo/cta-mcp@next
20
+ npx playwright install chromium
21
+ cta-mcp --version
22
+ ```
23
+
24
+ Requires **Node ≥ 20**. Claude Desktop (`claude_desktop_config.json`):
25
+
26
+ ```json
27
+ {
28
+ "mcpServers": {
29
+ "cta": { "command": "cta-mcp" }
30
+ }
31
+ }
32
+ ```
33
+
34
+ ## Tools
35
+
36
+ `bancos`, `login`, `logout`, `cuentas`, `saldo`, `movimientos`. Every bank-scoped
37
+ tool takes a required `banco`, e.g. `"bci"`.
38
+
39
+ ## BCI flow
40
+
41
+ 1. `login` with `banco: "bci"` opens the bank's page. Log in there.
42
+ 2. On your bank home, **open "últimos movimientos"** in that same window. The
43
+ server then holds a read session in memory, never on disk, for about an hour.
44
+ Do not sign out at the bank.
45
+ 3. `bancos` shows `sesionHasta`. Until then, `cuentas`, `saldo` and `movimientos`
46
+ read over HTTP, with no browser. After it, log in again.
47
+
48
+ If the bank blocks a read, the tool returns the bank's message and nothing is
49
+ retried. See the [roadmap](https://github.com/albertomarturelo/cta/blob/main/docs/ROADMAP.md).
package/dist/main.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
package/dist/main.js ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
3
+ import { createTasks } from '@albertomarturelo/cta-core';
4
+ import { FileSessionStore, JsonlAuditSink, SystemClock, defaultDrivers, readPackageVersion, } from '@albertomarturelo/cta-core/node';
5
+ import { buildServer } from './server.js';
6
+ const version = readPackageVersion(new URL('../package.json', import.meta.url));
7
+ if (process.argv.includes('--version') || process.argv.includes('-V')) {
8
+ process.stdout.write(`${version}\n`);
9
+ }
10
+ else {
11
+ // Composition root (ADR-003). STDOUT belongs to the MCP protocol from here on.
12
+ const tasks = createTasks({
13
+ drivers: defaultDrivers(),
14
+ sessions: new FileSessionStore(),
15
+ audit: new JsonlAuditSink(),
16
+ clock: new SystemClock(),
17
+ });
18
+ await buildServer(tasks, version).connect(new StdioServerTransport());
19
+ }
20
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,cAAc,EACd,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,GAAG,kBAAkB,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAEhF,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IACtE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACvC,CAAC;KAAM,CAAC;IACN,+EAA+E;IAC/E,MAAM,KAAK,GAAG,WAAW,CAAC;QACxB,OAAO,EAAE,cAAc,EAAE;QACzB,QAAQ,EAAE,IAAI,gBAAgB,EAAE;QAChC,KAAK,EAAE,IAAI,cAAc,EAAE;QAC3B,KAAK,EAAE,IAAI,WAAW,EAAE;KACzB,CAAC,CAAC;IACH,MAAM,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;AACxE,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface Io {
2
+ version: string;
3
+ stdout: (line: string) => void;
4
+ stderr: (line: string) => void;
5
+ }
6
+ /** Runs the MCP entry point and returns the process exit code. */
7
+ export declare function run(argv: readonly string[], io: Io): number;
8
+ //# sourceMappingURL=program.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,EAAE;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,kEAAkE;AAClE,wBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CAU3D"}
@@ -0,0 +1,13 @@
1
+ /** Runs the MCP entry point and returns the process exit code. */
2
+ export function run(argv, io) {
3
+ const [arg] = argv;
4
+ if (arg === '--version' || arg === '-V') {
5
+ io.stdout(io.version);
6
+ return 0;
7
+ }
8
+ // No stdio server until the first tool lands (ROADMAP) — fail loudly rather
9
+ // than start a server that exposes nothing.
10
+ io.stderr('cta-mcp: no tools yet — see docs/ROADMAP.md.');
11
+ return 1;
12
+ }
13
+ //# sourceMappingURL=program.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program.js","sourceRoot":"","sources":["../src/program.ts"],"names":[],"mappings":"AAMA,kEAAkE;AAClE,MAAM,UAAU,GAAG,CAAC,IAAuB,EAAE,EAAM;IACjD,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACnB,IAAI,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACxC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO,CAAC,CAAC;IACX,CAAC;IACD,4EAA4E;IAC5E,4CAA4C;IAC5C,EAAE,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;IAC1D,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { type Tasks } from '@albertomarturelo/cta-core';
3
+ /**
4
+ * The `cta-mcp` server: each tool is a thin call into a core task (ADR-003). No
5
+ * tool accepts a password, clave, RUT or second-factor code (ADR-006); login opens
6
+ * a visible browser on the user's machine, and reads do too unless the bank's
7
+ * driver reads over HTTP with the session this server holds (ADR-012, ADR-015).
8
+ */
9
+ export declare function buildServer(tasks: Tasks, version: string): McpServer;
10
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAqClE;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CA2GpE"}
package/dist/server.js ADDED
@@ -0,0 +1,105 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import { CtaError } from '@albertomarturelo/cta-core';
3
+ import { z } from 'zod';
4
+ /** Runs one task; results and errors come back as JSON text (ADR-007). */
5
+ async function toolJson(call) {
6
+ try {
7
+ return { content: [{ type: 'text', text: JSON.stringify(await call(), null, 2) }] };
8
+ }
9
+ catch (err) {
10
+ const body = err instanceof CtaError
11
+ ? {
12
+ error: err.message,
13
+ code: err.code,
14
+ ...('banco' in err && typeof err.banco === 'string' ? { banco: err.banco } : {}),
15
+ }
16
+ : // Unexpected errors may carry request details (cookies): the class only.
17
+ {
18
+ error: `Error inesperado (${err instanceof Error ? err.name : 'Error'})`,
19
+ code: 'UNEXPECTED',
20
+ };
21
+ return { content: [{ type: 'text', text: JSON.stringify(body) }], isError: true };
22
+ }
23
+ }
24
+ // ADR-011: every bank-scoped tool takes a REQUIRED bank; never a default.
25
+ const banco = z
26
+ .string()
27
+ .min(1)
28
+ .describe('Bank slug or Chilean bank code, e.g. "bci" or "016". Required; see the bancos tool.');
29
+ const SIGUIENTE_PASO = 'Termina el ingreso en la ventana del banco (clave y segundo factor, si lo pide). ' +
30
+ 'Al llegar a tu inicio, abre tus últimos movimientos en esa ventana. ' +
31
+ 'Luego consulta bancos: sesionGuardada será true, o sesionHasta dirá hasta cuándo dura la sesión.';
32
+ /**
33
+ * The `cta-mcp` server: each tool is a thin call into a core task (ADR-003). No
34
+ * tool accepts a password, clave, RUT or second-factor code (ADR-006); login opens
35
+ * a visible browser on the user's machine, and reads do too unless the bank's
36
+ * driver reads over HTTP with the session this server holds (ADR-012, ADR-015).
37
+ */
38
+ export function buildServer(tasks, version) {
39
+ const server = new McpServer({ name: 'cta', version });
40
+ server.registerTool('bancos', {
41
+ title: 'Supported banks',
42
+ description: 'Lists supported banks and which have a stored session on this machine (not checked against the bank).',
43
+ annotations: { readOnlyHint: true, openWorldHint: false },
44
+ }, () => toolJson(() => tasks.bancos()));
45
+ server.registerTool('login', {
46
+ title: 'Log in to a bank',
47
+ description: "Opens a visible browser at the bank's real login page on the user's machine and returns at once, without waiting for the login. The USER types their credentials and any second factor there; never ask for them and never pass them. Some banks also need the user to open their latest movements in that window once logged in; relay siguientePaso. Once the user says they are done, call bancos: on success sesionGuardada is true (cookies stored) or sesionHasta is set (a session held in memory by this server until that time; reads need no browser until then); loginEnCurso while it runs, ultimoLoginFallido with the bank's message if it failed. Calling login again while one runs opens no new window. Never stores a password; stores session cookies only, or nothing.",
48
+ inputSchema: { banco },
49
+ annotations: {
50
+ readOnlyHint: false,
51
+ destructiveHint: false,
52
+ idempotentHint: false,
53
+ openWorldHint: true,
54
+ },
55
+ },
56
+ // ADR-013: returns before the user finishes, so no client tool timeout hits it.
57
+ ({ banco }) => toolJson(async () => ({ ...(await tasks.startLogin(banco)), siguientePaso: SIGUIENTE_PASO })));
58
+ server.registerTool('logout', {
59
+ title: 'Forget a bank session',
60
+ description: 'Deletes the stored session cookies of one bank on this machine and forgets a session held in memory. It does not sign out at the bank, nor cancel a login still open (loginEnCurso: true); that one saves its session when the user finishes.',
61
+ inputSchema: { banco },
62
+ annotations: {
63
+ readOnlyHint: false,
64
+ destructiveHint: true,
65
+ idempotentHint: true,
66
+ openWorldHint: false,
67
+ },
68
+ }, ({ banco }) => toolJson(() => tasks.logout(banco)));
69
+ server.registerTool('cuentas', {
70
+ title: 'Accounts of a bank',
71
+ description: 'Lists the accounts of one bank. Uses the bank session; for banks read in a browser it opens a visible one briefly.',
72
+ inputSchema: { banco },
73
+ annotations: { readOnlyHint: true, openWorldHint: true },
74
+ }, ({ banco }) => toolJson(() => tasks.cuentas(banco)));
75
+ server.registerTool('saldo', {
76
+ title: 'Balances',
77
+ description: 'Balances of the accounts of one bank, or of one account. Amounts are integer minor units ({moneda, monto}). Uses the bank session; for banks read in a browser it opens a visible one briefly.',
78
+ inputSchema: {
79
+ banco,
80
+ cuenta: z.string().min(1).optional().describe('Full account number or its last 4 digits.'),
81
+ },
82
+ annotations: { readOnlyHint: true, openWorldHint: true },
83
+ }, ({ banco, cuenta }) => toolJson(() => tasks.saldo(banco, cuenta)));
84
+ const fecha = z
85
+ .string()
86
+ .regex(/^\d{4}-\d{2}-\d{2}$/)
87
+ .optional();
88
+ server.registerTool('movimientos', {
89
+ title: 'Account movements',
90
+ description: "Movements of one bank's accounts, or of one account, filtered to an optional inclusive date range. Amounts are signed integer minor units (cargo negative, abono positive). A bank may return less than the range: check `cobertura` — for each account, `completo: false` means movements before `cobertura.desde` may be missing; tell the user instead of presenting totals as covering the whole range. Uses the bank session; for banks read in a browser it opens a visible one briefly.",
91
+ inputSchema: {
92
+ banco,
93
+ cuenta: z.string().min(1).optional().describe('Full account number or its last 4 digits.'),
94
+ desde: fecha.describe('First day, YYYY-MM-DD, inclusive.'),
95
+ hasta: fecha.describe('Last day, YYYY-MM-DD, inclusive.'),
96
+ },
97
+ annotations: { readOnlyHint: true, openWorldHint: true },
98
+ }, ({ banco, cuenta, desde, hasta }) => toolJson(() => tasks.movimientos(banco, {
99
+ ...(cuenta === undefined ? {} : { cuenta }),
100
+ ...(desde === undefined ? {} : { desde }),
101
+ ...(hasta === undefined ? {} : { hasta }),
102
+ })));
103
+ return server;
104
+ }
105
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAc,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,0EAA0E;AAC1E,KAAK,UAAU,QAAQ,CAAC,IAA4B;IAClD,IAAI,CAAC;QACH,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACtF,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,GACR,GAAG,YAAY,QAAQ;YACrB,CAAC,CAAC;gBACE,KAAK,EAAE,GAAG,CAAC,OAAO;gBAClB,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,GAAG,CAAC,OAAO,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,C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KAAK,EAAE,CAAC;KAC1C,CAAC,CACH,CACJ,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@albertomarturelo/cta-mcp",
3
+ "version": "0.1.0-rc.1",
4
+ "type": "module",
5
+ "description": "MCP (stdio) server to read your own Chilean bank accounts from an AI agent. Each tool is a thin call into @albertomarturelo/cta-core tasks (ADR-003).",
6
+ "keywords": [
7
+ "chile",
8
+ "banco",
9
+ "bank",
10
+ "cartola",
11
+ "bci",
12
+ "read-only",
13
+ "mcp",
14
+ "model-context-protocol",
15
+ "claude"
16
+ ],
17
+ "license": "MIT",
18
+ "homepage": "https://github.com/albertomarturelo/cta#readme",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/albertomarturelo/cta.git",
22
+ "directory": "packages/mcp"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/albertomarturelo/cta/issues"
26
+ },
27
+ "publishConfig": {
28
+ "registry": "https://registry.npmjs.org",
29
+ "access": "public"
30
+ },
31
+ "bin": {
32
+ "cta-mcp": "./dist/main.js"
33
+ },
34
+ "engines": {
35
+ "node": ">=20"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "README.md",
40
+ "LICENSE"
41
+ ],
42
+ "dependencies": {
43
+ "@modelcontextprotocol/sdk": "^1.30.1",
44
+ "playwright": "^1.63.0",
45
+ "zod": "^4.6.5",
46
+ "@albertomarturelo/cta-core": "0.1.0-rc.1"
47
+ },
48
+ "scripts": {
49
+ "build": "tsc -b"
50
+ }
51
+ }