@levitating/tensor-mcp 5.3.2 → 6.0.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 CHANGED
@@ -13,19 +13,21 @@ groups the browser extension parks).
13
13
  allowlist**, so an MCP client can never reach anything its credential could
14
14
  not reach over REST. The boundary is deliberate: **no unrecoverable
15
15
  destruction, and no self-widening.** Every Trash purge, comment deletion,
16
- decryption-device enrollment, the file access logs, the generic cross-surface
17
- `/api/links*` and `/api/tags*`, FX and loan terms stay session-only. The
16
+ decryption-device enrollment, the file access logs and the generic
17
+ cross-surface `/api/links*` and `/api/tags*` stay session-only, and FX rates,
18
+ loan terms and fund terms can be read but only changed in Tensor itself. The
18
19
  reasoning lives in `docs/contract/MCP.md` in the Tensor repo, and Tensor's
19
20
  smoke tests assert those boundaries in both directions.
20
21
 
21
- Published as [`@levitating/tensor-mcp@^5.3.0`](https://www.npmjs.com/package/@levitating/tensor-mcp).
22
+ Published as [`@levitating/tensor-mcp@^6.0.0`](https://www.npmjs.com/package/@levitating/tensor-mcp).
22
23
  The complete inventory is the tables below — every tool, nothing needing a
23
24
  clone of the Tensor repo. CI derives and checks every listed name against
24
25
  `mcp-server/tools.ts`, in both directions. Reader-facing docs:
25
26
  [tensor.levitating.org/docs/mcp](https://tensor.levitating.org/docs/mcp).
26
27
 
27
28
  **Contents:** [Hosted or local](#do-you-need-this-package-at-all) ·
28
- [Configuration](#configuration) · [Writes are permanent](#writes-are-permanent) ·
29
+ [Configuration](#configuration) · [The agent guide](#the-agent-guide) ·
30
+ [Writes are permanent](#writes-are-permanent) ·
29
31
  [Available tools](#available-tools) · [Scopes](#scopes) · [Changelog](#changelog)
30
32
 
31
33
  ## Do you need this package at all?
@@ -80,13 +82,22 @@ Set two environment variables:
80
82
  |----------|-------------|
81
83
  | `TENSOR_API_KEY` | Your Tensor API key — shape `ak_live_…` (or `ak_test_…`). Create one at **Developer → Access** inside your Tensor instance and attach the scopes listed below. Shown once at creation. |
82
84
  | `TENSOR_BASE_URL` | Tensor instance URL, e.g. `https://tensor.levitating.org` (default: `http://localhost:5000`) |
85
+ | `TENSOR_MCP_READ_ONLY` | Optional. `1` lists only the tools that read (since 6.0.0) |
86
+ | `TENSOR_MCP_TOOLSETS` | Optional. A comma-separated subset of `ledger`, `work`, `files`, `web`: only those halves of Tensor are listed, plus the four tools that need no scope (since 6.0.0). Unknown names are ignored |
87
+
88
+ The last two narrow the list to save the agent's context; they are not a
89
+ security boundary (the key's scopes are). The hosted endpoint takes the same
90
+ two as request headers, `X-Tensor-Read-Only: 1` and
91
+ `X-Tensor-Toolsets: ledger,work`, for a client that lets you set headers. They
92
+ are headers rather than query parameters because an OAuth token is bound to
93
+ the exact MCP URL it was issued for.
83
94
 
84
95
  ## Running standalone
85
96
 
86
97
  ```bash
87
98
  TENSOR_API_KEY=ak_live_xxxxxxxxxxxx \
88
99
  TENSOR_BASE_URL=https://tensor.levitating.org \
89
- npx -y @levitating/tensor-mcp@^5.3.0
100
+ npx -y @levitating/tensor-mcp@^6.0.0
90
101
  ```
91
102
 
92
103
  ## Claude Code integration
@@ -99,7 +110,7 @@ Add to your `~/.claude.json` or project `.claude.json`:
99
110
  "tensor": {
100
111
  "type": "stdio",
101
112
  "command": "npx",
102
- "args": ["-y", "@levitating/tensor-mcp@^5.3.0"],
113
+ "args": ["-y", "@levitating/tensor-mcp@^6.0.0"],
103
114
  "env": {
104
115
  "TENSOR_API_KEY": "ak_live_your_key_here",
105
116
  "TENSOR_BASE_URL": "https://your-instance.example.com"
@@ -118,7 +129,7 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
118
129
  "mcpServers": {
119
130
  "tensor": {
120
131
  "command": "npx",
121
- "args": ["-y", "@levitating/tensor-mcp@^5.3.0"],
132
+ "args": ["-y", "@levitating/tensor-mcp@^6.0.0"],
122
133
  "env": {
123
134
  "TENSOR_API_KEY": "ak_live_your_key_here",
124
135
  "TENSOR_BASE_URL": "https://your-instance.example.com"
@@ -128,6 +139,36 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
128
139
  }
129
140
  ```
130
141
 
142
+ ## The agent guide
143
+
144
+ The tool descriptions say what each tool does. The guide says how to use them
145
+ together: which tool to reach for first, the order a job goes in, and what
146
+ needs the user's confirmation. It is written once, in `mcp-server/guide.ts`,
147
+ and reaches an agent through every door MCP has, so it works on any MCP client
148
+ rather than one vendor's:
149
+
150
+ - **Server instructions.** The `initialize` response carries a short brief
151
+ that a client loads into the model's context on connect, before any tool is
152
+ called.
153
+ - **`get_guide`**, a tool. Every MCP client supports tools, so this is the
154
+ door that always works: no topic for the overview, or one of `ledger`,
155
+ `imports`, `work`, `files`, `safety`. It calls no Tensor route and needs no
156
+ scope.
157
+ - **Resources** `tensor://guide/ledger`, `…/imports`, `…/work`, `…/files`,
158
+ `…/safety`: the same topics, for clients that attach resources.
159
+ - **Prompts**, which many clients show as slash commands:
160
+ `record_statement` (statement → checked, confirmed ledger entries),
161
+ `portfolio_review` (a read-only review) and `triage_inbox` (ideas and open
162
+ todos → proposals).
163
+ - **An Agent Skill**, [`skills/tensor/SKILL.md`](skills/tensor/SKILL.md), shipped
164
+ in this package. SKILL.md is an open format read by Claude, Codex, Gemini
165
+ CLI, Cursor, GitHub Copilot and others; copy the `tensor` folder into your
166
+ agent's skills directory (for example `.claude/skills/`, `.agents/skills/`,
167
+ `~/.gemini/skills/` or `.cursor/skills/`; check your tool's docs for its
168
+ path). It is the same text as the guide, generated from it by
169
+ `npm run mcp:skill` in the Tensor repo, so it is only worth installing for
170
+ an agent that reads skills before it connects.
171
+
131
172
  ## Writes are permanent
132
173
 
133
174
  Four tools have consequences an MCP client cannot undo. Confirm with the user
@@ -150,16 +191,85 @@ immediate on those surfaces: `delete_todo_state`, `delete_todo_tag`,
150
191
  is the recoverable unit, so a tab has no soft state of its own). The first
151
192
  three refuse while in use; once through, there is no undo.
152
193
 
194
+ ### What a client can tell before it calls
195
+
196
+ Every tool carries MCP annotations, so a client can run the reads without
197
+ asking and stop for a confirmation in front of anything that changes data:
198
+
199
+ - `readOnlyHint: true` on every `list_*` and `get_*` tool and on
200
+ `browse_files`, `search_records`, `search_market_quotes` and
201
+ `verify_market_quote`. They only read.
202
+ - `destructiveHint: true` on every `delete_*`, `update_*`, `set_*`,
203
+ `detach_*`, `reorder_*` and `move_*` tool, and on `data_apply` and `sell_all_position`.
204
+ A soft delete is marked too: the hint asks for a confirmation, and one click
205
+ in front of "move to Trash" is cheaper than none in front of the hard deletes
206
+ above.
207
+ - `idempotentHint: true` on the writes a retry repeats harmlessly (`update_*`,
208
+ `delete_*`, `restore_*`, `set_*`, `detach_*`, `reorder_*`, `move_*`), except
209
+ `update_asset_price`, which adds a row to the price history.
210
+ - `openWorldHint: true` on the four tools that reach the market-data provider.
211
+
212
+ The hints are advice to the client. The boundary is still the scope on the
213
+ REST route behind each tool.
214
+
215
+ ### Retrying a write safely
216
+
217
+ Every write that a retry would duplicate (`create_*` except the two upload-URL
218
+ tools, `attach_*`, `add_tabs_to_group`, `confirm_file_upload`, `update_asset_price`,
219
+ `sell_all_position`, `sync_prices`, `sync_asset_price`) takes an optional
220
+ `idempotencyKey`. Send any unique string; if the call times out and you retry
221
+ it with the **same** value and the same arguments, Tensor answers with the
222
+ first result instead of writing again (`Idempotency-Key`, Developer API §5.2A,
223
+ kept for 30 days). Above all use it on `create_transaction`, whose duplicate
224
+ can never be deleted.
225
+
153
226
  ## Available Tools
154
227
 
155
- The tables below are the complete list. At runtime, the authoritative
156
- inventory (names, descriptions and full input schemas) is a `tools/list`
157
- JSON-RPC request after `initialize`; inside the Tensor repo,
228
+ The tables below are the complete list. Inside the Tensor repo,
158
229
  `listRegisteredToolNames()` in `tools.ts` derives the same list. Neither this
159
230
  file nor any other states a tool count, because a typed count is the first
160
231
  thing to go stale.
161
232
 
162
- ### Rollups, quotes, sync & search
233
+ **A connection is shown the tools it can use, not all of them** (since 5.7.0).
234
+ A `tools/list` answers with the tools whose scope the credential carries and
235
+ its person's role can exercise: a key with only `tensor:todos:read` sees the
236
+ todo reads and the four tools that need no scope (`get_guide`, `whoami`,
237
+ `search_records`, `list_trash`), and a key pinned to `tensor:role:read-only` sees no write
238
+ tool whatever scopes it carries. The list comes from `whoami`'s `effectiveScopes`, asked of
239
+ Tensor once when the stdio server starts and on every `tools/list` from the
240
+ hosted endpoint. When Tensor cannot answer (an older instance, no answer in five
241
+ seconds), every tool is listed and one the credential cannot use answers 403
242
+ naming the scope, as before. Restart the stdio server after changing a
243
+ connection's scopes.
244
+
245
+ **A permanent delete takes two calls** (since 5.8.0). `delete_position`,
246
+ `delete_entity`, `delete_account`, `delete_asset`, `delete_institution`,
247
+ `delete_entity_type`, `delete_role_type`, `delete_account_type`,
248
+ `delete_asset_class`, `delete_bookmark_folder`, `delete_todo_tag` and
249
+ `delete_entity_group` (since 5.10.0) destroy
250
+ rows no Trash brings back. The first call deletes nothing: it answers
251
+ `NOT DELETED.` with a preview of what would go (the record, the rows deleted
252
+ with it, the rows unhooked from it) and a one-time `confirmToken`. Show the
253
+ person the preview; only after they agree, call the same tool again with the
254
+ same `id` and that `confirmToken` (good for ten minutes, once). A record other
255
+ records still use is refused outright with what is using it. The soft deletes
256
+ (`delete_todo`, `delete_idea`, `delete_file`, `delete_bookmark`,
257
+ `delete_tab_group`, …) are one call, because Trash can undo them.
258
+
259
+ **A list answers a page** (since 6.0.0). The paged `list_*` tools and
260
+ `browse_files` return `{ items, hasMore, nextOffset }`: 100 rows unless you pass
261
+ `limit` (at most 1000), and `nextOffset` is the `offset` of the next page, or
262
+ `null` on the last one. `list_files` (the export manifest) and the lists that
263
+ are small by nature (states, tags, folders, catalogs) still return the array.
264
+
265
+ ### Guide and identity
266
+
267
+ | Tool | Description |
268
+ |------|-------------|
269
+ | `get_guide` | How to use Tensor well, by topic (see "The agent guide"); answered by the server, needs no scope |
270
+ | `whoami` | Who the connection is: the person (user id, username, role), the organization (name, base currency, timezone), the credential and the name it was given, the scopes it carries, the scopes it can use (`effectiveScopes`) and its rate limit. Needs no scope |
271
+
272
+ ### Rollups, quotes, sync, search & Trash
163
273
 
164
274
  | Tool | Description |
165
275
  |------|-------------|
@@ -168,14 +278,31 @@ thing to go stale.
168
278
  | `verify_market_quote` | Resolve one symbol to a live price without writing |
169
279
  | `sync_prices` | Reprice every linked asset (or a subset) |
170
280
  | `sync_asset_price` | Reprice one asset |
171
- | `list_changes` | Creates, updates and deletes since a timestamp. You see only the types your scopes read: the ledger under `tensor:portfolio:read`, every other surface under its own read scope; memos, links, tags, loan and fund terms, FX and organisation settings never |
281
+ | `list_changes` | Creates, updates and deletes since a timestamp. You see only the types your scopes read: the ledger under `tensor:portfolio:read`, every other surface under its own read scope; memos, links, tags and organisation settings never |
172
282
  | `search_records` | Site-wide ranked search across every record type; lanes are gated per read scope, so the key sees exactly its slice. Memos are the one lane no scope opens — they are session-only |
283
+ | `list_trash` | Everything in Trash across the surfaces your scopes read (todos, ideas, files, bookmarks, tab groups), newest deletion first, with when each is purged. Restore through the surface's own tool; emptying Trash stays with a person |
284
+
285
+ ### Funds, loans & FX (read only)
286
+
287
+ Changing any of these stays in Tensor's web app.
288
+
289
+ | Tool | Description |
290
+ |------|-------------|
291
+ | `list_fund_performance` | Every fund LP position's paid-in, distributions, unfunded commitment, DPI/RVPI/TVPI, IRR or TWR and NAV freshness, with its terms; the same fold as the Portfolio page's fund card |
292
+ | `get_fund_performance` | One fund position's performance and terms |
293
+ | `list_fund_terms` | Every fund position's descriptive terms, without figures |
294
+ | `get_fund_terms` | One fund position's terms |
295
+ | `list_loan_terms` | Every private loan's borrower, rate and dates |
296
+ | `get_loan_terms` | One loan's terms |
297
+ | `list_fx_rates` | The organization's exchange rates to USD, with their source and age |
173
298
 
174
299
  ### Portfolio
175
300
 
176
301
  | Tool | Description |
177
302
  |------|-------------|
178
303
  | `list_entities` | List all entities (people, trusts, companies) |
304
+ | `get_entity` | One entity by id, the row `list_entities` returns |
305
+ | `get_entity_overview` | One entity's accounts, active positions and totals by asset class, in one call |
179
306
  | `create_entity` | Create a new entity |
180
307
  | `update_entity` | Update an entity |
181
308
  | `delete_entity` | Delete an entity |
@@ -183,7 +310,12 @@ thing to go stale.
183
310
  | `create_entity_relationship` | Link two entities |
184
311
  | `update_entity_relationship` | Update a relationship |
185
312
  | `delete_entity_relationship` | Remove a relationship |
313
+ | `list_entity_groups` | Named sets of entities, with their member ids |
314
+ | `create_entity_group` | Create a group |
315
+ | `update_entity_group` | Rename it, or replace its members (`entityIds` is the whole list) |
316
+ | `delete_entity_group` | Delete a group; its entities stay. Two calls, like the other permanent deletes |
186
317
  | `list_accounts` | List all accounts |
318
+ | `get_account` | One account by id |
187
319
  | `create_account` | Create a new account |
188
320
  | `update_account` | Update an account |
189
321
  | `delete_account` | Delete an account |
@@ -195,6 +327,8 @@ thing to go stale.
195
327
  | `list_asset_prices` | List historical prices |
196
328
  | `update_asset_price` | Record a new price |
197
329
  | `list_positions` | List all positions |
330
+ | `get_position` | One position by id |
331
+ | `get_position_overview` | One position with its newest transactions and valuations, and a loan's or fund's terms and performance, in one call |
198
332
  | `create_position` | Open a new position. Pass `costBasis` instead of `quantity`/`averageCost` to open a fund capital account |
199
333
  | `update_position` | Update a position |
200
334
  | `delete_position` | **Destructive.** Hard-deletes the position *and* its whole ledger and history — see above |
@@ -205,6 +339,7 @@ thing to go stale.
205
339
  | `list_position_events` | Valuation-event history for one position |
206
340
  | `list_events` | Valuation-event history across all positions |
207
341
  | `list_transactions` | List all transactions |
342
+ | `get_transaction` | One ledger row by id |
208
343
  | `create_transaction` | Append to the ledger. **Permanent** — no edit, no delete; `amount`/`quantity` are positive magnitudes and direction comes from the type |
209
344
 
210
345
  ### Reference Data
@@ -238,6 +373,7 @@ thing to go stale.
238
373
  |------|-------------|
239
374
  | `data_dry_run` | Step 1: validate a typed batch (`batchId` + ops) and get a persisted preview with a `requestHash` |
240
375
  | `data_apply` | Step 2: execute the persisted dry-run by `batchId` + `requestHash` + confirm sentinel (never takes fresh ops) |
376
+ | `get_data_batch` | Read a batch back by `batchId` (its preview or result and `requestHash`), to pick up after a dropped connection. Needs `tensor:data:read` |
241
377
 
242
378
  ### Files
243
379
 
@@ -246,7 +382,7 @@ The full feature: browse, upload (presign → PUT → confirm), organize, link,
246
382
  | Tool | Scope | Description |
247
383
  |------|-------|-------------|
248
384
  | `list_files` | `tensor:files:read` | Export manifest for backup/mirroring: human folder/filename paths, checksums, and — with `urls` — short-lived presigned download URLs. Encrypted files also release a per-file key when a registered `deviceId` is passed |
249
- | `browse_files` | `tensor:files:read` (+ the target's read scope for `targetType`, and per row for `links`) | Folder/Trash-aware listing the way the Files page reads: by folder, attached record, or title/filename search, in any of the page's eight orders (`sort`). `targetType` reads the `links` table since the 2026-08 fold, so a todo, idea or memo target is a question it can answer. Links to records your key cannot read are omitted |
385
+ | `browse_files` | `tensor:files:read` (+ the target's read scope for `targetType`, and per row for `links`) | Folder/Trash-aware listing the way the Files page reads: by folder, attached record (with `withDescendants`, the records beneath it too), or title/filename search, in any of the page's eight orders (`sort`). `targetType` reads the `links` table since the 2026-08 fold, so a todo, idea or memo target is a question it can answer. Links to records your key cannot read are omitted |
250
386
  | `get_file` | `tensor:files:read` | One file's metadata and attachment links. Links to records your key cannot read are omitted |
251
387
  | `create_file_upload_url` | `tensor:files:write` | Step 1 of the upload: presigned PUT URL + storage key (obey the echoed encryption terms) |
252
388
  | `confirm_file_upload` | `tensor:files:write` (+ each `links` target's read scope) | Step 3: confirm the object landed and create the file row (+ links) in one transaction. The optional `links` array takes the same target types as `attach_file_link` — the six ledger records plus todo, idea and memo, never `file` — and since 2026-08 a target your key cannot read fails the confirm with a `403` rather than being attached quietly |
@@ -299,21 +435,24 @@ Bodies and comments are TipTap JSON, never HTML — the write tools take plain t
299
435
 
300
436
  ### Ideas
301
437
 
302
- The capture inbox. An idea's body is a TipTap document since 4.2.0 — plain text in via `body`, plain text back out, with `bodyJson` alongside on reads; its comments are the same; its media are file rows behind the same upload machinery as Files. Delete is a restorable Trash; the purge and comment deletion are session-only. Since 4.1.0 an idea's record links are here too, the same three verbs the todo and file surfaces already had.
438
+ The capture inbox. An idea's body is a TipTap document since 4.2.0 — plain text in via `body`, plain text back out, with `bodyJson` alongside on reads; its comments are the same; its media are file rows behind the same upload machinery as Files. Delete is a restorable Trash; the purge and comment deletion are session-only. Since 4.1.0 an idea's record links are here too, the same three verbs the todo and file surfaces already had. Since 5.6.0 an idea can be **archived** — done with, kept on file: it leaves the active stream, never expires, and is still readable by id and found by search. Archive is not Trash.
303
439
 
304
440
  | Tool | Scope | Description |
305
441
  |------|-------|-------------|
306
- | `list_ideas` | `tensor:ideas:read` (+ the target's read scope for `targetType`) | The stream — filter by kind, tag, site, search, linked record; order it with `sort` (4.3.0); or, with `trash`, the deleted rows |
442
+ | `list_ideas` | `tensor:ideas:read` (+ the target's read scope for `targetType`) | The active stream — filter by kind, tag, site, search, linked record; order it with `sort` (4.3.0); with `archived` (5.6.0), the archived ideas instead; with `trash`, the deleted rows. Archived ideas are left out by default |
307
443
  | `get_idea` | `tensor:ideas:read` | One idea with tags and media gallery |
308
444
  | `create_idea` | `tensor:ideas:write` | Capture (needs a url, some text, or media; duplicate URLs are flagged, not refused). `body` is plain text in, document stored |
309
445
  | `update_idea` | `tensor:ideas:write` | Partial update; `tags` replaces, `media` appends, `body` REPLACES the whole body document |
310
446
  | `delete_idea` | `tensor:ideas:write` | Move to Trash. Soft — restorable; the purge is UI-only |
311
- | `restore_idea` | `tensor:ideas:write` | Restore from Trash |
447
+ | `restore_idea` | `tensor:ideas:write` | Restore from Trash, on the side of the archive it was deleted from |
448
+ | `archive_idea` | `tensor:ideas:write` | Archive: off the active stream, kept for good (5.6.0). Idempotent; an idea in Trash is a `409` |
449
+ | `unarchive_idea` | `tensor:ideas:write` | Back into the active stream (5.6.0). Idempotent; an idea in Trash is a `409` |
312
450
  | `list_idea_comments` | `tensor:ideas:read` | The comment thread |
313
451
  | `create_idea_comment` | `tensor:ideas:write` | Comment (plain text, stored as TipTap JSON) |
314
452
  | `update_idea_comment` | `tensor:ideas:write` | Edit your own comment — comments are never deletable here |
315
- | `list_idea_tags` | `tensor:ideas:read` | Every tag in use, with counts |
316
- | `list_idea_sites` | `tensor:ideas:read` | Every source site, with counts |
453
+ | `list_idea_tags` | `tensor:ideas:read` | Every tag in use on the active ideas, with counts; on the archived ones with `archived` |
454
+ | `list_idea_sites` | `tensor:ideas:read` | Every source site among the active ideas, with counts; among the archived ones with `archived` |
455
+ | `list_idea_kinds` | `tensor:ideas:read` | Every kind (link, note, image, …) among the active ideas, with counts; among the archived ones with `archived` |
317
456
  | `get_idea_media_url` | `tensor:ideas:read` **+ `tensor:files:read`** | Presigned URL (+ key release for encrypted media) for one gallery object; access-logged. An idea's media IS a file row, and the key release is permanent, so the files read scope is required too |
318
457
  | `create_idea_upload_url` | `tensor:ideas:write` | Presign a media upload; confirm it via `create_idea` / `update_idea` `media` |
319
458
  | `list_idea_links` | `tensor:ideas:read` + the target's read scope | Records the idea is linked to — the six ledger records plus a todo, another idea or a memo (a file too, if a `related` edge exists; the gallery is `get_idea` → `media`). Each row's `kind` says whether a person made it (`related`) or the reconciler did (`mention`). Rows your key cannot read are omitted rather than refused, memos for every key |
@@ -330,11 +469,13 @@ The filed half of Web: pages somebody decided to keep, in a folder tree. `/api/b
330
469
  | `get_bookmark` | `tensor:bookmarks:read` | One bookmark, with the `normalizedUrl` duplicate detection compares |
331
470
  | `create_bookmark` | `tensor:bookmarks:write` | File a page. Only `url` is required; no folder means unfiled, which is a resting state |
332
471
  | `update_bookmark` | `tensor:bookmarks:write` | Partial update — title, url, folder, excerpt, favicon. `folderId: null` unfiles |
472
+ | `move_bookmark` | `tensor:bookmarks:write` | Move into another folder and/or to a place in the order, next to a named neighbour (`beforeId` / `afterId`), or to the end |
333
473
  | `delete_bookmark` | `tensor:bookmarks:write` | Move to Trash. Soft — restorable; the purge is UI-only |
334
474
  | `restore_bookmark` | `tensor:bookmarks:write` | Restore, back into the folder it was filed in |
335
475
  | `list_bookmark_folders` | `tensor:bookmarks:read` | The folder tree, parents before children and siblings in the owner's order — keep it rather than sorting by name |
336
476
  | `create_bookmark_folder` | `tensor:bookmarks:write` | Create a folder, optionally nested |
337
477
  | `update_bookmark_folder` | `tensor:bookmarks:write` | Rename or re-parent. A cycle or a depth ceiling refuses with `409` saying which |
478
+ | `move_bookmark_folder` | `tensor:bookmarks:write` | Move under another folder and/or to a place among its siblings; the same `409`s |
338
479
  | `delete_bookmark_folder` | `tensor:bookmarks:write` | Destroy the folder and nothing else: its bookmarks are unfiled, its sub-folders promoted. No undo — a folder is a filing decision, not a Trash surface |
339
480
 
340
481
  ### Tab groups
@@ -343,10 +484,11 @@ Tabs parked from the browser extension, kept together and in order. Scoped SEPAR
343
484
 
344
485
  | Tool | Scope | Description |
345
486
  |------|-------|-------------|
346
- | `list_tab_groups` | `tensor:tabs:read` | Every group, hydrated with its tabs. Starred first, then newest first. `limit`/`offset` page the groups; a group's tabs are never truncated |
487
+ | `list_tab_groups` | `tensor:tabs:read` | Every group of the person the credential belongs to (groups are personal), hydrated with its tabs. Starred first, then newest first. `limit`/`offset` page the groups; a group's tabs are never truncated |
347
488
  | `get_tab_group` | `tensor:tabs:read` | One group with its tabs in order |
348
489
  | `create_tab_group` | `tensor:tabs:write` | Park 1–500 tabs as one group. One call carries the whole group — the rate limit makes per-tab posting unworkable |
349
- | `update_tab_group` | `tensor:tabs:write` | `name`, `locked`, `starred` — and deliberately not the tabs, so "which tabs did I have" stays answerable from the audit trail |
490
+ | `update_tab_group` | `tensor:tabs:write` | `name`, `locked`, `starred`; tabs arrive through `add_tabs_to_group` |
491
+ | `add_tabs_to_group` | `tensor:tabs:write` | Append 1–500 tabs to an existing group in one call. A trashed group is a `404` until restored |
350
492
  | `delete_tab` | `tensor:tabs:write` | Remove one tab from a live group. Immediate; the group is the recoverable unit |
351
493
  | `delete_tab_group` | `tensor:tabs:write` | Move the whole group to Trash. Soft — restorable; the purge is UI-only |
352
494
  | `restore_tab_group` | `tensor:tabs:write` | Restore the group, tabs and all |
@@ -357,7 +499,7 @@ Your API key needs the following Tensor scopes, attached when the key is created
357
499
 
358
500
  | Scope | Grants |
359
501
  |-------|--------|
360
- | `tensor:portfolio:read` | Read entities, accounts, assets, positions, transactions, events, relations — plus the portfolio summary, change feed, and market-quote lookups |
502
+ | `tensor:portfolio:read` | Read entities, entity groups, accounts, assets, positions, transactions, events, relations — plus the portfolio summary, fund performance, loan and fund terms, FX rates, the change feed and market-quote lookups |
361
503
  | `tensor:portfolio:write` | Create/update/delete portfolio resources, sell-all, record a price, trigger a price sync |
362
504
  | `tensor:reference:read` | Read institutions, entity types, role types, account types, asset classes |
363
505
  | `tensor:reference:write` | Create/update/delete reference data |
@@ -366,17 +508,17 @@ Your API key needs the following Tensor scopes, attached when the key is created
366
508
  | `tensor:todos:read` | Read todos, subtrees, activity, comments, workflow states, canonical tags and record links. A link row also needs its target type's own read scope; the attached-files list needs `tensor:files:read` outright |
367
509
  | `tensor:todos:write` | Create/update todos, soft-delete to Trash and restore, reorder/re-parent, comments, canonical tags, states, attachments. Attaching or linking also needs the other end's read scope; the Trash purge and comment deletion are not reachable at all |
368
510
  | `tensor:ideas:read` | Read the ideas stream, tag/site rails, comments and record links. **Not media URLs on their own** — an idea's media is a file row and that route releases its decryption key, so `get_idea_media_url` needs `tensor:files:read` as well |
369
- | `tensor:ideas:write` | Capture/update ideas, soft-delete to Trash and restore, comments, media uploads and record links. A link write also needs the target's read scope; the Trash purge and comment deletion are not reachable at all |
511
+ | `tensor:ideas:write` | Capture/update ideas, archive and unarchive, soft-delete to Trash and restore, comments, media uploads and record links. A link write also needs the target's read scope; the Trash purge and comment deletion are not reachable at all |
370
512
  | `tensor:bookmarks:read` | Read filed bookmarks and the bookmark folder tree. The tree is a sibling resource of `/api/bookmarks`, not a sub-path, and this one scope opens both |
371
513
  | `tensor:bookmarks:write` | Create/update bookmarks, move them between folders, folder create/rename/re-parent/delete, soft-delete to Trash and restore. The purge is not reachable at all |
372
514
  | `tensor:tabs:read` | Read tab groups and the tabs inside them. **Separate from `tensor:bookmarks:read` on purpose** — a synced group is in effect a partial browsing history, so a key issued to read the pages you filed does not also read every page you parked |
373
- | `tensor:tabs:write` | Create a group with its tabs, rename/lock/star, remove a tab, soft-delete a group to Trash and restore it. The purge is not reachable at all |
374
- | `tensor:data:read` | Retrieve a persisted dry-run batch |
515
+ | `tensor:tabs:write` | Create a group with its tabs, add tabs to it, rename/lock/star, remove a tab, soft-delete a group to Trash and restore it. The purge is not reachable at all |
516
+ | `tensor:data:read` | Read back a persisted dry-run or apply batch (`get_data_batch`) |
375
517
  | `tensor:data:dry_run` | Run data pipeline dry-runs |
376
518
  | `tensor:data:apply` | Apply data pipeline operations |
377
519
  | `tensor:data:admin` | Reserved; no endpoint requires it today |
378
520
 
379
- `search_records` needs no scope of its own — each result lane requires that domain's read scope, lanes the key does not cover are silently omitted, and a key covering no lane gets 403.
521
+ `search_records` needs no scope of its own — each result lane requires that domain's read scope, lanes the key does not cover are silently omitted, and a key covering no lane gets 403. `list_trash` works the same way, one lane per Trash. `whoami` needs none either: it answers about the credential, not the organization's records.
380
522
 
381
523
  The Tensor user who issued the key is the ceiling: a key can never do more than that user could do in the browser.
382
524
 
@@ -384,6 +526,185 @@ The Tensor user who issued the key is the ceiling: a key can never do more than
384
526
 
385
527
  Newest first. A tool rename or removal is a MAJOR bump; new tools and new optional inputs are MINOR (`docs/contract/MCP.md` §6).
386
528
 
529
+ ### 6.0.0 — Shorter tool list, pages, and one call per question
530
+ **Breaking:** the paged list tools answer `{ items, hasMore, nextOffset }`
531
+ instead of a bare array, and ask for 100 rows by default (the REST default is
532
+ 500). That covers `list_entities`, `list_entity_relationships`,
533
+ `list_accounts`, `list_assets`, `list_asset_prices`, `list_positions`,
534
+ `list_position_events`, `list_events`, `list_position_relations`,
535
+ `list_transactions`, `browse_files`, `list_todos`, `list_ideas`,
536
+ `list_bookmarks` and `list_tab_groups`. A saved script that reads the array
537
+ must read `items`. No tool is renamed or removed and no scope changes.
538
+
539
+ - **Descriptions say only what changes what an agent does.** Every tool's
540
+ description and the long input descriptions were rewritten; the rules that
541
+ hold across tools (paging, plain-text bodies, link scopes, download links,
542
+ retries) are said once in the initialize instructions instead of in each
543
+ tool. A description no longer names its scope: a credential is shown only
544
+ the tools its scopes reach, and a 403 names the missing one. A full
545
+ `tools/list` went from 152 KB for 148 tools to 104 KB for 164.
546
+ - **Load less**: `TENSOR_MCP_READ_ONLY=1` lists only the tools that read, and
547
+ `TENSOR_MCP_TOOLSETS=ledger,work` (any of `ledger`, `work`, `files`, `web`)
548
+ only those halves of Tensor; the hosted `/mcp` takes the headers
549
+ `X-Tensor-Read-Only` and `X-Tensor-Toolsets`. See "Configuration".
550
+ - **One call per question**: `get_entity_overview` (an entity, its accounts,
551
+ its active positions and its totals) and `get_position_overview` (a position,
552
+ its newest transactions and valuations, and its loan or fund terms and
553
+ performance).
554
+ - **Faster to serve**: the tool definitions and their JSON schemas are built
555
+ once per process instead of once per request, and `tools/list` leaves out the
556
+ two fields every client reads as their default (`$schema` and
557
+ `execution.taskSupport`).
558
+
559
+ ### 5.10.0 — One record by id, the tools that were missing, and Tensor's logo
560
+ - **One record by id**: `get_entity`, `get_account`, `get_position` and
561
+ `get_transaction` read the row the list returns, without paging the list
562
+ (new routes `GET /api/{entities,accounts,positions,transactions}/:id`).
563
+ - **Tools for routes a key could already call**: `list_entity_groups`,
564
+ `create_entity_group`, `update_entity_group`, `delete_entity_group`;
565
+ `get_data_batch` (read a dry-run or apply batch back after a dropped
566
+ connection); `list_trash` (one Trash across every surface your scopes read);
567
+ `list_idea_kinds`; `move_bookmark` and `move_bookmark_folder` (order and
568
+ place, which `update_*` could not set); `add_tabs_to_group`.
569
+ - **`browse_files` takes `withDescendants`**: with a target, also the files on
570
+ the records beneath it, as a record's Files tab shows them, each marked with
571
+ `via`. A row beneath that your key cannot read is left out.
572
+ - **`delete_entity_group` takes two calls**, like the other permanent deletes:
573
+ a group has no Trash.
574
+ - `move_*` tools are marked destructive and idempotent, like `reorder_*`.
575
+
576
+ The server also introduces itself the way the 2025-11-25 MCP spec allows:
577
+ `serverInfo` carries the display name **Tensor** (`title`), a one-line
578
+ `description`, `websiteUrl` and `icons` (an SVG and 32px and 180px PNGs on
579
+ tensor.levitating.org). Clients that show servers by these fields (a connector
580
+ list, an install prompt) show Tensor and its logo instead of the bare id
581
+ `tensor`, which stays as `name`. The stdio package and the hosted `/mcp` send
582
+ the same object. Nothing is renamed or removed; a client that predates a field
583
+ ignores it.
584
+
585
+ ### 5.9.0 — Funds, loans and FX can be read
586
+ Seven new tools, all read-only under `tensor:portfolio:read`. Nothing is
587
+ renamed or removed and no scope changes.
588
+
589
+ - **`list_fund_performance` / `get_fund_performance`**: a fund LP position's
590
+ performance (paid-in, distributions, unfunded commitment, DPI/RVPI/TVPI, IRR
591
+ for a closed-end fund or time-weighted return for an open-end one, NAV and its
592
+ staleness) and its terms, folded on the server by the same code as the fund
593
+ card in Tensor's Portfolio page. Figures are in the position's currency.
594
+ - **`list_fund_terms` / `get_fund_terms`**, **`list_loan_terms` /
595
+ `get_loan_terms`**, **`list_fx_rates`**: the terms and rates behind them.
596
+ Changing any of them stays in the web app.
597
+ - **`list_changes`** now includes changes to loan terms, fund terms and FX
598
+ rates for a key with `tensor:portfolio:read`.
599
+
600
+ ### 5.8.0 — A permanent delete asks the person first
601
+ No tool is renamed or removed and no scope changes. Eleven tools gain an
602
+ optional input.
603
+
604
+ - **`confirmToken` on the eleven hard deletes** (`delete_position`,
605
+ `delete_entity`, `delete_account`, `delete_asset`, `delete_institution`,
606
+ `delete_entity_type`, `delete_role_type`, `delete_account_type`,
607
+ `delete_asset_class`, `delete_bookmark_folder`, `delete_todo_tag`). Tensor
608
+ now holds a key's or a third-party connection's hard delete for
609
+ confirmation (DEVELOPER_API.md §5.5): the first call returns `NOT DELETED.`, a
610
+ preview of what would go and a `confirmToken`; the second call, with that
611
+ token, deletes. See "Available Tools".
612
+ - **A delete other records block is refused with the reason** (`delete_blocked`
613
+ and the records in `preview.blockedBy`) instead of an anonymous "Unable to
614
+ complete request."
615
+ - **What changes for an existing caller:** an older stdio package cannot pass a
616
+ `confirmToken`, so against a Tensor that holds these deletes it cannot
617
+ complete one: update to 5.8.0. The hosted endpoint is always current.
618
+ - `delete_todo_tag` now reaches only a todo's tag: another surface's tag id is
619
+ 404, where it used to delete that tag from every record on its surface.
620
+
621
+ ### 5.7.0 — Who am I, and only the tools that can work
622
+ One new tool and a shorter tool list. Nothing is renamed or removed and no
623
+ scope changes.
624
+
625
+ - **New tool `whoami`** (no scope), over the new `GET /api/v1/whoami`: the
626
+ person (user id, username, role), the organization (name, base currency,
627
+ timezone), the credential (an API key; an OAuth connection with the name the
628
+ organization gave it; a Tensor app; a browser session), the scopes it carries
629
+ (`scopes`), the scopes it can actually use after the person's role
630
+ (`effectiveScopes`) and its rate limit. "List my todos" now works:
631
+ `list_todos` takes the user id as `assigneeId`.
632
+ - **`tools/list` shows only the tools the credential can use**, on both
633
+ transports: the tools whose scope is in `effectiveScopes`, plus `get_guide`,
634
+ `whoami` and `search_records`, which need none. A narrow key no longer puts
635
+ every tool's description in the agent's context, and an agent no longer
636
+ calls a tool that can only answer 403. See "Available Tools".
637
+ - **What changes for an existing caller:** a tool the credential could never
638
+ use is gone from its list. Over the hosted endpoint a call to one still
639
+ reaches Tensor and answers 403 naming the scope, so a client holding an older
640
+ list loses nothing. The stdio server asks once at start: restart it after
641
+ re-scoping a connection. If Tensor cannot answer, every tool is listed, as in
642
+ 5.6.0.
643
+
644
+ ### 5.6.0 — Ideas can be archived
645
+ Two new tools and two new optional inputs. Nothing is renamed or removed and no
646
+ scope changes.
647
+
648
+ - **`archive_idea`** and **`unarchive_idea`** (`tensor:ideas:write`). Archive
649
+ is "done with, kept on file": the idea leaves the active stream and never
650
+ expires. It is NOT the Trash — it keeps its tags, links, media and comments,
651
+ `get_idea` still reads it and `search_records` still finds it. Both tools
652
+ are idempotent (the side the idea is already on answers unchanged) and both
653
+ refuse an idea in the Trash with a `409`: `restore_idea` first, and it comes
654
+ back on the side it was deleted from.
655
+ - **`list_ideas` takes `archived`**: `true` lists the archived ideas instead
656
+ of the active stream. `list_idea_tags` and `list_idea_sites` take the same
657
+ input, so a count matches the list it filters.
658
+ - **What changes for an existing caller:** `list_ideas` without `archived`,
659
+ and the two rails, now leave archived ideas out. Nothing was archived before
660
+ this release (the column was cleared on every boot while Archive was
661
+ retired), so the answer only differs once someone archives an idea.
662
+ - `update_idea` still has no `archived` field and never will: archiving is
663
+ not an edit, and the REST `PATCH` answers `400` on the key.
664
+ - **The agent guide (5.5.0) knows about Archive**: the instructions, the
665
+ `work` and `safety` topics and the `triage_inbox` prompt now offer
666
+ `archive_idea` for an idea that is handled but worth keeping, and keep
667
+ `delete_idea` for one nobody wants, because Trash empties itself after 60
668
+ days and Archive never does.
669
+
670
+ ### 5.5.0 — The agent guide
671
+ Additive.
672
+
673
+ - **Server instructions**: the `initialize` response now tells the model what
674
+ Tensor is and the handful of rules that matter most (the ledger is
675
+ append-only, totals come from `get_portfolio_summary`, what is permanent,
676
+ what a 403 means).
677
+ - **New tool `get_guide`**, plus the same topics as `tensor://guide/<topic>`
678
+ resources, and three prompts: `record_statement`, `portfolio_review`,
679
+ `triage_inbox`. See "The agent guide".
680
+ - **An Agent Skill** ships in the package at `skills/tensor/SKILL.md`.
681
+ - **A rate-limited call says to wait.** Tensor answers a rate-limited
682
+ credential with a 403, and the tool error used to read it as a missing
683
+ scope. It now says to wait a minute and batch the work.
684
+ - Hosted `/mcp` only, no package change: one tool call is now one count
685
+ against the key's or connection's rate limit (it was two or more), a full
686
+ window answers 429 with `Retry-After`, and an OAuth connection now has a
687
+ limit of its own (600 a minute; Tensor's own apps exempt).
688
+
689
+ ### 5.4.0 — Annotations, safe retries, shorter answers
690
+ Additive; every tool keeps its name and its inputs.
691
+
692
+ - **Every tool carries MCP annotations** (`title`, `readOnlyHint`,
693
+ `destructiveHint`, `idempotentHint`, `openWorldHint`), so a client can let
694
+ the reads run and ask before a write. See "What a client can tell before it
695
+ calls".
696
+ - **New optional input `idempotencyKey`** on the writes a retry would
697
+ duplicate. The same value on a retry replays the first answer instead of
698
+ writing twice. See "Retrying a write safely".
699
+ - **Results are compact JSON**, no longer indented. Same fields, same values,
700
+ roughly a quarter fewer tokens.
701
+ - **A failed call says what to do next**: a missing scope names the scope and
702
+ where the user adds it, a rate limit says how long to wait, a server error
703
+ says to quote the `errorId`. The server's own answer follows unchanged.
704
+ - Wording: `list_tab_groups` says groups are personal (only the credential's
705
+ person's groups appear, since 2026-11-02), and `search_records` says the
706
+ browsing-history lane also answers the Safari extension inside the iOS app.
707
+
387
708
  ### 5.3.2 — zod 4
388
709
  Dependency only. The package now runs on zod `^4.6.7`, which stops validating
389
710
  an over-long array at `.max()` instead of filing an issue for every element
@@ -472,6 +793,10 @@ MCP tools never write `tag_catalog` or `tag_assignments` directly: the REST
472
793
  handlers validate scope and target type, then perform the canonical catalog and
473
794
  assignment writes transactionally.
474
795
 
796
+ ### 4.4.1 — README only
797
+ Republished so the npm page carries the README that says most people only need
798
+ the hosted `/mcp` endpoint. The code is byte-for-byte 4.4.0.
799
+
475
800
  ### 4.4.0 — `browse_files` can say what order it wants
476
801
  Additive, one optional input. `browse_files` takes **`sort`**, one of
477
802
  `modified_desc` / `modified_asc` / `added_desc` / `added_asc` / `name_asc` /
@@ -498,6 +823,10 @@ database's collation rather than a natural sort, so `Q10` comes before `Q9`; and
498
823
  an unrecognised value is ignored rather than refused — ordering is not a filter,
499
824
  so a bad one costs the default order and never an error.
500
825
 
826
+ 4.4.0 was also the first npm release since 1.0.0. It carried everything from
827
+ 1.4.0 onward to npm at once; the hosted `/mcp` had each change already, with
828
+ the deploy that shipped it.
829
+
501
830
  ### 4.3.0 — `list_ideas` can say what order it wants
502
831
  Additive, one optional input. `list_ideas` takes **`sort`**: `newest` (the
503
832
  default, and what every previous release did), `oldest`, `updated` (recently
@@ -605,3 +934,7 @@ Tensor's **Documents** feature was renamed to **Files** (2026-08), all the way d
605
934
  | Endpoint behind it | `GET /api/documents/manifest` | `GET /api/files/manifest` |
606
935
 
607
936
  There is no alias and no deprecation window — the old names are gone. **Existing API keys carrying `tensor:documents:read` must be re-issued with `tensor:files:read`**, and any prompt, script or saved workflow that calls `list_documents` by name has to be updated. Everything else in the tool set is unchanged.
937
+
938
+ ### 1.4.0 — Tools match the live routes
939
+ The tool set and the OpenAPI document were brought in line with the routes
940
+ already live at the time. Repository only; it reached npm inside 4.4.0.