projectionlab-mcp 1.2.0 → 1.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/HOW-IT-WORKS.md +2 -2
- package/MANUAL-SETUP.md +19 -13
- package/README.md +2 -2
- package/REFERENCE.md +2 -2
- package/SETUP-FOR-AGENTS.md +7 -4
- package/dist/bridge.d.ts +6 -0
- package/dist/extensionBridge.d.ts +57 -4
- package/dist/extensionBridge.js +286 -32
- package/dist/extensionBridge.js.map +1 -1
- package/dist/planVersion.d.ts +6 -4
- package/dist/planVersion.js +6 -4
- package/dist/planVersion.js.map +1 -1
- package/dist/tools/clonePlan.js +1 -3
- package/dist/tools/clonePlan.js.map +1 -1
- package/dist/tools/deletePlan.js +1 -3
- package/dist/tools/deletePlan.js.map +1 -1
- package/dist/tools/restore.js +1 -3
- package/dist/tools/restore.js.map +1 -1
- package/dist/tools/snapshots.js +11 -5
- package/dist/tools/snapshots.js.map +1 -1
- package/dist/tools/updatePlanEvent.js +1 -3
- package/dist/tools/updatePlanEvent.js.map +1 -1
- package/dist/tools/updatePlanSection.js +2 -3
- package/dist/tools/updatePlanSection.js.map +1 -1
- package/dist/tools/updatePlanSettings.js +1 -3
- package/dist/tools/updatePlanSettings.js.map +1 -1
- package/dist/types/wire.d.ts +38 -3
- package/dist/types/wire.js +20 -0
- package/dist/types/wire.js.map +1 -1
- package/dist/versionNotices.js +22 -18
- package/dist/versionNotices.js.map +1 -1
- package/package.json +1 -1
- package/skills/projectionlab/SKILL.md +35 -28
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: projectionlab
|
|
3
3
|
description: Reads and edits a user's ProjectionLab retirement and financial plan through the projectionlab MCP server - plans, Current Finances, assumptions, Chance of Success (Monte Carlo) and withdrawal-strategy settings - with previewed, snapshotted, reversible changes. Use when the user asks about their ProjectionLab plan, retirement readiness, FIRE or decumulation, Roth conversions, comparing scenarios, or changing plan values, or when projectionlab tools fail to connect and the user needs setup help.
|
|
4
4
|
license: MIT
|
|
5
|
-
compatibility: Requires the projectionlab MCP server (npx -y projectionlab-mcp, Node.js 20+) and a ProjectionLab tab open in Chrome
|
|
5
|
+
compatibility: Requires the projectionlab MCP server (npx -y projectionlab-mcp, Node.js 20+) and a ProjectionLab tab open in Chrome or Firefox 140+ (both tested; Edge and Brave use the same builds and are unverified), connected through the MCP Bridge for ProjectionLab extension or the bootstrap snippet.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# ProjectionLab MCP
|
|
@@ -26,23 +26,28 @@ returns `browser`, `pageLoaded`, `apiAvailable`, `apiKeyValid`, `errors`,
|
|
|
26
26
|
`true`, proceed. Otherwise fix the first failing item with the user, one step
|
|
27
27
|
at a time, then check again.
|
|
28
28
|
|
|
29
|
-
`notices` are plain sentences about
|
|
30
|
-
the list is not empty, tell the user each one once, in plain
|
|
31
|
-
carry on; do not repeat them later in the session and do not refuse
|
|
32
|
-
because of them. The
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
`["-y", "projectionlab-mcp@latest"]
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
`notices` are plain sentences about the server's release, never connection
|
|
30
|
+
failures. When the list is not empty, tell the user each one once, in plain
|
|
31
|
+
words, then carry on; do not repeat them later in the session and do not refuse
|
|
32
|
+
to work because of them. The fix for an out-of-date server is quitting and
|
|
33
|
+
reopening the AI assistant's host so `npx` fetches the new release; if it still
|
|
34
|
+
reports the old version, set the server args to
|
|
35
|
+
`["-y", "projectionlab-mcp@latest"]`. The extension's release is not locked
|
|
36
|
+
to the server's release: the browser's store keeps it current on its own, and
|
|
37
|
+
the server speaks only if the connected extension is older than its minimum
|
|
38
|
+
required version. When guiding a user to install the store version over an older
|
|
39
|
+
unpacked copy, have them remove the unpacked extension from `chrome://extensions`
|
|
40
|
+
and copy the token from `~/.projectionlab-mcp/ws-token` into the new extension's
|
|
41
|
+
options page (browsers isolate extension storage by ID, so settings do not transfer).
|
|
40
42
|
|
|
41
43
|
| Failing item | What it means | What to do with the user |
|
|
42
44
|
|---|---|---|
|
|
43
45
|
| `API_KEY_MISSING` in `errors` | The server has no Plugin API key | See "Setting the API key" |
|
|
44
|
-
| `browser: false`, port held by another
|
|
45
|
-
| `browser: false
|
|
46
|
+
| `browser: false`, port held by another process that did not hand it over | Another agent or session on this machine runs an older server that cannot hand the port over, or one with a different `PL_WS_TOKEN` | Ask the user to close that session or quit its MCP host (or update its projectionlab-mcp); this server takes over within seconds |
|
|
47
|
+
| `browser: false`, holder still busy with its own operations | Another instance is mid-operation and did not release the port in time | Wait a moment and run `projectionlab_check_connection` again |
|
|
48
|
+
| `browser: false`, port held by a program that is not projectionlab-mcp | Some other program is listening on the WebSocket port | Ask the user to stop that program, or set `PL_WS_PORT` to a free port for this server and enter the same port on the extension's options page |
|
|
49
|
+
| `browser: false`, handing the port over did not complete | Another instance holds the port and the browser did not reconnect here in time | Run `projectionlab_check_connection` again; if it keeps failing, ask the user to close the other agent's session |
|
|
50
|
+
| `browser: false` otherwise | No extension or snippet is connected | See "Connecting the browser" |
|
|
46
51
|
| `pageLoaded: false` | No ProjectionLab tab is open | Ask the user to open https://app.projectionlab.com and log in |
|
|
47
52
|
| `apiAvailable: false` | Plugins are off, or the user is logged out | ProjectionLab -> Account Settings -> Plugins -> enable plugins |
|
|
48
53
|
| `apiKeyValid: false` | The key does not match the account | Ask the user to copy the key again from Account Settings -> Plugins |
|
|
@@ -65,13 +70,19 @@ If you write the file for the user, do not repeat the value back.
|
|
|
65
70
|
|
|
66
71
|
Recommended, persistent: the **MCP Bridge for ProjectionLab** browser extension.
|
|
67
72
|
|
|
68
|
-
1.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
1. Have the user add **MCP Bridge for ProjectionLab** from their browser's
|
|
74
|
+
store; you cannot click the install button for them. Chrome, Edge or Brave:
|
|
75
|
+
https://chromewebstore.google.com/detail/mcp-bridge-for-projection/njgjmcihabchffonldcgfjiocjalpoaf
|
|
76
|
+
then **Add to Chrome** (Edge asks once to allow extensions from other
|
|
77
|
+
stores). Firefox 140+:
|
|
78
|
+
https://addons.mozilla.org/en-US/firefox/addon/mcp-bridge-for-projectionlab/
|
|
79
|
+
then **Install Add-on**. The store keeps the extension updated.
|
|
80
|
+
Chrome and Firefox are tested with this server; Edge and Brave run the same
|
|
81
|
+
builds and are unverified, so pick one of the tested two when the user has a
|
|
82
|
+
choice.
|
|
83
|
+
2. Install it from one source only. An unpacked copy alongside a store copy
|
|
84
|
+
gives the browser two extensions competing for the server's single
|
|
85
|
+
connection, and the loser stands by.
|
|
75
86
|
3. Open the extension's options page (click its toolbar icon). Enter the port
|
|
76
87
|
(`8788` unless `PL_WS_PORT` is set) and the token from
|
|
77
88
|
`~/.projectionlab-mcp/ws-token`, which the server creates on first start.
|
|
@@ -84,11 +95,6 @@ If another browser is already connected to the server, the status reads
|
|
|
84
95
|
browser disconnects, and pressing Save on the options page makes this
|
|
85
96
|
browser the active one now.
|
|
86
97
|
|
|
87
|
-
A Firefox user whose setup worked before only needs step 2 again after
|
|
88
|
-
restarting Firefox: load `manifest.json` from the same folder, and re-enter
|
|
89
|
-
the port and token if the options page is empty. Do not repeat the rest of
|
|
90
|
-
the setup.
|
|
91
|
-
|
|
92
98
|
Quick, no install: call `projectionlab_get_bootstrap` and have the user paste
|
|
93
99
|
the returned snippet into the ProjectionLab tab's developer console (F12 ->
|
|
94
100
|
Console). It must be pasted again after every page reload.
|
|
@@ -365,8 +371,9 @@ Change progress:
|
|
|
365
371
|
`projectionlab_list_snapshots` shows them, including the pre-rollback
|
|
366
372
|
snapshot a confirmed rollback saves, so a rollback is undone by rolling
|
|
367
373
|
back once more with `nBack: 1`.
|
|
368
|
-
- **`PLAN_CONFLICT`** means a plan was saved
|
|
369
|
-
|
|
374
|
+
- **`PLAN_CONFLICT`** means a plan was saved after the tool read it, in
|
|
375
|
+
ProjectionLab or by another agent, so the write was refused to avoid
|
|
376
|
+
overwriting that change. Re-run the
|
|
370
377
|
dry run to pick up the latest data, show the user the new preview, and
|
|
371
378
|
confirm again. When confirming `projectionlab_update_plan_section`, pass the
|
|
372
379
|
dry run's `planVersion` as `expectedPlanVersion`.
|