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.
@@ -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, Edge, Brave or Firefox 140+, connected through the MCP Bridge for ProjectionLab extension or the bootstrap snippet.
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 releases, never connection failures. When
30
- the list is not empty, tell the user each one once, in plain words, then
31
- carry on; do not repeat them later in the session and do not refuse to work
32
- because of them. The two fixes: an out-of-date server is updated by fully
33
- quitting and reopening the AI assistant's host so `npx` fetches the new
34
- release (if it still reports the old version, set the server args to
35
- `["-y", "projectionlab-mcp@latest"]`); an out-of-date extension is updated by
36
- downloading the browser zip from
37
- `https://github.com/Backroads4Me/projectionlab-mcp/releases/latest`,
38
- replacing the unpacked extension folder with its contents, and reloading the
39
- extension from the browser's extensions page (settings are kept).
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 instance | Another agent on this machine runs the server and has the extension | Wait for that agent to exit (this server takes over within about a minute), or give this one its own `PL_WS_PORT` and point the extension at it |
45
- | `browser: false` otherwise | No extension or snippet is connected | See "Connecting the browser"; on Firefox after a restart, only reload the add-on |
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. Download the zip for the user's browser (`chromium` or `firefox`) from
69
- https://github.com/Backroads4Me/projectionlab-mcp/releases/latest and unzip
70
- it.
71
- 2. Chrome, Edge or Brave: open `chrome://extensions`, enable **Developer mode**,
72
- choose **Load unpacked**, and select the unzipped folder. Firefox 140+: open
73
- `about:debugging#/runtime/this-firefox`, choose **Load Temporary Add-on**,
74
- and select `manifest.json` (Firefox removes temporary add-ons on restart).
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 in ProjectionLab after the tool
369
- read it, so the write was refused to avoid overwriting that edit. Re-run the
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`.