@albertomarturelo/cta-mcp 0.1.0-rc.1 → 0.1.0
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 +5 -5
- package/dist/main.js +9 -6
- package/dist/main.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +4 -4
- package/dist/server.js.map +1 -1
- package/package.json +2 -2
- package/dist/program.d.ts +0 -8
- package/dist/program.d.ts.map +0 -1
- package/dist/program.js +0 -13
- package/dist/program.js.map +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ agent (Claude Desktop, Claude Code, any MCP client) read your **own** Chilean ba
|
|
|
5
5
|
accounts — balances and movements. A thin surface over
|
|
6
6
|
[`@albertomarturelo/cta-core`](https://www.npmjs.com/package/@albertomarturelo/cta-core).
|
|
7
7
|
|
|
8
|
-
> ⚠️ **
|
|
8
|
+
> ⚠️ **0.x and unofficial.** Not affiliated with, sponsored or endorsed by
|
|
9
9
|
> any bank. Automating access to your own account may breach your bank's terms,
|
|
10
10
|
> and **the bank may block your access or your device**. Provided "as is", without
|
|
11
11
|
> warranty (MIT). Read-only: it never moves money.
|
|
@@ -16,7 +16,7 @@ credentials yourself. The `login` tool returns as soon as the window opens.
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
npm i -g @albertomarturelo/cta-mcp
|
|
19
|
+
npm i -g @albertomarturelo/cta-mcp
|
|
20
20
|
npx playwright install chromium
|
|
21
21
|
cta-mcp --version
|
|
22
22
|
```
|
|
@@ -39,9 +39,9 @@ tool takes a required `banco`, e.g. `"bci"`.
|
|
|
39
39
|
## BCI flow
|
|
40
40
|
|
|
41
41
|
1. `login` with `banco: "bci"` opens the bank's page. Log in there.
|
|
42
|
-
2.
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
2. Once you reach your bank home, the window opens "últimos movimientos" by
|
|
43
|
+
itself, takes the read session and closes. The server holds that session in
|
|
44
|
+
memory, never on disk, for about an hour.
|
|
45
45
|
3. `bancos` shows `sesionHasta`. Until then, `cuentas`, `saldo` and `movimientos`
|
|
46
46
|
read over HTTP, with no browser. After it, log in again.
|
|
47
47
|
|
package/dist/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
3
3
|
import { createTasks } from '@albertomarturelo/cta-core';
|
|
4
|
-
import { FileSessionStore, JsonlAuditSink, SystemClock, defaultDrivers, readPackageVersion, } from '@albertomarturelo/cta-core/node';
|
|
4
|
+
import { FileSessionStore, JsonlAuditSink, SystemClock, createHolderTasks, defaultDrivers, readPackageVersion, } from '@albertomarturelo/cta-core/node';
|
|
5
5
|
import { buildServer } from './server.js';
|
|
6
6
|
const version = readPackageVersion(new URL('../package.json', import.meta.url));
|
|
7
7
|
if (process.argv.includes('--version') || process.argv.includes('-V')) {
|
|
@@ -9,11 +9,14 @@ if (process.argv.includes('--version') || process.argv.includes('-V')) {
|
|
|
9
9
|
}
|
|
10
10
|
else {
|
|
11
11
|
// Composition root (ADR-003). STDOUT belongs to the MCP protocol from here on.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
// Tasks go through the shared grant holder, the same one the CLI uses (ADR-015).
|
|
13
|
+
const tasks = createHolderTasks({
|
|
14
|
+
local: createTasks({
|
|
15
|
+
drivers: defaultDrivers(),
|
|
16
|
+
sessions: new FileSessionStore(),
|
|
17
|
+
audit: new JsonlAuditSink(),
|
|
18
|
+
clock: new SystemClock(),
|
|
19
|
+
}),
|
|
17
20
|
});
|
|
18
21
|
await buildServer(tasks, version).connect(new StdioServerTransport());
|
|
19
22
|
}
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AACA,OAAO,EAA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AC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACvC,CAAC;KAAM,CAAC;IACN,+EAA+E;IAC/E,iFAAiF;IACjF,MAAM,KAAK,GAAG,iBAAiB,CAAC;QAC9B,KAAK,EAAE,WAAW,CAAC;YACjB,OAAO,EAAE,cAAc,EAAE;YACzB,QAAQ,EAAE,IAAI,gBAAgB,EAAE;YAChC,KAAK,EAAE,IAAI,cAAc,EAAE;YAC3B,KAAK,EAAE,IAAI,WAAW,EAAE;SACzB,CAAC;KACH,CAAC,CAAC;IACH,MAAM,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;AACxE,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type Tasks } from '@albertomarturelo/cta-core';
|
|
|
4
4
|
* The `cta-mcp` server: each tool is a thin call into a core task (ADR-003). No
|
|
5
5
|
* tool accepts a password, clave, RUT or second-factor code (ADR-006); login opens
|
|
6
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
|
|
7
|
+
* driver reads over HTTP with the session the local holder keeps (ADR-012, ADR-015).
|
|
8
8
|
*/
|
|
9
9
|
export declare function buildServer(tasks: Tasks, version: string): McpServer;
|
|
10
10
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/server.js
CHANGED
|
@@ -27,13 +27,13 @@ const banco = z
|
|
|
27
27
|
.min(1)
|
|
28
28
|
.describe('Bank slug or Chilean bank code, e.g. "bci" or "016". Required; see the bancos tool.');
|
|
29
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
|
|
30
|
+
'Al llegar a tu inicio, cta abre tus últimos movimientos y cierra la ventana solo. ' +
|
|
31
31
|
'Luego consulta bancos: sesionGuardada será true, o sesionHasta dirá hasta cuándo dura la sesión.';
|
|
32
32
|
/**
|
|
33
33
|
* The `cta-mcp` server: each tool is a thin call into a core task (ADR-003). No
|
|
34
34
|
* tool accepts a password, clave, RUT or second-factor code (ADR-006); login opens
|
|
35
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
|
|
36
|
+
* driver reads over HTTP with the session the local holder keeps (ADR-012, ADR-015).
|
|
37
37
|
*/
|
|
38
38
|
export function buildServer(tasks, version) {
|
|
39
39
|
const server = new McpServer({ name: 'cta', version });
|
|
@@ -44,7 +44,7 @@ export function buildServer(tasks, version) {
|
|
|
44
44
|
}, () => toolJson(() => tasks.bancos()));
|
|
45
45
|
server.registerTool('login', {
|
|
46
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.
|
|
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. 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 cta's local session holder until that time, shared with the cta CLI on this machine; 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
48
|
inputSchema: { banco },
|
|
49
49
|
annotations: {
|
|
50
50
|
readOnlyHint: false,
|
|
@@ -57,7 +57,7 @@ export function buildServer(tasks, version) {
|
|
|
57
57
|
({ banco }) => toolJson(async () => ({ ...(await tasks.startLogin(banco)), siguientePaso: SIGUIENTE_PASO })));
|
|
58
58
|
server.registerTool('logout', {
|
|
59
59
|
title: 'Forget a bank session',
|
|
60
|
-
description: 'Deletes the stored session cookies of one bank on this machine and
|
|
60
|
+
description: 'Deletes the stored session cookies of one bank on this machine and ends a session held in memory, for the cta CLI too. 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
61
|
inputSchema: { banco },
|
|
62
62
|
annotations: {
|
|
63
63
|
readOnlyHint: false,
|
package/dist/server.js.map
CHANGED
|
@@ -1 +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,CAAC,EAAE,CAAC;aACjF;YACH,CAAC,CAAC,yEAAyE;gBACzE;oBACE,KAAK,EAAE,qBAAqB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,GAAG;oBACxE,IAAI,EAAE,YAAY;iBACnB,CAAC;QACR,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI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
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
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
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
44
44
|
"playwright": "^1.63.0",
|
|
45
45
|
"zod": "^4.6.5",
|
|
46
|
-
"@albertomarturelo/cta-core": "0.1.0
|
|
46
|
+
"@albertomarturelo/cta-core": "0.1.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsc -b"
|
package/dist/program.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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
|
package/dist/program.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/program.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
package/dist/program.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|