@levitating/tensor-mcp 5.1.0 → 5.2.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 +252 -210
- package/dist/index.js +15 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,202 +1,32 @@
|
|
|
1
1
|
# Tensor MCP
|
|
2
2
|
|
|
3
|
-
Model Context Protocol server that exposes
|
|
4
|
-
|
|
5
|
-
Tensor is a private family office workbench: a ledger of entities, accounts,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
neither and reach neither — attach them when you create the key.
|
|
31
|
-
|
|
32
|
-
Both deletes are soft and both restores are here. Neither permanent purge is,
|
|
33
|
-
on the rule every work surface shares: a key may fill a Trash and only a person
|
|
34
|
-
may empty one.
|
|
35
|
-
|
|
36
|
-
## 5.0.0 — Todo labels are Todo tags
|
|
37
|
-
|
|
38
|
-
Breaking tool-name change. Todos and Ideas now use Tensor's canonical tag
|
|
39
|
-
catalog and assignments. Todo reads return `tags` and `tagIds`, and Todo tag
|
|
40
|
-
writes use the same records that the web app, REST API, filters and settings
|
|
41
|
-
use.
|
|
42
|
-
|
|
43
|
-
Rename calls by replacing `set_todo_labels` with `set_todo_tags`,
|
|
44
|
-
`list_todo_labels` with `list_todo_tags`, `create_todo_label` with
|
|
45
|
-
`create_todo_tag`, `update_todo_label` with `update_todo_tag`, and
|
|
46
|
-
`delete_todo_label` with `delete_todo_tag`.
|
|
47
|
-
|
|
48
|
-
There are no MCP aliases for the old tool names. Update any prompt, script or
|
|
49
|
-
saved workflow that calls a tool by name. Hosted HTTP clients only need to
|
|
50
|
-
refresh or reconnect so they fetch the latest tool catalog. Local stdio clients
|
|
51
|
-
must update to `@levitating/tensor-mcp@^5.0.0` and restart the client.
|
|
52
|
-
|
|
53
|
-
The underlying REST label routes remain deprecated compatibility adapters, but
|
|
54
|
-
new integrations should use `PUT /api/todos/:id/tags` with `{ "tagIds": [] }`.
|
|
55
|
-
MCP tools never write `tag_catalog` or `tag_assignments` directly: the REST
|
|
56
|
-
handlers validate scope and target type, then perform the canonical catalog and
|
|
57
|
-
assignment writes transactionally.
|
|
58
|
-
|
|
59
|
-
## 2.0.0 — breaking change
|
|
60
|
-
|
|
61
|
-
Tensor's **Documents** feature was renamed to **Files** (2026-08), all the way down: tables, routes, scope and tool names. For an MCP client that means:
|
|
62
|
-
|
|
63
|
-
| What | Was | Now |
|
|
64
|
-
| ---- | --- | --- |
|
|
65
|
-
| Tool name | `list_documents` | `list_files` |
|
|
66
|
-
| Scope on the key | `tensor:documents:read` | `tensor:files:read` |
|
|
67
|
-
| Endpoint behind it | `GET /api/documents/manifest` | `GET /api/files/manifest` |
|
|
68
|
-
|
|
69
|
-
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.
|
|
70
|
-
|
|
71
|
-
## 4.4.0 — `browse_files` can say what order it wants
|
|
72
|
-
|
|
73
|
-
Additive, one optional input. `browse_files` takes **`sort`**, one of
|
|
74
|
-
`modified_desc` / `modified_asc` / `added_desc` / `added_asc` / `name_asc` /
|
|
75
|
-
`name_desc` / `size_desc` / `size_asc`. The default is `added_desc` — newest
|
|
76
|
-
first, exactly what every previous release returned. Nothing is renamed, nothing
|
|
77
|
-
is removed, no scope changes, and a call that omits it behaves as before.
|
|
78
|
-
|
|
79
|
-
It closes the last gap where Tensor's Files page could do something an agent
|
|
80
|
-
could not. The four columns are the page's own — `modified` is `updated_at`,
|
|
81
|
-
`added` is `created_at`, `name` is the display title and `size` is the
|
|
82
|
-
**plaintext** length, so an encrypted file sorts by what it is rather than by
|
|
83
|
-
its envelope's overhead. One name carries both the column and the direction
|
|
84
|
-
because the server looks the value up in a closed map of `ORDER BY` fragments;
|
|
85
|
-
a direction sent separately would only be composed back into that key.
|
|
86
|
-
|
|
87
|
-
**It is a server-side order, and that is the point.** The listing is capped
|
|
88
|
-
(default 500), so re-sorting a page in the client orders the window rather than
|
|
89
|
-
the library — "the ten biggest files" computed that way is the ten biggest of
|
|
90
|
-
the five hundred most recent. Every order also ends in the file id, so paging
|
|
91
|
-
with `limit`/`offset` cannot show one row twice and skip another.
|
|
92
|
-
|
|
93
|
-
Two things worth knowing before you trust an ordering: names sort by the
|
|
94
|
-
database's collation rather than a natural sort, so `Q10` comes before `Q9`; and
|
|
95
|
-
an unrecognised value is ignored rather than refused — ordering is not a filter,
|
|
96
|
-
so a bad one costs the default order and never an error.
|
|
97
|
-
|
|
98
|
-
## 4.3.0 — `list_ideas` can say what order it wants
|
|
99
|
-
|
|
100
|
-
Additive, one optional input. `list_ideas` takes **`sort`**: `newest` (the
|
|
101
|
-
default, and what every previous release did), `oldest`, `updated` (recently
|
|
102
|
-
edited first) or `title` (A-Z). Nothing is renamed, nothing is removed, no scope
|
|
103
|
-
changes, and a call that omits it behaves exactly as before.
|
|
104
|
-
|
|
105
|
-
It closes a gap rather than adding a capability: Tensor's own Ideas stream has
|
|
106
|
-
offered these four orders for as long as the arrangement work has been in, and
|
|
107
|
-
`GET /api/ideas?sort=` has parsed them the whole time — the tool simply had no
|
|
108
|
-
way to ask, so anything an agent wanted in a different order had to be paged out
|
|
109
|
-
in full and re-sorted locally, which for a capped listing quietly answers the
|
|
110
|
-
wrong question. `list_todos` has had its own `sort` since it shipped; this is
|
|
111
|
-
that shape one noun over.
|
|
112
|
-
|
|
113
|
-
**There is deliberately no `manual`.** A todo carries a fractional rank key and
|
|
114
|
-
can be hand-placed; an idea has no such column, and an inbox is not something
|
|
115
|
-
anyone arranges by hand. An unrecognised value is ignored rather than refused —
|
|
116
|
-
ordering is not a filter, so a bad one costs you the default order and never an
|
|
117
|
-
error.
|
|
118
|
-
|
|
119
|
-
## 4.2.0 — an idea's body is a document
|
|
120
|
-
|
|
121
|
-
Additive, and the wire did not change shape. An idea's body used to be a plain
|
|
122
|
-
`TEXT` column; it is a TipTap document now, the same as a memo's body and the
|
|
123
|
-
same as an idea's own comments, so an idea can hold an **inline image**.
|
|
124
|
-
|
|
125
|
-
`body` still goes in as plain text and still comes back as plain text — Tensor
|
|
126
|
-
wraps what you send into a document (one paragraph per line) and derives `body`
|
|
127
|
-
back out of it for search and previews. Reads gain `bodyJson`, the document
|
|
128
|
-
itself; it is `null` on a capture written before this release that has not been
|
|
129
|
-
edited since, which means "`body` is the whole of it". Nothing is renamed,
|
|
130
|
-
nothing is removed and no scope changes, so no installed client and no issued
|
|
131
|
-
key is affected.
|
|
132
|
-
|
|
133
|
-
**An agent cannot put an image INSIDE the prose, and that is deliberate.** These
|
|
134
|
-
tools take `body` as text and there is no `bodyJson` input: publishing the
|
|
135
|
-
editor's node shape as a tool input would freeze an internal name into a
|
|
136
|
-
permanent major-bump obligation, and hand-built ProseMirror JSON is the most
|
|
137
|
-
likely thing to arrive unopenable. The capability you actually want — "give this
|
|
138
|
-
idea a picture" — is the **gallery**, and it is the same file row an inline
|
|
139
|
-
image points at: `create_idea_upload_url` → PUT the bytes → confirm the
|
|
140
|
-
`storageKey` in `media`. A URL or a markdown image typed into `body` is stored
|
|
141
|
-
as the literal text you typed.
|
|
142
|
-
|
|
143
|
-
**Two things to know before you write one.** Sending `body` REPLACES the whole
|
|
144
|
-
document, inline images included — that is the honest reading of "set the body
|
|
145
|
-
to this text", and it is worth a read of the idea first if you did not write it.
|
|
146
|
-
The image is not destroyed: an inline image *is* a file row in the idea's
|
|
147
|
-
gallery, so it survives there and only stops appearing in the prose. And `body`
|
|
148
|
-
is now capped at 256000 characters, the ceiling todos, memos and comments have
|
|
149
|
-
always had; a longer body is refused at the edge rather than stored and then
|
|
150
|
-
failing to open.
|
|
151
|
-
|
|
152
|
-
## 4.1.0 — an idea's record links
|
|
153
|
-
|
|
154
|
-
Additive. Three new tools — **`list_idea_links`**, **`attach_idea_link`**,
|
|
155
|
-
**`detach_idea_link`** — plus a `targetType`/`targetId` filter on `list_ideas`.
|
|
156
|
-
Nothing is renamed, nothing is removed and no scope changes, so every installed
|
|
157
|
-
client keeps working and no key needs re-issuing.
|
|
158
|
-
|
|
159
|
-
What it closes is an asymmetry rather than a gap in Tensor: `links` is
|
|
160
|
-
undirected and a todo could already be linked to an idea through
|
|
161
|
-
`attach_todo_link`, so an agent could file work against an idea and had no way
|
|
162
|
-
to file an idea against anything. Tensor's own web app made those links through
|
|
163
|
-
a session-only route, which is why nothing was broken and why no key could do
|
|
164
|
-
it.
|
|
165
|
-
|
|
166
|
-
They carry the same two-scope rule as their todo and file counterparts — the
|
|
167
|
-
surface's own scope plus the link target's read scope, reads narrowing silently
|
|
168
|
-
and writes answering `403` — and the same one-door rule about attachments: an
|
|
169
|
-
idea's files are its **gallery** (`get_idea` → `media`), `attach_idea_link` will
|
|
170
|
-
not take `file`, and `detach_idea_link` refuses a gallery link id with a `409`
|
|
171
|
-
instead of quietly removing a photo.
|
|
172
|
-
|
|
173
|
-
## 4.0.0 — Archive removed from Ideas
|
|
174
|
-
|
|
175
|
-
Ideas follows Todos. **`list_ideas` loses `archived`** and **`update_idea` loses
|
|
176
|
-
the `archived` field**; Delete is the only way to take a capture out of the
|
|
177
|
-
stream, it is soft, and the row lands in a Trash that empties itself 60 days
|
|
178
|
-
later. `delete_idea` and `restore_idea` are unchanged and already did exactly
|
|
179
|
-
this.
|
|
180
|
-
|
|
181
|
-
No tool was renamed and no scope changed, so **no key needs re-issuing** — but a
|
|
182
|
-
saved prompt or script that passes `archived` to either tool stops archiving,
|
|
183
|
-
and that is what makes it major. Both were REMOVED rather than accepted and
|
|
184
|
-
ignored: a read filter that quietly stops filtering only widens a result set,
|
|
185
|
-
while a write that quietly does nothing reports success for work it did not do.
|
|
186
|
-
|
|
187
|
-
Tensor's HTTP API keeps `?archived` on `GET /api/ideas` as an inert parameter
|
|
188
|
-
for the same read-side reason, so a raw HTTP caller sees the whole stream rather
|
|
189
|
-
than an error. `PATCH /api/ideas/:id` refuses an `archived` field outright.
|
|
190
|
-
|
|
191
|
-
## 3.0.0 — Archive removed from Todos
|
|
192
|
-
|
|
193
|
-
`archive_todo` is gone; **`delete_todo`** replaces it. The rename carries a real change: the old tool archived a todo (a permanent resting place, no expiry), and the new one soft-deletes it to a Trash that **empties itself 60 days after deletion**. `restore_todo` still undoes it, and now takes `withAncestors` for the case where an ancestor is also in Trash. `list_todos` loses `includeArchived` / `archivedOnly` and gains `trash`.
|
|
194
|
-
|
|
195
|
-
No scope changed and **no key needs re-issuing** — `tensor:todos:write` covers both — but a saved prompt or script that calls `archive_todo` by name stops resolving, which is what makes this major. There is deliberately no purge tool and no empty-Trash tool: those are session-only in Tensor, and a tool whose every call returns 403 would be a promise this server cannot keep.
|
|
196
|
-
|
|
197
|
-
## 2.1.0 — todos, ideas, and full files access
|
|
198
|
-
|
|
199
|
-
Tensor opened its work surfaces to API keys (2026-08), and this server grew tools for all three: todos (with workflow states and canonical tags), the ideas capture inbox, and full file management alongside the existing export manifest. Additive only — every existing tool, name and scope is untouched, so installed clients keep working. The new tools need the new scopes (`tensor:todos:read/write`, `tensor:ideas:read/write`, `tensor:files:write` — see the table below) attached to your key when it is issued or re-issued.
|
|
3
|
+
A Model Context Protocol server that exposes Tensor as tools for AI assistants.
|
|
4
|
+
|
|
5
|
+
Tensor is a private family office workbench: a ledger of entities, accounts,
|
|
6
|
+
assets, positions and transactions, plus the work around it. Through this
|
|
7
|
+
server an assistant reaches the ledger and its reference catalogs, the
|
|
8
|
+
dry-run/apply import pipeline, price and quote lookups, scope-aware site-wide
|
|
9
|
+
search, Files, Todos, Ideas, and Web (bookmarks in a folder tree, and the tab
|
|
10
|
+
groups the browser extension parks).
|
|
11
|
+
|
|
12
|
+
**Every credential obeys the same deny-by-default REST scopes and route
|
|
13
|
+
allowlist**, so an MCP client can never reach anything its credential could
|
|
14
|
+
not reach over REST. The boundary is deliberate: **no unrecoverable
|
|
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
|
|
18
|
+
reasoning lives in `docs/contract/MCP.md` in the Tensor repo, and Tensor's
|
|
19
|
+
smoke tests assert those boundaries in both directions.
|
|
20
|
+
|
|
21
|
+
Published as [`@levitating/tensor-mcp@^5.2.0`](https://www.npmjs.com/package/@levitating/tensor-mcp).
|
|
22
|
+
The complete inventory is the tables below — every tool, nothing needing a
|
|
23
|
+
clone of the Tensor repo. CI derives and checks every listed name against
|
|
24
|
+
`mcp-server/tools.ts`, in both directions. Reader-facing docs:
|
|
25
|
+
[tensor.levitating.org/docs/mcp](https://tensor.levitating.org/docs/mcp).
|
|
26
|
+
|
|
27
|
+
**Contents:** [Hosted or local](#do-you-need-this-package-at-all) ·
|
|
28
|
+
[Configuration](#configuration) · [Writes are permanent](#writes-are-permanent) ·
|
|
29
|
+
[Available tools](#available-tools) · [Scopes](#scopes) · [Changelog](#changelog)
|
|
200
30
|
|
|
201
31
|
## Do you need this package at all?
|
|
202
32
|
|
|
@@ -256,7 +86,7 @@ Set two environment variables:
|
|
|
256
86
|
```bash
|
|
257
87
|
TENSOR_API_KEY=ak_live_xxxxxxxxxxxx \
|
|
258
88
|
TENSOR_BASE_URL=https://tensor.levitating.org \
|
|
259
|
-
npx -y @levitating/tensor-mcp@^5.
|
|
89
|
+
npx -y @levitating/tensor-mcp@^5.2.0
|
|
260
90
|
```
|
|
261
91
|
|
|
262
92
|
## Claude Code integration
|
|
@@ -269,7 +99,7 @@ Add to your `~/.claude.json` or project `.claude.json`:
|
|
|
269
99
|
"tensor": {
|
|
270
100
|
"type": "stdio",
|
|
271
101
|
"command": "npx",
|
|
272
|
-
"args": ["-y", "@levitating/tensor-mcp@^5.
|
|
102
|
+
"args": ["-y", "@levitating/tensor-mcp@^5.2.0"],
|
|
273
103
|
"env": {
|
|
274
104
|
"TENSOR_API_KEY": "ak_live_your_key_here",
|
|
275
105
|
"TENSOR_BASE_URL": "https://your-instance.example.com"
|
|
@@ -288,7 +118,7 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
|
|
|
288
118
|
"mcpServers": {
|
|
289
119
|
"tensor": {
|
|
290
120
|
"command": "npx",
|
|
291
|
-
"args": ["-y", "@levitating/tensor-mcp@^5.
|
|
121
|
+
"args": ["-y", "@levitating/tensor-mcp@^5.2.0"],
|
|
292
122
|
"env": {
|
|
293
123
|
"TENSOR_API_KEY": "ak_live_your_key_here",
|
|
294
124
|
"TENSOR_BASE_URL": "https://your-instance.example.com"
|
|
@@ -300,18 +130,34 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
|
|
|
300
130
|
|
|
301
131
|
## Writes are permanent
|
|
302
132
|
|
|
303
|
-
Four tools have consequences an MCP client cannot undo
|
|
133
|
+
Four tools have consequences an MCP client cannot undo. Confirm with the user
|
|
134
|
+
before calling them:
|
|
135
|
+
|
|
136
|
+
- **`create_transaction`**: the ledger is append-only. There is no update or delete for a transaction, because position state (quantity, average cost, cost basis, realized gain) is a non-invertible fold over it. A mistake is corrected by posting a *compensating* entry of the opposite type, never by editing.
|
|
137
|
+
- **`delete_position`**: hard-deletes the position together with its entire transaction ledger, valuation-event history, loan/fund terms, relations and attachments. To record an exit, use `sell_all_position` instead; that keeps the history.
|
|
138
|
+
- **`delete_bookmark_folder`**: destroys the folder row outright, and it is the one irreversible thing `tensor:bookmarks:write` grants. Nothing filed under it is lost (its bookmarks are unfiled and its sub-folders promoted, in one transaction), but the folder and the filing decision it recorded are gone, with no Trash behind it. It is the opposite of `delete_file_folder`, which refuses a non-empty folder; this one accepts one, so its reach is larger than the sibling it resembles.
|
|
139
|
+
- **`data_apply`**: writes a whole batch. Always `data_dry_run` first and read the preview.
|
|
304
140
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
- **`delete_bookmark_folder`** — destroys the folder row outright, and it is the one irreversible thing `tensor:bookmarks:write` grants. Nothing filed under it is lost (its bookmarks are unfiled, its sub-folders promoted, in one transaction) but the folder and the filing decision it recorded are gone: there is no Trash behind it and no restore. Note it is the opposite of `delete_file_folder`, which refuses a non-empty folder — this one accepts one, so its reach is larger than the sibling it resembles.
|
|
308
|
-
- **`data_apply`** — writes a whole batch. Always `data_dry_run` first and read the preview.
|
|
141
|
+
Deletes on entities, accounts, assets and reference data are likewise
|
|
142
|
+
immediate and unrecoverable.
|
|
309
143
|
|
|
310
|
-
|
|
144
|
+
The work surfaces are deliberately softer. `delete_file`, `delete_idea`,
|
|
145
|
+
`delete_todo`, `delete_bookmark` and `delete_tab_group` move a row to a
|
|
146
|
+
restorable Trash, every permanent purge is UI-only, and every Trash empties
|
|
147
|
+
itself 60 days after deletion on one shared window and one sweeper. Still
|
|
148
|
+
immediate on those surfaces: `delete_todo_state`, `delete_todo_tag`,
|
|
149
|
+
`delete_file_folder` and `delete_tab` (one tab out of a live group; the group
|
|
150
|
+
is the recoverable unit, so a tab has no soft state of its own). The first
|
|
151
|
+
three refuse while in use; once through, there is no undo.
|
|
311
152
|
|
|
312
153
|
## Available Tools
|
|
313
154
|
|
|
314
|
-
The tables below are the complete list.
|
|
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,
|
|
158
|
+
`listRegisteredToolNames()` in `tools.ts` derives the same list. Neither this
|
|
159
|
+
file nor any other states a tool count, because a typed count is the first
|
|
160
|
+
thing to go stale.
|
|
315
161
|
|
|
316
162
|
### Rollups, quotes, sync & search
|
|
317
163
|
|
|
@@ -480,13 +326,13 @@ The filed half of Web: pages somebody decided to keep, in a folder tree. `/api/b
|
|
|
480
326
|
|
|
481
327
|
| Tool | Scope | Description |
|
|
482
328
|
|------|-------|-------------|
|
|
483
|
-
| `list_bookmarks` | `tensor:bookmarks:read` | The library,
|
|
329
|
+
| `list_bookmarks` | `tensor:bookmarks:read` | The library in the order the owner arranged it: Unfiled first, then folder by folder down the tree. `folderId` is three-valued — an id, `'none'` for the unfiled, or omitted for everything — and `trash` gives the deleted rows |
|
|
484
330
|
| `get_bookmark` | `tensor:bookmarks:read` | One bookmark, with the `normalizedUrl` duplicate detection compares |
|
|
485
331
|
| `create_bookmark` | `tensor:bookmarks:write` | File a page. Only `url` is required; no folder means unfiled, which is a resting state |
|
|
486
332
|
| `update_bookmark` | `tensor:bookmarks:write` | Partial update — title, url, folder, excerpt, favicon. `folderId: null` unfiles |
|
|
487
333
|
| `delete_bookmark` | `tensor:bookmarks:write` | Move to Trash. Soft — restorable; the purge is UI-only |
|
|
488
334
|
| `restore_bookmark` | `tensor:bookmarks:write` | Restore, back into the folder it was filed in |
|
|
489
|
-
| `list_bookmark_folders` | `tensor:bookmarks:read` | The folder tree |
|
|
335
|
+
| `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 |
|
|
490
336
|
| `create_bookmark_folder` | `tensor:bookmarks:write` | Create a folder, optionally nested |
|
|
491
337
|
| `update_bookmark_folder` | `tensor:bookmarks:write` | Rename or re-parent. A cycle or a depth ceiling refuses with `409` saying which |
|
|
492
338
|
| `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 |
|
|
@@ -497,7 +343,7 @@ Tabs parked from the browser extension, kept together and in order. Scoped SEPAR
|
|
|
497
343
|
|
|
498
344
|
| Tool | Scope | Description |
|
|
499
345
|
|------|-------|-------------|
|
|
500
|
-
| `list_tab_groups` | `tensor:tabs:read` | Every group, hydrated with its tabs. Starred first. `limit`/`offset` page the groups; a group's tabs are never truncated |
|
|
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 |
|
|
501
347
|
| `get_tab_group` | `tensor:tabs:read` | One group with its tabs in order |
|
|
502
348
|
| `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 |
|
|
503
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 |
|
|
@@ -533,3 +379,199 @@ Your API key needs the following Tensor scopes, attached when the key is created
|
|
|
533
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.
|
|
534
380
|
|
|
535
381
|
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
|
+
|
|
383
|
+
## Changelog
|
|
384
|
+
|
|
385
|
+
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
|
+
|
|
387
|
+
### 5.2.0 — Income settles as cash or in kind
|
|
388
|
+
No new tool and no breaking change. `create_transaction` gains the `coupon`
|
|
389
|
+
type and an optional `settlement` input (`cash` | `in_kind`) for the three
|
|
390
|
+
income types, which now follow one rule under three names. Cash income books
|
|
391
|
+
realized gain on the paying position and moves no units. In-kind income adds
|
|
392
|
+
the units received at a cost per unit (`price`), normally 0, so free units
|
|
393
|
+
lower the average cost and show as unrealized gain; the position keeps its
|
|
394
|
+
market price. A call without `settlement` means what it meant in 5.1 — a
|
|
395
|
+
dividend books income, an interest row adds units — so nothing installed
|
|
396
|
+
changes meaning. `repayment_received` now books the part that pays off accrued
|
|
397
|
+
interest as realized income, interest first.
|
|
398
|
+
|
|
399
|
+
### 5.1.0 — Web: bookmarks and tab groups
|
|
400
|
+
Seventeen new tools, no breaking change. The Web surface — bookmarks filed into
|
|
401
|
+
a folder tree, and tab groups parked from the browser extension — has had
|
|
402
|
+
tables, REST routes, scopes and an OpenAPI contract since it shipped, and had
|
|
403
|
+
none of them here.
|
|
404
|
+
|
|
405
|
+
Bookmarks: `list_bookmarks`, `get_bookmark`, `create_bookmark`,
|
|
406
|
+
`update_bookmark`, `delete_bookmark`, `restore_bookmark`, and the folder tree
|
|
407
|
+
with `list_bookmark_folders`, `create_bookmark_folder`,
|
|
408
|
+
`update_bookmark_folder`, `delete_bookmark_folder`.
|
|
409
|
+
|
|
410
|
+
Tab groups: `list_tab_groups`, `get_tab_group`, `create_tab_group`,
|
|
411
|
+
`update_tab_group`, `delete_tab`, `delete_tab_group`, `restore_tab_group`.
|
|
412
|
+
|
|
413
|
+
Two new scopes, and they are separate on purpose: `tensor:bookmarks:read` /
|
|
414
|
+
`:write` and `tensor:tabs:read` / `:write`. A synced tab group is in effect a
|
|
415
|
+
partial browsing history, so a key issued to read the pages you deliberately
|
|
416
|
+
filed must not also read every page you merely parked. Existing keys carry
|
|
417
|
+
neither and reach neither — attach them when you create the key.
|
|
418
|
+
|
|
419
|
+
Both deletes are soft and both restores are here. Neither permanent purge is,
|
|
420
|
+
on the rule every work surface shares: a key may fill a Trash and only a person
|
|
421
|
+
may empty one.
|
|
422
|
+
|
|
423
|
+
### 5.0.0 — Todo labels are Todo tags
|
|
424
|
+
Breaking tool-name change. Todos and Ideas now use Tensor's canonical tag
|
|
425
|
+
catalog and assignments. Todo reads return `tags` and `tagIds`, and Todo tag
|
|
426
|
+
writes use the same records that the web app, REST API, filters and settings
|
|
427
|
+
use.
|
|
428
|
+
|
|
429
|
+
Rename calls by replacing `set_todo_labels` with `set_todo_tags`,
|
|
430
|
+
`list_todo_labels` with `list_todo_tags`, `create_todo_label` with
|
|
431
|
+
`create_todo_tag`, `update_todo_label` with `update_todo_tag`, and
|
|
432
|
+
`delete_todo_label` with `delete_todo_tag`.
|
|
433
|
+
|
|
434
|
+
There are no MCP aliases for the old tool names. Update any prompt, script or
|
|
435
|
+
saved workflow that calls a tool by name. Hosted HTTP clients only need to
|
|
436
|
+
refresh or reconnect so they fetch the latest tool catalog. Local stdio clients
|
|
437
|
+
must update to `@levitating/tensor-mcp@^5.0.0` and restart the client.
|
|
438
|
+
|
|
439
|
+
The underlying REST label routes remain deprecated compatibility adapters, but
|
|
440
|
+
new integrations should use `PUT /api/todos/:id/tags` with `{ "tagIds": [] }`.
|
|
441
|
+
MCP tools never write `tag_catalog` or `tag_assignments` directly: the REST
|
|
442
|
+
handlers validate scope and target type, then perform the canonical catalog and
|
|
443
|
+
assignment writes transactionally.
|
|
444
|
+
|
|
445
|
+
### 4.4.0 — `browse_files` can say what order it wants
|
|
446
|
+
Additive, one optional input. `browse_files` takes **`sort`**, one of
|
|
447
|
+
`modified_desc` / `modified_asc` / `added_desc` / `added_asc` / `name_asc` /
|
|
448
|
+
`name_desc` / `size_desc` / `size_asc`. The default is `added_desc` — newest
|
|
449
|
+
first, exactly what every previous release returned. Nothing is renamed, nothing
|
|
450
|
+
is removed, no scope changes, and a call that omits it behaves as before.
|
|
451
|
+
|
|
452
|
+
It closes the last gap where Tensor's Files page could do something an agent
|
|
453
|
+
could not. The four columns are the page's own — `modified` is `updated_at`,
|
|
454
|
+
`added` is `created_at`, `name` is the display title and `size` is the
|
|
455
|
+
**plaintext** length, so an encrypted file sorts by what it is rather than by
|
|
456
|
+
its envelope's overhead. One name carries both the column and the direction
|
|
457
|
+
because the server looks the value up in a closed map of `ORDER BY` fragments;
|
|
458
|
+
a direction sent separately would only be composed back into that key.
|
|
459
|
+
|
|
460
|
+
**It is a server-side order, and that is the point.** The listing is capped
|
|
461
|
+
(default 500), so re-sorting a page in the client orders the window rather than
|
|
462
|
+
the library — "the ten biggest files" computed that way is the ten biggest of
|
|
463
|
+
the five hundred most recent. Every order also ends in the file id, so paging
|
|
464
|
+
with `limit`/`offset` cannot show one row twice and skip another.
|
|
465
|
+
|
|
466
|
+
Two things worth knowing before you trust an ordering: names sort by the
|
|
467
|
+
database's collation rather than a natural sort, so `Q10` comes before `Q9`; and
|
|
468
|
+
an unrecognised value is ignored rather than refused — ordering is not a filter,
|
|
469
|
+
so a bad one costs the default order and never an error.
|
|
470
|
+
|
|
471
|
+
### 4.3.0 — `list_ideas` can say what order it wants
|
|
472
|
+
Additive, one optional input. `list_ideas` takes **`sort`**: `newest` (the
|
|
473
|
+
default, and what every previous release did), `oldest`, `updated` (recently
|
|
474
|
+
edited first) or `title` (A-Z). Nothing is renamed, nothing is removed, no scope
|
|
475
|
+
changes, and a call that omits it behaves exactly as before.
|
|
476
|
+
|
|
477
|
+
It closes a gap rather than adding a capability: Tensor's own Ideas stream has
|
|
478
|
+
offered these four orders for as long as the arrangement work has been in, and
|
|
479
|
+
`GET /api/ideas?sort=` has parsed them the whole time — the tool simply had no
|
|
480
|
+
way to ask, so anything an agent wanted in a different order had to be paged out
|
|
481
|
+
in full and re-sorted locally, which for a capped listing quietly answers the
|
|
482
|
+
wrong question. `list_todos` has had its own `sort` since it shipped; this is
|
|
483
|
+
that shape one noun over.
|
|
484
|
+
|
|
485
|
+
**There is deliberately no `manual`.** A todo carries a fractional rank key and
|
|
486
|
+
can be hand-placed; an idea has no such column, and an inbox is not something
|
|
487
|
+
anyone arranges by hand. An unrecognised value is ignored rather than refused —
|
|
488
|
+
ordering is not a filter, so a bad one costs you the default order and never an
|
|
489
|
+
error.
|
|
490
|
+
|
|
491
|
+
### 4.2.0 — an idea's body is a document
|
|
492
|
+
Additive, and the wire did not change shape. An idea's body used to be a plain
|
|
493
|
+
`TEXT` column; it is a TipTap document now, the same as a memo's body and the
|
|
494
|
+
same as an idea's own comments, so an idea can hold an **inline image**.
|
|
495
|
+
|
|
496
|
+
`body` still goes in as plain text and still comes back as plain text — Tensor
|
|
497
|
+
wraps what you send into a document (one paragraph per line) and derives `body`
|
|
498
|
+
back out of it for search and previews. Reads gain `bodyJson`, the document
|
|
499
|
+
itself; it is `null` on a capture written before this release that has not been
|
|
500
|
+
edited since, which means "`body` is the whole of it". Nothing is renamed,
|
|
501
|
+
nothing is removed and no scope changes, so no installed client and no issued
|
|
502
|
+
key is affected.
|
|
503
|
+
|
|
504
|
+
**An agent cannot put an image INSIDE the prose, and that is deliberate.** These
|
|
505
|
+
tools take `body` as text and there is no `bodyJson` input: publishing the
|
|
506
|
+
editor's node shape as a tool input would freeze an internal name into a
|
|
507
|
+
permanent major-bump obligation, and hand-built ProseMirror JSON is the most
|
|
508
|
+
likely thing to arrive unopenable. The capability you actually want — "give this
|
|
509
|
+
idea a picture" — is the **gallery**, and it is the same file row an inline
|
|
510
|
+
image points at: `create_idea_upload_url` → PUT the bytes → confirm the
|
|
511
|
+
`storageKey` in `media`. A URL or a markdown image typed into `body` is stored
|
|
512
|
+
as the literal text you typed.
|
|
513
|
+
|
|
514
|
+
**Two things to know before you write one.** Sending `body` REPLACES the whole
|
|
515
|
+
document, inline images included — that is the honest reading of "set the body
|
|
516
|
+
to this text", and it is worth a read of the idea first if you did not write it.
|
|
517
|
+
The image is not destroyed: an inline image *is* a file row in the idea's
|
|
518
|
+
gallery, so it survives there and only stops appearing in the prose. And `body`
|
|
519
|
+
is now capped at 256000 characters, the ceiling todos, memos and comments have
|
|
520
|
+
always had; a longer body is refused at the edge rather than stored and then
|
|
521
|
+
failing to open.
|
|
522
|
+
|
|
523
|
+
### 4.1.0 — an idea's record links
|
|
524
|
+
Additive. Three new tools — **`list_idea_links`**, **`attach_idea_link`**,
|
|
525
|
+
**`detach_idea_link`** — plus a `targetType`/`targetId` filter on `list_ideas`.
|
|
526
|
+
Nothing is renamed, nothing is removed and no scope changes, so every installed
|
|
527
|
+
client keeps working and no key needs re-issuing.
|
|
528
|
+
|
|
529
|
+
What it closes is an asymmetry rather than a gap in Tensor: `links` is
|
|
530
|
+
undirected and a todo could already be linked to an idea through
|
|
531
|
+
`attach_todo_link`, so an agent could file work against an idea and had no way
|
|
532
|
+
to file an idea against anything. Tensor's own web app made those links through
|
|
533
|
+
a session-only route, which is why nothing was broken and why no key could do
|
|
534
|
+
it.
|
|
535
|
+
|
|
536
|
+
They carry the same two-scope rule as their todo and file counterparts — the
|
|
537
|
+
surface's own scope plus the link target's read scope, reads narrowing silently
|
|
538
|
+
and writes answering `403` — and the same one-door rule about attachments: an
|
|
539
|
+
idea's files are its **gallery** (`get_idea` → `media`), `attach_idea_link` will
|
|
540
|
+
not take `file`, and `detach_idea_link` refuses a gallery link id with a `409`
|
|
541
|
+
instead of quietly removing a photo.
|
|
542
|
+
|
|
543
|
+
### 4.0.0 — Archive removed from Ideas
|
|
544
|
+
Ideas follows Todos. **`list_ideas` loses `archived`** and **`update_idea` loses
|
|
545
|
+
the `archived` field**; Delete is the only way to take a capture out of the
|
|
546
|
+
stream, it is soft, and the row lands in a Trash that empties itself 60 days
|
|
547
|
+
later. `delete_idea` and `restore_idea` are unchanged and already did exactly
|
|
548
|
+
this.
|
|
549
|
+
|
|
550
|
+
No tool was renamed and no scope changed, so **no key needs re-issuing** — but a
|
|
551
|
+
saved prompt or script that passes `archived` to either tool stops archiving,
|
|
552
|
+
and that is what makes it major. Both were REMOVED rather than accepted and
|
|
553
|
+
ignored: a read filter that quietly stops filtering only widens a result set,
|
|
554
|
+
while a write that quietly does nothing reports success for work it did not do.
|
|
555
|
+
|
|
556
|
+
Tensor's HTTP API keeps `?archived` on `GET /api/ideas` as an inert parameter
|
|
557
|
+
for the same read-side reason, so a raw HTTP caller sees the whole stream rather
|
|
558
|
+
than an error. `PATCH /api/ideas/:id` refuses an `archived` field outright.
|
|
559
|
+
|
|
560
|
+
### 3.0.0 — Archive removed from Todos
|
|
561
|
+
`archive_todo` is gone; **`delete_todo`** replaces it. The rename carries a real change: the old tool archived a todo (a permanent resting place, no expiry), and the new one soft-deletes it to a Trash that **empties itself 60 days after deletion**. `restore_todo` still undoes it, and now takes `withAncestors` for the case where an ancestor is also in Trash. `list_todos` loses `includeArchived` / `archivedOnly` and gains `trash`.
|
|
562
|
+
|
|
563
|
+
No scope changed and **no key needs re-issuing** — `tensor:todos:write` covers both — but a saved prompt or script that calls `archive_todo` by name stops resolving, which is what makes this major. There is deliberately no purge tool and no empty-Trash tool: those are session-only in Tensor, and a tool whose every call returns 403 would be a promise this server cannot keep.
|
|
564
|
+
|
|
565
|
+
### 2.1.0 — todos, ideas, and full files access
|
|
566
|
+
Tensor opened its work surfaces to API keys (2026-08), and this server grew tools for all three: todos (with workflow states and canonical tags), the ideas capture inbox, and full file management alongside the existing export manifest. Additive only — every existing tool, name and scope is untouched, so installed clients keep working. The new tools need the new scopes (`tensor:todos:read/write`, `tensor:ideas:read/write`, `tensor:files:write` — see the table below) attached to your key when it is issued or re-issued.
|
|
567
|
+
|
|
568
|
+
### 2.0.0 — Documents renamed to Files
|
|
569
|
+
Tensor's **Documents** feature was renamed to **Files** (2026-08), all the way down: tables, routes, scope and tool names. For an MCP client that means:
|
|
570
|
+
|
|
571
|
+
| What | Was | Now |
|
|
572
|
+
| ---- | --- | --- |
|
|
573
|
+
| Tool name | `list_documents` | `list_files` |
|
|
574
|
+
| Scope on the key | `tensor:documents:read` | `tensor:files:read` |
|
|
575
|
+
| Endpoint behind it | `GET /api/documents/manifest` | `GET /api/files/manifest` |
|
|
576
|
+
|
|
577
|
+
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.
|
package/dist/index.js
CHANGED
|
@@ -586,17 +586,22 @@ function registerAllTools(server2, api) {
|
|
|
586
586
|
// into the published bundle), so the list is a literal — pinned against
|
|
587
587
|
// TRANSACTION_TYPE_KEYS by an assertion in script/smoke-clerk-api-keys.ts
|
|
588
588
|
// so it can never silently drift again.
|
|
589
|
-
transactionType: z.string().describe("Ledger type. One of: buy, sell, deposit, withdrawal, interest, dividend, transfer_in, transfer_out, contribution, capital_call, distribution, return_of_capital, recallable_distribution, management_fee, write_off, borrow, repay, fee, loan_accrual, repayment_received. THIS FIELD, NOT THE SIGN OF ANY NUMBER, IS WHAT SETS DIRECTION. buy/contribution/capital_call update cost basis; sell/distribution realize gain; dividend
|
|
590
|
-
quantity: z.number().describe(
|
|
589
|
+
transactionType: z.string().describe("Ledger type. One of: buy, sell, deposit, withdrawal, interest, dividend, coupon, transfer_in, transfer_out, contribution, capital_call, distribution, return_of_capital, recallable_distribution, management_fee, write_off, borrow, repay, fee, loan_accrual, repayment_received. THIS FIELD, NOT THE SIGN OF ANY NUMBER, IS WHAT SETS DIRECTION. buy/contribution/capital_call update cost basis; sell/distribution realize gain; fee is logged with no P/L impact. INCOME \u2014 dividend, interest and coupon are one rule under three names: post them with `settlement` (see that field) and on the position that PAID the income. For loans YOU made: loan_accrual adds PIK interest to the balance (post amount 0), repayment_received records the borrower paying you back, interest first: the part that pays off accrued interest is booked as realized income and the rest is a return of capital with no gain \u2014 do NOT use sell/withdrawal for those. For fund LP interests (capital accounts, which have no units \u2014 post quantity 0 and put the money in amount): capital_call/contribution add paid-in capital, return_of_capital REDUCES cost basis and books no gain (use this, not distribution, for a GP returning your capital \u2014 distribution would invent a profit), recallable_distribution does the same but also restores unfunded commitment, distribution books profit, management_fee records a fee billed outside the fund (never record fees already netted inside the reported NAV \u2014 that double-counts them), write_off closes an UNDER-WATER wind-up: the fund returned less than it took, so the basis it could never return becomes a realized loss. Its AMOUNT IS DERIVED from the remaining cost basis and whatever you post is ignored \u2014 post 0. Use it only after the final return_of_capital, and only when the fund is genuinely finished; it zeroes the NAV and closes the position. It is not a distribution and never counts toward DPI or TVPI. A CAPITAL ACCOUNT ACCEPTS ONLY THOSE FUND TYPES. Posting a unitized type (buy, sell, deposit, borrow, \u2026) against a position that has a costBasis is REJECTED with a 400, because a fund has no units: a `buy 10 @ 100` would otherwise overwrite a GP-reported NAV of 1.4M with 1,000, and a `sell` would close the position outright with nothing in the app able to reopen it."),
|
|
590
|
+
quantity: z.number().describe('Units moved, as a POSITIVE magnitude \u2014 never negative. Direction comes from transactionType (a sell removes what a buy adds). Use 0 for cash and economic events that move no units: income with settlement "cash", fees, and every capital-account entry. Income with settlement "in_kind" posts the units received.'),
|
|
591
591
|
// Was documented as "positive for inflows, negative for outflows", which
|
|
592
592
|
// is not what the server does with it: both the unitized and the
|
|
593
593
|
// capital-account folds take Math.abs(amount). A negative amount was
|
|
594
594
|
// silently absorbed, so an agent following that instruction believed it
|
|
595
595
|
// had recorded an outflow and had in fact recorded an inflow.
|
|
596
|
-
amount: z.number().describe(
|
|
597
|
-
price: z.number().optional().describe("Price per unit (for buys/sells). Omit on a capital account, which has no unit price."),
|
|
596
|
+
amount: z.number().describe('Total cash that changed hands, as a POSITIVE magnitude. Do NOT signal an outflow with a negative number: the server takes the absolute value and reads direction from transactionType alone, so a negative amount is silently treated as positive rather than reversing the entry. Post 0 for loan_accrual (PIK interest \u2014 no money moves). On income with settlement "in_kind" it is stored as sent and never read: the cost comes from price alone.'),
|
|
597
|
+
price: z.number().optional().describe("Price per unit (for buys/sells). On in-kind income it is the COST per unit received (0 when omitted), never the market price \u2014 the position keeps its existing mark. Omit on a capital account, which has no unit price."),
|
|
598
598
|
fees: z.number().optional().describe("Fee amount, positive. Default: 0. Every fee is expensed exactly once: a fee on a capital_call/contribution is CAPITALIZED into cost basis, while a fee on a distribution, return_of_capital, sell or management_fee is expensed against realized gain."),
|
|
599
599
|
timestamp: z.number().optional().describe("Transaction time as epoch milliseconds. Default: now. ENTRIES MUST BE RECORDED IN DATE ORDER: a timestamp earlier than the position's latest activity is REJECTED with a 400, because the running state is folded in insert order and a backdate would silently mis-order the fold. When backfilling history, post oldest first. On a capital account the floor also includes dated NAV marks, so a capital call cannot be slipped in behind a mark that already reflects it."),
|
|
600
|
+
// Optional so every pre-5.2 call keeps its meaning. Without it a
|
|
601
|
+
// dividend still books income and moves nothing and an interest row
|
|
602
|
+
// still adds units and books nothing (the legacy rules), which is why the
|
|
603
|
+
// description asks for it explicitly rather than defaulting it here.
|
|
604
|
+
settlement: z.enum(["cash", "in_kind"]).optional().describe(`INCOME ONLY (dividend, interest, coupon); rejected with a 400 on any other type. "cash": the income was paid as money \u2014 it is booked to realized gain (amount \u2212 fees) on this position and no units move; post quantity 0. Where the money landed is NOT recorded by this row: if you track that cash balance, post a separate deposit on the cash position. "in_kind": the income was paid in units of THIS instrument (a USDC coupon into a USDC note, staking rewards, a scrip dividend): quantity is the units received and price is the COST PER UNIT, 0 when omitted (never derived from amount, which is stored as sent and not read) \u2014 free units leave total cost unchanged, lower the average cost, and show as unrealized gain until sold. A non-zero price books quantity \xD7 price as realized income now and carries it as the units' cost. Omit only to reproduce the pre-5.2 behaviour \u2014 on a loan that capitalises the interest at a cost, so it is never booked as income; record loan interest as loan_accrual instead.`),
|
|
600
605
|
memo: z.string().optional()
|
|
601
606
|
},
|
|
602
607
|
async (params) => {
|
|
@@ -949,7 +954,7 @@ function registerAllTools(server2, api) {
|
|
|
949
954
|
);
|
|
950
955
|
server2.tool(
|
|
951
956
|
"list_changes",
|
|
952
|
-
"What changed in this organization's data since a timestamp \u2014 creates, updates AND deletes, across both the CRUD routes and applied data batches. Use this to catch up incrementally instead of re-listing every table. Check `coverage.complete`: when false, the requested `since` predates the audit history and the delta cannot be trusted \u2014 do a full read instead. Resume the next poll from the returned `until`. Requires the tensor:portfolio:read scope.",
|
|
957
|
+
"What changed in this organization's data since a timestamp \u2014 creates, updates AND deletes, across both the CRUD routes and applied data batches. Use this to catch up incrementally instead of re-listing every table. Check `coverage.complete`: when false, the requested `since` predates the audit history and the delta cannot be trusted \u2014 do a full read instead. Resume the next poll from the returned `until`. The history is kept 90 days. Requires the tensor:portfolio:read scope.",
|
|
953
958
|
{
|
|
954
959
|
since: z.number().optional().describe("Epoch-ms lower bound (exclusive). Omit or 0 for everything on record."),
|
|
955
960
|
limit: z.number().optional().describe("Max changes per page. Default 500."),
|
|
@@ -1835,7 +1840,7 @@ function registerAllTools(server2, api) {
|
|
|
1835
1840
|
);
|
|
1836
1841
|
server2.tool(
|
|
1837
1842
|
"list_bookmarks",
|
|
1838
|
-
"List filed bookmarks, newest first. `folderId` is THREE-VALUED and the third value is the one that is easy to lose: a positive integer asks for one folder, the string 'none' asks for the UNFILED (folderId is null \u2014 a resting state, not an error), and omitting it asks for everything. Sending 'none' as absent turns an Unfiled view into the whole library. The response is FLAT \u2014 no folder is hydrated into a row \u2014 so read the tree with list_bookmark_folders and join on each row's folderId. Requires the tensor:bookmarks:read scope.",
|
|
1843
|
+
"List filed bookmarks in the order the owner arranged them: Unfiled first, then folder by folder in the order list_bookmark_folders answers, each folder's bookmarks in their own hand-set order (a new bookmark goes first in its folder). Keep that order \u2014 do not re-sort by date or title. The Trash (trash: true) reads newest first instead. `folderId` is THREE-VALUED and the third value is the one that is easy to lose: a positive integer asks for one folder, the string 'none' asks for the UNFILED (folderId is null \u2014 a resting state, not an error), and omitting it asks for everything. Sending 'none' as absent turns an Unfiled view into the whole library. The response is FLAT \u2014 no folder is hydrated into a row \u2014 so read the tree with list_bookmark_folders and join on each row's folderId. Requires the tensor:bookmarks:read scope.",
|
|
1839
1844
|
{
|
|
1840
1845
|
limit: z.number().optional().describe("Max results. Default 500."),
|
|
1841
1846
|
offset: z.number().optional().describe("Pagination offset"),
|
|
@@ -1919,7 +1924,7 @@ function registerAllTools(server2, api) {
|
|
|
1919
1924
|
);
|
|
1920
1925
|
server2.tool(
|
|
1921
1926
|
"list_bookmark_folders",
|
|
1922
|
-
"The bookmark folder tree \u2014 every folder in the organization, each with its parentId. Folders nest. This is a SIBLING resource of /api/bookmarks rather than a sub-path of it, but one scope opens both. Requires the tensor:bookmarks:read scope.",
|
|
1927
|
+
"The bookmark folder tree \u2014 every folder in the organization, each with its parentId, in the order the owner arranged them: parents before children, siblings in their hand-set order. Keep that order rather than sorting by name. Folders nest. This is a SIBLING resource of /api/bookmarks rather than a sub-path of it, but one scope opens both. Requires the tensor:bookmarks:read scope.",
|
|
1923
1928
|
{},
|
|
1924
1929
|
async () => {
|
|
1925
1930
|
const data = await api("GET", "/api/bookmark-folders");
|
|
@@ -1962,7 +1967,7 @@ function registerAllTools(server2, api) {
|
|
|
1962
1967
|
);
|
|
1963
1968
|
server2.tool(
|
|
1964
1969
|
"list_tab_groups",
|
|
1965
|
-
"List tab groups synced from a browser, each hydrated with its tabs \u2014 there is no per-tab read, because the group is the unit of everything except search. Starred groups come first, then
|
|
1970
|
+
"List tab groups synced from a browser, each hydrated with its tabs \u2014 there is no per-tab read, because the group is the unit of everything except search. Starred groups come first, then newest first. `limit`/`offset` page the GROUPS; a group's tabs are never truncated. Requires the tensor:tabs:read scope, which is SEPARATE from tensor:bookmarks:read on purpose: a synced group is in effect a partial browsing history.",
|
|
1966
1971
|
{
|
|
1967
1972
|
limit: z.number().optional().describe("Max GROUPS. Default 500."),
|
|
1968
1973
|
offset: z.number().optional().describe("Pagination offset, in groups"),
|
|
@@ -2008,7 +2013,7 @@ function registerAllTools(server2, api) {
|
|
|
2008
2013
|
);
|
|
2009
2014
|
server2.tool(
|
|
2010
2015
|
"update_tab_group",
|
|
2011
|
-
|
|
2016
|
+
`Edit a tab group. EXACTLY THREE FIELDS ARE EDITABLE \u2014 name, locked, starred \u2014 and the tab list is deliberately not among them: a whole-array replace would make "which tabs did I have" unanswerable from the audit trail. A tab leaves through delete_tab; tabs arrive by creating another group (the HTTP API's batched POST /api/tabs/{id}/items, used by the browser extension, has no tool). A trashed group answers 404 until it is restored. Requires the tensor:tabs:write scope.`,
|
|
2012
2017
|
{
|
|
2013
2018
|
id: z.number().describe("Tab group ID"),
|
|
2014
2019
|
name: z.string().nullable().optional().describe("Replacement name"),
|
|
@@ -2082,7 +2087,7 @@ function createApiClient(opts) {
|
|
|
2082
2087
|
// package.json
|
|
2083
2088
|
var package_default = {
|
|
2084
2089
|
name: "@levitating/tensor-mcp",
|
|
2085
|
-
version: "5.
|
|
2090
|
+
version: "5.2.0",
|
|
2086
2091
|
description: "Tensor MCP \u2014 Model Context Protocol server for the Tensor wealth management API. Exposes the Tensor API as tools for Claude, Cursor, Codex, and any MCP-aware client.",
|
|
2087
2092
|
type: "module",
|
|
2088
2093
|
main: "./dist/index.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levitating/tensor-mcp",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Tensor MCP — Model Context Protocol server for the Tensor wealth management API. Exposes the Tensor API as tools for Claude, Cursor, Codex, and any MCP-aware client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|