@levitating/tensor-mcp 6.1.0 → 6.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 +36 -11
- package/dist/index.js +14 -22
- package/package.json +1 -1
- package/skills/tensor/SKILL.md +3 -3
package/README.md
CHANGED
|
@@ -187,11 +187,12 @@ immediate and unrecoverable.
|
|
|
187
187
|
The work surfaces are deliberately softer. `delete_file`, `delete_idea`,
|
|
188
188
|
`delete_todo`, `delete_bookmark` and `delete_tab_group` move a row to a
|
|
189
189
|
restorable Trash, every permanent purge is UI-only, and every Trash empties
|
|
190
|
-
itself 60 days after deletion on one shared window and one sweeper.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
itself 60 days after deletion on one shared window and one sweeper. Not soft
|
|
191
|
+
on those surfaces: `delete_todo_tag` and `delete_tab` (one tab out of a live
|
|
192
|
+
group; the group is the recoverable unit, so a tab has no soft state of its
|
|
193
|
+
own) are permanent and take two calls, and `delete_todo_state` and
|
|
194
|
+
`delete_file_folder` are one call that refuses while anything uses the record.
|
|
195
|
+
Once through, there is no undo for any of the four.
|
|
195
196
|
|
|
196
197
|
### What a client can tell before it calls
|
|
197
198
|
|
|
@@ -247,8 +248,9 @@ connection's scopes.
|
|
|
247
248
|
**A permanent delete takes two calls** (since 5.8.0). `delete_position`,
|
|
248
249
|
`delete_entity`, `delete_account`, `delete_asset`, `delete_institution`,
|
|
249
250
|
`delete_entity_type`, `delete_role_type`, `delete_account_type`,
|
|
250
|
-
`delete_asset_class`, `delete_bookmark_folder`, `delete_todo_tag
|
|
251
|
-
`delete_entity_group` (since 5.10.0)
|
|
251
|
+
`delete_asset_class`, `delete_bookmark_folder`, `delete_todo_tag`,
|
|
252
|
+
`delete_entity_group` (since 5.10.0) and `delete_entity_relationship`,
|
|
253
|
+
`delete_position_relation` and `delete_tab` (since 6.2.0) destroy
|
|
252
254
|
rows no Trash brings back. The first call deletes nothing: it answers
|
|
253
255
|
`NOT DELETED.` with a preview of what would go (the record, the rows deleted
|
|
254
256
|
with it, the rows unhooked from it) and a one-time `confirmToken`. Show the
|
|
@@ -256,7 +258,10 @@ person the preview; only after they agree, call the same tool again with the
|
|
|
256
258
|
same `id` and that `confirmToken` (good for ten minutes, once). A record other
|
|
257
259
|
records still use is refused outright with what is using it. The soft deletes
|
|
258
260
|
(`delete_todo`, `delete_idea`, `delete_file`, `delete_bookmark`,
|
|
259
|
-
`delete_tab_group`, …) are one call, because Trash can undo them.
|
|
261
|
+
`delete_tab_group`, …) are one call, because Trash can undo them. So are
|
|
262
|
+
`delete_file_folder` and `delete_todo_state` (refused unless nothing uses the
|
|
263
|
+
record) and the `detach_*` tools (one edge between two records that both
|
|
264
|
+
stay).
|
|
260
265
|
|
|
261
266
|
**A list answers a page** (since 6.0.0). The paged `list_*` tools and
|
|
262
267
|
`browse_files` return `{ items, hasMore, nextOffset }`: 100 rows unless you pass
|
|
@@ -311,7 +316,7 @@ Changing any of these stays in Tensor's web app.
|
|
|
311
316
|
| `list_entity_relationships` | List entity relationships |
|
|
312
317
|
| `create_entity_relationship` | Link two entities |
|
|
313
318
|
| `update_entity_relationship` | Update a relationship |
|
|
314
|
-
| `delete_entity_relationship` | Remove a relationship |
|
|
319
|
+
| `delete_entity_relationship` | Remove a relationship; both entities stay. Permanent, two calls |
|
|
315
320
|
| `list_entity_groups` | Named sets of entities, with their member ids |
|
|
316
321
|
| `create_entity_group` | Create a group |
|
|
317
322
|
| `update_entity_group` | Rename it, or replace its members (`entityIds` is the whole list) |
|
|
@@ -337,7 +342,7 @@ Changing any of these stays in Tensor's web app.
|
|
|
337
342
|
| `sell_all_position` | Close/sell a position, keeping its history |
|
|
338
343
|
| `list_position_relations` | List position relations |
|
|
339
344
|
| `create_position_relation` | Link positions |
|
|
340
|
-
| `delete_position_relation` | Remove a relation |
|
|
345
|
+
| `delete_position_relation` | Remove a relation; both positions stay. Permanent, two calls |
|
|
341
346
|
| `list_position_events` | Valuation-event history for one position |
|
|
342
347
|
| `list_events` | Valuation-event history across all positions |
|
|
343
348
|
| `list_transactions` | List all transactions |
|
|
@@ -492,7 +497,7 @@ Tabs parked from the browser extension, kept together and in order. Scoped SEPAR
|
|
|
492
497
|
| `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 |
|
|
493
498
|
| `update_tab_group` | `tensor:tabs:write` | `name`, `locked`, `starred`; tabs arrive through `add_tabs_to_group` |
|
|
494
499
|
| `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 |
|
|
495
|
-
| `delete_tab` | `tensor:tabs:write` | Remove one tab from a live group.
|
|
500
|
+
| `delete_tab` | `tensor:tabs:write` | Remove one tab from a live group. Permanent, two calls; the group is the recoverable unit |
|
|
496
501
|
| `delete_tab_group` | `tensor:tabs:write` | Move the whole group to Trash. Soft — restorable; the purge is UI-only |
|
|
497
502
|
| `restore_tab_group` | `tensor:tabs:write` | Restore the group, tabs and all |
|
|
498
503
|
|
|
@@ -529,6 +534,26 @@ The Tensor user who issued the key is the ceiling: a key can never do more than
|
|
|
529
534
|
|
|
530
535
|
Newest first. A tool rename or removal is a MAJOR bump; new tools and new optional inputs are MINOR (`docs/contract/MCP.md` §6).
|
|
531
536
|
|
|
537
|
+
### 6.2.0 — Three more permanent deletes ask the person first
|
|
538
|
+
No tool is renamed or removed and no scope changes. Three tools gain an
|
|
539
|
+
optional input.
|
|
540
|
+
|
|
541
|
+
- **`confirmToken` on `delete_entity_relationship`, `delete_position_relation`
|
|
542
|
+
and `delete_tab`.** Each destroys a row no Trash brings back, and each was a
|
|
543
|
+
single call because no list had it. Tensor now holds them for a key or a
|
|
544
|
+
third-party connection like the other permanent deletes (DEVELOPER_API.md
|
|
545
|
+
§5.5): the first call returns `NOT DELETED.`, a preview naming the record
|
|
546
|
+
(the two entities and the role, the two positions, the tab's title) and a
|
|
547
|
+
`confirmToken`; the second call, with that token, deletes.
|
|
548
|
+
- **What changes for an existing caller:** an older stdio package cannot pass a
|
|
549
|
+
`confirmToken`, so against a Tensor that holds these three deletes it cannot
|
|
550
|
+
complete one: update to 6.2.0. The hosted endpoint is always current.
|
|
551
|
+
- **A link is an http or https address.** `create_bookmark`,
|
|
552
|
+
`update_bookmark`, `create_idea`, `update_idea`, `create_tab_group` and
|
|
553
|
+
`add_tabs_to_group` are refused with 400 for any other scheme
|
|
554
|
+
(`javascript:`, `data:`, `file:`), which Tensor used to store. No input
|
|
555
|
+
changes.
|
|
556
|
+
|
|
532
557
|
### 6.1.0 — Saying why, and working beside other agents
|
|
533
558
|
New optional inputs only; no tool is renamed or removed and no scope changes.
|
|
534
559
|
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ An idea that has been handled but is worth keeping is archived with archive_idea
|
|
|
112
112
|
Leaving folderId off files a bookmark as Unfiled, which is a normal resting place; do not invent a folder for it. Keep the order list_bookmarks and list_bookmark_folders return; the owner arranged it by hand. move_bookmark and move_bookmark_folder change a folder and a place in that order in one call. delete_bookmark is soft, delete_bookmark_folder is not (the bookmarks inside survive, the folder does not).
|
|
113
113
|
|
|
114
114
|
## Tab groups
|
|
115
|
-
Tab groups are personal: a connection sees only its own person's groups. Park a whole set of tabs in one create_tab_group call, and add more to the end with add_tabs_to_group. Only name, locked and starred are editable. delete_tab removes one tab for good; delete_tab_group is soft.
|
|
115
|
+
Tab groups are personal: a connection sees only its own person's groups. Park a whole set of tabs in one create_tab_group call, and add more to the end with add_tabs_to_group. Only name, locked and starred are editable. delete_tab removes one tab for good and takes two calls, a preview and then the confirmToken; delete_tab_group is soft.
|
|
116
116
|
|
|
117
117
|
## Links between records
|
|
118
118
|
attach_todo_link, attach_idea_link and attach_file_link join a record to any ledger record or to another work record; each list_ call returns linkIds for the matching detach_. A link to a record type your connection cannot read is refused when you write it and left out when you read, so an empty list means "none you can see". Links of kind "mention" come from @mentions in prose; remove the mention from the text rather than detaching the link.
|
|
@@ -154,10 +154,10 @@ delete_file moves a file to Trash; restore_file brings it back for 60 days. Fold
|
|
|
154
154
|
## Ask the user before
|
|
155
155
|
- any create_transaction or sell_all_position (the ledger cannot be edited afterwards);
|
|
156
156
|
- data_apply (show the dry-run preview first);
|
|
157
|
-
- every permanent delete: delete_position (takes its whole ledger), delete_entity, delete_account, delete_asset, delete_institution and the other catalog deletes, delete_entity_group, delete_bookmark_folder, delete_tab, delete_todo_tag, delete_todo_state;
|
|
157
|
+
- every permanent delete: delete_position (takes its whole ledger), delete_entity, delete_account, delete_asset, delete_institution and the other catalog deletes, delete_entity_group, delete_entity_relationship, delete_position_relation, delete_bookmark_folder, delete_tab, delete_todo_tag, delete_todo_state;
|
|
158
158
|
- sync_prices over the whole catalog;
|
|
159
159
|
- minting download links for more than the file the user asked about.
|
|
160
|
-
Tensor enforces
|
|
160
|
+
Tensor enforces those deletes itself (all but delete_todo_state, which it refuses while a todo is in the state): the call answers NOT DELETED with what would go and a confirmToken. Show the user that preview in plain words and pass the token back only after they say yes; never confirm on your own. A refused delete names what still uses the record: tell the user, do not work around it.
|
|
161
161
|
Soft deletes (todos, ideas, files, bookmarks, tab groups) are recoverable for 60 days with the restore_ tools (list_trash finds them), but still say what you are moving to Trash, including a todo's sub-tasks. Trash empties itself after those 60 days; for an idea the user wants to keep but no longer see, archive_idea is the right verb, because Archive never expires.
|
|
162
162
|
|
|
163
163
|
## Retrying
|
|
@@ -784,12 +784,9 @@ function defineTools(server2, api2) {
|
|
|
784
784
|
);
|
|
785
785
|
server2.tool(
|
|
786
786
|
"delete_entity_relationship",
|
|
787
|
-
"Delete
|
|
788
|
-
{ id: z2.number().describe("Relationship ID to delete") },
|
|
789
|
-
async ({ id }) => {
|
|
790
|
-
const data = await api2("DELETE", `/api/entity-relationships/${id}`);
|
|
791
|
-
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
792
|
-
}
|
|
787
|
+
"Delete a relationship between two entities, with its role, ownership percent, dates and notes. Both entities stay. Permanent. Two calls: the first deletes nothing and returns a preview and a confirmToken; repeat with it only after the user agrees.",
|
|
788
|
+
{ id: z2.number().describe("Relationship ID to delete"), confirmToken: CONFIRM_TOKEN_INPUT },
|
|
789
|
+
async ({ id, confirmToken }) => confirmable(() => api2("DELETE", `/api/entity-relationships/${id}`, void 0, { confirmToken }))
|
|
793
790
|
);
|
|
794
791
|
server2.tool(
|
|
795
792
|
"list_entity_groups",
|
|
@@ -1178,12 +1175,9 @@ function defineTools(server2, api2) {
|
|
|
1178
1175
|
);
|
|
1179
1176
|
server2.tool(
|
|
1180
1177
|
"delete_position_relation",
|
|
1181
|
-
"Remove a
|
|
1182
|
-
{ id: z2.number().describe("Position relation ID to delete") },
|
|
1183
|
-
async ({ id }) => {
|
|
1184
|
-
const data = await api2("DELETE", `/api/position-relations/${id}`);
|
|
1185
|
-
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
1186
|
-
}
|
|
1178
|
+
"Remove a relation between two positions. Both positions stay. Permanent. Two calls: the first deletes nothing and returns a preview and a confirmToken; repeat with it only after the user agrees.",
|
|
1179
|
+
{ id: z2.number().describe("Position relation ID to delete"), confirmToken: CONFIRM_TOKEN_INPUT },
|
|
1180
|
+
async ({ id, confirmToken }) => confirmable(() => api2("DELETE", `/api/position-relations/${id}`, void 0, { confirmToken }))
|
|
1187
1181
|
);
|
|
1188
1182
|
server2.tool(
|
|
1189
1183
|
"list_transactions",
|
|
@@ -2811,15 +2805,13 @@ function defineTools(server2, api2) {
|
|
|
2811
2805
|
);
|
|
2812
2806
|
server2.tool(
|
|
2813
2807
|
"delete_tab",
|
|
2814
|
-
"Remove one tab from a group
|
|
2808
|
+
"Remove one tab from a group for good (only groups have Trash). Permanent. Two calls: the first deletes nothing and returns a preview and a confirmToken; repeat with the same id, itemId and that token only after the user agrees.",
|
|
2815
2809
|
{
|
|
2816
2810
|
id: z2.number().describe("Tab group ID"),
|
|
2817
|
-
itemId: z2.number().describe("The tab's own id, from the group's items")
|
|
2811
|
+
itemId: z2.number().describe("The tab's own id, from the group's items"),
|
|
2812
|
+
confirmToken: CONFIRM_TOKEN_INPUT
|
|
2818
2813
|
},
|
|
2819
|
-
async ({ id, itemId }) => {
|
|
2820
|
-
const data = await api2("DELETE", `/api/tabs/${id}/items/${itemId}`);
|
|
2821
|
-
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
2822
|
-
}
|
|
2814
|
+
async ({ id, itemId, confirmToken }) => confirmable(() => api2("DELETE", `/api/tabs/${id}/items/${itemId}`, void 0, { confirmToken }))
|
|
2823
2815
|
);
|
|
2824
2816
|
server2.tool(
|
|
2825
2817
|
"delete_tab_group",
|
|
@@ -2926,7 +2918,7 @@ var SERVER_IDENTITY = {
|
|
|
2926
2918
|
// package.json
|
|
2927
2919
|
var package_default = {
|
|
2928
2920
|
name: "@levitating/tensor-mcp",
|
|
2929
|
-
version: "6.
|
|
2921
|
+
version: "6.2.0",
|
|
2930
2922
|
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.",
|
|
2931
2923
|
type: "module",
|
|
2932
2924
|
main: "./dist/index.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levitating/tensor-mcp",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.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",
|
package/skills/tensor/SKILL.md
CHANGED
|
@@ -105,7 +105,7 @@ An idea that has been handled but is worth keeping is archived with archive_idea
|
|
|
105
105
|
Leaving folderId off files a bookmark as Unfiled, which is a normal resting place; do not invent a folder for it. Keep the order list_bookmarks and list_bookmark_folders return; the owner arranged it by hand. move_bookmark and move_bookmark_folder change a folder and a place in that order in one call. delete_bookmark is soft, delete_bookmark_folder is not (the bookmarks inside survive, the folder does not).
|
|
106
106
|
|
|
107
107
|
### Tab groups
|
|
108
|
-
Tab groups are personal: a connection sees only its own person's groups. Park a whole set of tabs in one create_tab_group call, and add more to the end with add_tabs_to_group. Only name, locked and starred are editable. delete_tab removes one tab for good; delete_tab_group is soft.
|
|
108
|
+
Tab groups are personal: a connection sees only its own person's groups. Park a whole set of tabs in one create_tab_group call, and add more to the end with add_tabs_to_group. Only name, locked and starred are editable. delete_tab removes one tab for good and takes two calls, a preview and then the confirmToken; delete_tab_group is soft.
|
|
109
109
|
|
|
110
110
|
### Links between records
|
|
111
111
|
attach_todo_link, attach_idea_link and attach_file_link join a record to any ledger record or to another work record; each list_ call returns linkIds for the matching detach_. A link to a record type your connection cannot read is refused when you write it and left out when you read, so an empty list means "none you can see". Links of kind "mention" come from @mentions in prose; remove the mention from the text rather than detaching the link.
|
|
@@ -141,10 +141,10 @@ delete_file moves a file to Trash; restore_file brings it back for 60 days. Fold
|
|
|
141
141
|
### Ask the user before
|
|
142
142
|
- any create_transaction or sell_all_position (the ledger cannot be edited afterwards);
|
|
143
143
|
- data_apply (show the dry-run preview first);
|
|
144
|
-
- every permanent delete: delete_position (takes its whole ledger), delete_entity, delete_account, delete_asset, delete_institution and the other catalog deletes, delete_entity_group, delete_bookmark_folder, delete_tab, delete_todo_tag, delete_todo_state;
|
|
144
|
+
- every permanent delete: delete_position (takes its whole ledger), delete_entity, delete_account, delete_asset, delete_institution and the other catalog deletes, delete_entity_group, delete_entity_relationship, delete_position_relation, delete_bookmark_folder, delete_tab, delete_todo_tag, delete_todo_state;
|
|
145
145
|
- sync_prices over the whole catalog;
|
|
146
146
|
- minting download links for more than the file the user asked about.
|
|
147
|
-
Tensor enforces
|
|
147
|
+
Tensor enforces those deletes itself (all but delete_todo_state, which it refuses while a todo is in the state): the call answers NOT DELETED with what would go and a confirmToken. Show the user that preview in plain words and pass the token back only after they say yes; never confirm on your own. A refused delete names what still uses the record: tell the user, do not work around it.
|
|
148
148
|
Soft deletes (todos, ideas, files, bookmarks, tab groups) are recoverable for 60 days with the restore_ tools (list_trash finds them), but still say what you are moving to Trash, including a todo's sub-tasks. Trash empties itself after those 60 days; for an idea the user wants to keep but no longer see, archive_idea is the right verb, because Archive never expires.
|
|
149
149
|
|
|
150
150
|
### Retrying
|