@levitating/tensor-mcp 6.2.0 → 6.3.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 +40 -7
- package/dist/index.js +112 -13
- package/package.json +1 -1
- package/skills/tensor/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -295,7 +295,7 @@ Changing any of these stays in Tensor's web app.
|
|
|
295
295
|
|
|
296
296
|
| Tool | Description |
|
|
297
297
|
|------|-------------|
|
|
298
|
-
| `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
|
|
298
|
+
| `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 Wealth page's fund card |
|
|
299
299
|
| `get_fund_performance` | One fund position's performance and terms |
|
|
300
300
|
| `list_fund_terms` | Every fund position's descriptive terms, without figures |
|
|
301
301
|
| `get_fund_terms` | One fund position's terms |
|
|
@@ -454,6 +454,7 @@ The capture inbox. An idea's body is a TipTap document since 4.2.0 — plain tex
|
|
|
454
454
|
| `restore_idea` | `tensor:ideas:write` | Restore from Trash, on the side of the archive it was deleted from |
|
|
455
455
|
| `archive_idea` | `tensor:ideas:write` | Archive: off the active stream, kept for good (5.6.0). Idempotent; an idea in Trash is a `409` |
|
|
456
456
|
| `unarchive_idea` | `tensor:ideas:write` | Back into the active stream (5.6.0). Idempotent; an idea in Trash is a `409` |
|
|
457
|
+
| `convert_idea` | `tensor:ideas:write` + `tensor:ideas:read` + the new record's scopes | The web app's Convert (6.3.0): make a todo (`tensor:todos:read` + `tensor:todos:write`; titled after the idea, in the first not-started state, linked back to it) or a bookmark (`tensor:bookmarks:write`; only for an idea with a url), then archive the idea. A memo is not offered: Memos is session-only. Undo is `unarchive_idea`; the new record stays |
|
|
457
458
|
| `get_idea_activity` | `tensor:ideas:read` | Activity feed, folded from the mutation audit log — who changed the idea, through which client and why; a rolling one-year window (past 90 days an entry says what changed, not to what), not permanent history |
|
|
458
459
|
| `list_idea_comments` | `tensor:ideas:read` | The comment thread |
|
|
459
460
|
| `create_idea_comment` | `tensor:ideas:write` | Comment (plain text, stored as TipTap JSON) |
|
|
@@ -469,20 +470,22 @@ The capture inbox. An idea's body is a TipTap document since 4.2.0 — plain tex
|
|
|
469
470
|
|
|
470
471
|
### Bookmarks
|
|
471
472
|
|
|
472
|
-
The filed half of Web: pages somebody decided to keep, in a folder tree. `/api/bookmark-folders` is a SIBLING resource rather than a sub-path — one scope opens both. Delete is a restorable Trash; the purge is session-only. A duplicate URL is flagged (`duplicateOf`), never refused.
|
|
473
|
+
The filed half of Web: pages somebody decided to keep, in a folder tree. `/api/bookmark-folders` is a SIBLING resource rather than a sub-path — one scope opens both. Delete is a restorable Trash; the purge is session-only. A duplicate URL is flagged (`duplicateOf`), never refused. Since 6.3.0 a bookmark can be **archived** on Ideas' terms — off the active library, kept for good, still readable and searchable, keeping its folder and place — and a folder can be **pinned**, a shortcut drawn first that never changes its place in the tree.
|
|
473
474
|
|
|
474
475
|
| Tool | Scope | Description |
|
|
475
476
|
|------|-------|-------------|
|
|
476
|
-
| `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`
|
|
477
|
+
| `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 — `archived` (6.3.0) gives the archived bookmarks, and `trash` the deleted rows. Archived bookmarks and the Read later queue are left out by default |
|
|
477
478
|
| `get_bookmark` | `tensor:bookmarks:read` | One bookmark, with the `normalizedUrl` duplicate detection compares |
|
|
478
479
|
| `create_bookmark` | `tensor:bookmarks:write` | File a page. Only `url` is required; no folder means unfiled, which is a resting state |
|
|
479
|
-
| `update_bookmark` | `tensor:bookmarks:write` | Partial update — title, url, folder, excerpt, favicon. `folderId: null` unfiles |
|
|
480
|
+
| `update_bookmark` | `tensor:bookmarks:write` | Partial update — title, url, folder, excerpt, favicon. `folderId: null` unfiles. Never archives: that is `archive_bookmark` |
|
|
480
481
|
| `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 |
|
|
481
482
|
| `delete_bookmark` | `tensor:bookmarks:write` | Move to Trash. Soft — restorable; the purge is UI-only |
|
|
482
483
|
| `restore_bookmark` | `tensor:bookmarks:write` | Restore, back into the folder it was filed in |
|
|
484
|
+
| `archive_bookmark` | `tensor:bookmarks:write` | Archive: off the active library, kept for good, folder and place kept (6.3.0). Idempotent; a bookmark in Trash is a `409` |
|
|
485
|
+
| `unarchive_bookmark` | `tensor:bookmarks:write` | Back into the active library, where it was (6.3.0). Idempotent; a bookmark in Trash is a `409` |
|
|
483
486
|
| `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 |
|
|
484
|
-
| `create_bookmark_folder` | `tensor:bookmarks:write` | Create a folder, optionally nested |
|
|
485
|
-
| `update_bookmark_folder` | `tensor:bookmarks:write` | Rename
|
|
487
|
+
| `create_bookmark_folder` | `tensor:bookmarks:write` | Create a folder, optionally nested and optionally `pinned` (6.3.0) |
|
|
488
|
+
| `update_bookmark_folder` | `tensor:bookmarks:write` | Rename, re-parent, or pin / unpin (`pinned`, 6.3.0 — a shortcut, not a rank). A cycle or a depth ceiling refuses with `409` saying which |
|
|
486
489
|
| `move_bookmark_folder` | `tensor:bookmarks:write` | Move under another folder and/or to a place among its siblings; the same `409`s |
|
|
487
490
|
| `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 |
|
|
488
491
|
|
|
@@ -534,6 +537,36 @@ The Tensor user who issued the key is the ceiling: a key can never do more than
|
|
|
534
537
|
|
|
535
538
|
Newest first. A tool rename or removal is a MAJOR bump; new tools and new optional inputs are MINOR (`docs/contract/MCP.md` §6).
|
|
536
539
|
|
|
540
|
+
### 6.3.0 — Bookmark Archive, folder pins, and Convert
|
|
541
|
+
New tools and new optional inputs; no tool is renamed or removed and no scope
|
|
542
|
+
changes.
|
|
543
|
+
|
|
544
|
+
- **`archive_bookmark` and `unarchive_bookmark`** (`tensor:bookmarks:write`),
|
|
545
|
+
Ideas' archive on bookmarks: an archived bookmark leaves the active library,
|
|
546
|
+
never expires, is not in Trash, keeps its folder and its place in the order,
|
|
547
|
+
and is still readable by id and found by search (its subtitle reads
|
|
548
|
+
`Archived`). Both are idempotent; a bookmark in Trash is a `409`.
|
|
549
|
+
`update_bookmark` does not take an archive field, because
|
|
550
|
+
`PATCH /api/bookmarks/:id` refuses one.
|
|
551
|
+
- **`archived` on `list_bookmarks`.** **What changes for an existing caller:**
|
|
552
|
+
Tensor now leaves archived bookmarks out of `list_bookmarks` by default,
|
|
553
|
+
whatever the package version, because the server's default changed. Pass
|
|
554
|
+
`archived: true` for the archived ones. Rows carry `archivedAt`.
|
|
555
|
+
- **`pinned` on `create_bookmark_folder` and `update_bookmark_folder`,** and on
|
|
556
|
+
every folder `list_bookmark_folders` returns. A pinned folder is a shortcut
|
|
557
|
+
drawn first on the Web page; it never changes `position` or the tree, so it
|
|
558
|
+
is not a way to reorder (that is `move_bookmark_folder`).
|
|
559
|
+
- **`convert_idea`** (`tensor:ideas:write`, plus `tensor:ideas:read` and the
|
|
560
|
+
new record's scopes): the web app's Convert. `to: "todo"` makes a todo
|
|
561
|
+
titled after the idea, in the first not-started state, born linked to the
|
|
562
|
+
idea; `to: "bookmark"` (only for an idea with a url) files it as a
|
|
563
|
+
bookmark, optionally into `folderId`. Either way the idea is archived after
|
|
564
|
+
the record exists, so a failed create changes nothing; a failed archive is
|
|
565
|
+
reported with the new record, and the fix is `archive_idea`, not a second
|
|
566
|
+
conversion. Pass an `idempotencyKey` and a retry replays the create instead
|
|
567
|
+
of making a second record. A memo cannot be made with a key, because Memos is
|
|
568
|
+
session-only.
|
|
569
|
+
|
|
537
570
|
### 6.2.0 — Three more permanent deletes ask the person first
|
|
538
571
|
No tool is renamed or removed and no scope changes. Three tools gain an
|
|
539
572
|
optional input.
|
|
@@ -642,7 +675,7 @@ renamed or removed and no scope changes.
|
|
|
642
675
|
performance (paid-in, distributions, unfunded commitment, DPI/RVPI/TVPI, IRR
|
|
643
676
|
for a closed-end fund or time-weighted return for an open-end one, NAV and its
|
|
644
677
|
staleness) and its terms, folded on the server by the same code as the fund
|
|
645
|
-
card in Tensor's
|
|
678
|
+
card in Tensor's Wealth page. Figures are in the position's currency.
|
|
646
679
|
- **`list_fund_terms` / `get_fund_terms`**, **`list_loan_terms` /
|
|
647
680
|
`get_loan_terms`**, **`list_fx_rates`**: the terms and rates behind them.
|
|
648
681
|
Changing any of them stays in the web app.
|
package/dist/index.js
CHANGED
|
@@ -106,10 +106,10 @@ A few entries can go straight through create_transaction, oldest first, each wit
|
|
|
106
106
|
|
|
107
107
|
## Ideas
|
|
108
108
|
The capture inbox: links, notes and media. create_idea needs at least one of url, body or media. A URL saved before is still created and the answer names the earlier capture in duplicateOf; offer that to the user. Pictures go in the gallery through create_idea_upload_url and the media field, never as an image link typed into body. Sending body on update_idea replaces the whole document.
|
|
109
|
-
An idea that has been handled but is worth keeping is archived with archive_idea, not moved to Trash: it leaves list_ideas (and the tag and site counts), stays readable with get_idea and findable with search_records, keeps its tags, links and media, and never expires. list_ideas with archived true reads the archived ones; unarchive_idea puts one back. Both are idempotent, and an idea in Trash must be restored first. Archiving is its own tool, never an update_idea field.
|
|
109
|
+
An idea that has been handled but is worth keeping is archived with archive_idea, not moved to Trash: it leaves list_ideas (and the tag and site counts), stays readable with get_idea and findable with search_records, keeps its tags, links and media, and never expires. list_ideas with archived true reads the archived ones; unarchive_idea puts one back. Both are idempotent, and an idea in Trash must be restored first. Archiving is its own tool, never an update_idea field. To turn an idea into a todo or a bookmark, use convert_idea: it makes the record the way the web app's Convert does (a todo linked back to the idea; a bookmark only for an idea with a url), then archives the idea. If it reports the idea was not archived, call archive_idea; do not convert again. A memo cannot be made from here, because Memos is not reachable by any connection: say so rather than make something else.
|
|
110
110
|
|
|
111
111
|
## Bookmarks
|
|
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).
|
|
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). A bookmark the user is done with but wants kept is archived (archive_bookmark), on the same terms as an idea: it leaves list_bookmarks unless you pass archived true, keeps its folder and place, never expires, and search_records still finds it with the subtitle Archived. A pinned folder is a shortcut drawn first, not a rank; reorder with move_bookmark_folder.
|
|
113
113
|
|
|
114
114
|
## Tab groups
|
|
115
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.
|
|
@@ -239,7 +239,7 @@ Work in this order and do not skip the confirmation:
|
|
|
239
239
|
text: ({ limit }) => `Triage the user's inbox. Propose first and change nothing until the user agrees.
|
|
240
240
|
|
|
241
241
|
1. list_ideas with limit ${limit && /^\d+$/.test(limit) ? limit : "20"} for the newest captures, then list_todos once with category "unstarted" and once with "started" for open work.
|
|
242
|
-
2. For each idea, suggest one of: keep as is, add tags, link it to a record (search_records to find the record), turn it into a todo (
|
|
242
|
+
2. For each idea, suggest one of: keep as is, add tags, link it to a record (search_records to find the record), turn it into a todo or a bookmark (convert_idea, which archives the idea once the record exists), archive it (archive_idea) when it has been handled but is worth keeping, or move it to Trash (delete_idea) only when nobody wants it: Trash is destroyed after 60 days, Archive never expires.
|
|
243
243
|
3. Point out open todos that look done, duplicated or stale, and todos that should be linked to a ledger record.
|
|
244
244
|
4. Present the proposals as one list the user can answer item by item, then carry out only what they approve.`
|
|
245
245
|
}
|
|
@@ -316,6 +316,33 @@ var TODO_STATE_CATEGORIES = [
|
|
|
316
316
|
];
|
|
317
317
|
var TODO_LIST_SORTS = ["manual", "created", "updated", "due", "priority"];
|
|
318
318
|
var IDEA_SORT_MODES = ["newest", "oldest", "updated", "title"];
|
|
319
|
+
var IDEA_SPINOFF_TITLE_MAX = 200;
|
|
320
|
+
function ideaSpinoffTitleMirror(idea) {
|
|
321
|
+
const firstLine = (idea.body ?? "").split("\n").map((line) => line.trim()).find(Boolean) ?? null;
|
|
322
|
+
let host = null;
|
|
323
|
+
if (idea.url) {
|
|
324
|
+
try {
|
|
325
|
+
host = new URL(idea.url).hostname.replace(/^www\./, "") || null;
|
|
326
|
+
} catch {
|
|
327
|
+
host = null;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
const name = idea.title?.trim() || firstLine || idea.siteName?.trim() || host || `IDEA-${idea.id}`;
|
|
331
|
+
const points = Array.from(name);
|
|
332
|
+
return points.length > IDEA_SPINOFF_TITLE_MAX ? `${points.slice(0, IDEA_SPINOFF_TITLE_MAX - 1).join("").trimEnd()}\u2026` : name;
|
|
333
|
+
}
|
|
334
|
+
function quickAddStateOfMirror(states) {
|
|
335
|
+
return states.find((s) => s.category === "unstarted") ?? states[0] ?? null;
|
|
336
|
+
}
|
|
337
|
+
function isWebAddressMirror(raw) {
|
|
338
|
+
if (!raw) return false;
|
|
339
|
+
try {
|
|
340
|
+
const { protocol } = new URL(raw);
|
|
341
|
+
return protocol === "http:" || protocol === "https:";
|
|
342
|
+
} catch {
|
|
343
|
+
return false;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
319
346
|
var FILE_LIST_SORTS = [
|
|
320
347
|
"modified_desc",
|
|
321
348
|
"modified_asc",
|
|
@@ -383,9 +410,9 @@ var TOOL_SCOPE_LISTS = {
|
|
|
383
410
|
"tensor:todos:read": "list_todos get_todo get_todo_subtree get_todo_activity list_todo_comments list_todo_states list_todo_tags list_todo_files list_todo_links",
|
|
384
411
|
"tensor:todos:write": "create_todo update_todo delete_todo restore_todo set_todo_parent reorder_todo set_todo_tags create_todo_comment update_todo_comment create_todo_state update_todo_state delete_todo_state create_todo_tag update_todo_tag delete_todo_tag attach_todo_file detach_todo_file attach_todo_link detach_todo_link",
|
|
385
412
|
"tensor:ideas:read": "list_ideas get_idea get_idea_activity list_idea_comments list_idea_tags list_idea_sites get_idea_media_url list_idea_links list_idea_kinds",
|
|
386
|
-
"tensor:ideas:write": "create_idea update_idea delete_idea restore_idea archive_idea unarchive_idea create_idea_comment update_idea_comment create_idea_upload_url attach_idea_link detach_idea_link",
|
|
413
|
+
"tensor:ideas:write": "create_idea update_idea delete_idea restore_idea archive_idea unarchive_idea convert_idea create_idea_comment update_idea_comment create_idea_upload_url attach_idea_link detach_idea_link",
|
|
387
414
|
"tensor:bookmarks:read": "list_bookmarks get_bookmark list_bookmark_folders",
|
|
388
|
-
"tensor:bookmarks:write": "create_bookmark update_bookmark delete_bookmark restore_bookmark create_bookmark_folder update_bookmark_folder delete_bookmark_folder move_bookmark move_bookmark_folder",
|
|
415
|
+
"tensor:bookmarks:write": "create_bookmark update_bookmark delete_bookmark restore_bookmark archive_bookmark unarchive_bookmark create_bookmark_folder update_bookmark_folder delete_bookmark_folder move_bookmark move_bookmark_folder",
|
|
389
416
|
"tensor:tabs:read": "list_tab_groups get_tab_group",
|
|
390
417
|
"tensor:tabs:write": "create_tab_group update_tab_group delete_tab delete_tab_group restore_tab_group add_tabs_to_group"
|
|
391
418
|
};
|
|
@@ -2446,6 +2473,56 @@ function defineTools(server2, api2) {
|
|
|
2446
2473
|
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
2447
2474
|
}
|
|
2448
2475
|
);
|
|
2476
|
+
server2.tool(
|
|
2477
|
+
"convert_idea",
|
|
2478
|
+
"Turn an idea into a todo or a bookmark, then archive the idea (the web app's Convert). Any idea can become a todo (titled after the idea, in the first not-started state, linked back to the idea); only an idea with a url can become a bookmark (optionally into folderId). A memo cannot be made with a key: say so rather than pick another kind. Undo is unarchive_idea; the new record stays.",
|
|
2479
|
+
{
|
|
2480
|
+
id: z2.number().describe("Idea ID"),
|
|
2481
|
+
to: z2.enum(["todo", "bookmark"]).describe("What to make: todo or bookmark"),
|
|
2482
|
+
folderId: z2.number().optional().describe("Bookmark only: file it into this folder. Omit for Unfiled.")
|
|
2483
|
+
},
|
|
2484
|
+
async ({ id, to, folderId }) => {
|
|
2485
|
+
const idea = await api2("GET", `/api/ideas/${id}`);
|
|
2486
|
+
if (idea.deletedAt != null) {
|
|
2487
|
+
throw new Error(`IDEA-${id} is in Trash. Restore it first (restore_idea), then convert.`);
|
|
2488
|
+
}
|
|
2489
|
+
let made;
|
|
2490
|
+
if (to === "bookmark") {
|
|
2491
|
+
if (!idea.url) throw new Error(`IDEA-${id} has no url, so it cannot become a bookmark. It can become a todo.`);
|
|
2492
|
+
made = await api2("POST", "/api/bookmarks", {
|
|
2493
|
+
url: idea.url,
|
|
2494
|
+
title: idea.title?.trim() || null,
|
|
2495
|
+
excerpt: idea.excerpt ?? null,
|
|
2496
|
+
siteName: idea.siteName ?? null,
|
|
2497
|
+
thumbnailUrl: isWebAddressMirror(idea.thumbnailUrl) ? idea.thumbnailUrl : null,
|
|
2498
|
+
folderId: folderId ?? null
|
|
2499
|
+
});
|
|
2500
|
+
} else {
|
|
2501
|
+
const states = await api2("GET", "/api/todo-states");
|
|
2502
|
+
const state = quickAddStateOfMirror(states);
|
|
2503
|
+
if (!state) throw new Error("There are no todo states yet, so there is nothing to file the todo under (create_todo_state).");
|
|
2504
|
+
made = await api2("POST", "/api/todos", {
|
|
2505
|
+
title: ideaSpinoffTitleMirror(idea),
|
|
2506
|
+
stateId: state.id,
|
|
2507
|
+
links: [{ targetType: "idea", targetId: id }]
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2510
|
+
let archived = idea.archivedAt != null;
|
|
2511
|
+
let archiveError = null;
|
|
2512
|
+
if (!archived) {
|
|
2513
|
+
try {
|
|
2514
|
+
await api2("POST", `/api/ideas/${id}/archive`);
|
|
2515
|
+
archived = true;
|
|
2516
|
+
} catch (e) {
|
|
2517
|
+
archiveError = e instanceof Error ? e.message : String(e);
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
const result = { converted: to, idea: { id, archived }, [to]: made };
|
|
2521
|
+
const note = archiveError ? `The ${to} was created, but IDEA-${id} was NOT archived (${archiveError}). Do not convert again: call archive_idea with id ${id}.
|
|
2522
|
+
` : "";
|
|
2523
|
+
return { content: [{ type: "text", text: note + JSON.stringify(result) }] };
|
|
2524
|
+
}
|
|
2525
|
+
);
|
|
2449
2526
|
server2.tool(
|
|
2450
2527
|
"get_idea_activity",
|
|
2451
2528
|
"An idea's latest 50 activity entries: who changed it, through which client, and why. Kept a year; past 90 days an entry says what changed, not to what.",
|
|
@@ -2585,18 +2662,20 @@ function defineTools(server2, api2) {
|
|
|
2585
2662
|
);
|
|
2586
2663
|
server2.tool(
|
|
2587
2664
|
"list_bookmarks",
|
|
2588
|
-
"List filed bookmarks in the order the owner arranged them: Unfiled first, then folder by folder as list_bookmark_folders orders them. Keep that order rather than sorting by name or date.
|
|
2665
|
+
"List filed bookmarks in the order the owner arranged them: Unfiled first, then folder by folder as list_bookmark_folders orders them. Keep that order rather than sorting by name or date. Default: the active library, leaving out archived bookmarks and the Read later queue; `archived: true` lists the archived, `trash: true` the Trash (newest first). Rows are flat; join folderId to list_bookmark_folders.",
|
|
2589
2666
|
{
|
|
2590
2667
|
limit: LIMIT_INPUT,
|
|
2591
2668
|
offset: OFFSET_INPUT,
|
|
2592
2669
|
folderId: z2.union([z2.number(), z2.literal("none")]).optional().describe("One folder by id, or 'none' for the unfiled. Omit for every bookmark."),
|
|
2593
2670
|
q: z2.string().optional().describe("Case-insensitive substring over title, url and site name"),
|
|
2671
|
+
archived: z2.boolean().optional().describe("true = the archived bookmarks. Ignored with trash."),
|
|
2594
2672
|
trash: z2.boolean().optional().describe("true = the Trash instead of the live library")
|
|
2595
2673
|
},
|
|
2596
|
-
async ({ limit, offset, folderId, q, trash }) => {
|
|
2674
|
+
async ({ limit, offset, folderId, q, archived, trash }) => {
|
|
2597
2675
|
const params = new URLSearchParams();
|
|
2598
2676
|
if (folderId !== void 0) params.set("folderId", String(folderId));
|
|
2599
2677
|
if (q) params.set("q", q);
|
|
2678
|
+
if (archived) params.set("archived", "1");
|
|
2600
2679
|
if (trash) params.set("trash", "1");
|
|
2601
2680
|
return listPage(params, limit, offset, (qs) => api2("GET", `/api/bookmarks?${qs}`));
|
|
2602
2681
|
}
|
|
@@ -2629,7 +2708,7 @@ function defineTools(server2, api2) {
|
|
|
2629
2708
|
);
|
|
2630
2709
|
server2.tool(
|
|
2631
2710
|
"update_bookmark",
|
|
2632
|
-
"Edit a bookmark. folderId null unfiles it; omitted leaves it.",
|
|
2711
|
+
"Edit a bookmark. folderId null unfiles it; omitted leaves it. To archive, use archive_bookmark.",
|
|
2633
2712
|
{
|
|
2634
2713
|
id: z2.number().describe("Bookmark ID"),
|
|
2635
2714
|
url: z2.string().optional().describe("Replacement URL"),
|
|
@@ -2677,9 +2756,27 @@ function defineTools(server2, api2) {
|
|
|
2677
2756
|
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
2678
2757
|
}
|
|
2679
2758
|
);
|
|
2759
|
+
server2.tool(
|
|
2760
|
+
"archive_bookmark",
|
|
2761
|
+
"Archive a bookmark: kept on file, never expires, still readable and searchable, keeps its folder and place. Not a delete. Undo with unarchive_bookmark. 409 for a bookmark in Trash.",
|
|
2762
|
+
{ id: z2.number().describe("Bookmark ID") },
|
|
2763
|
+
async ({ id }) => {
|
|
2764
|
+
const data = await api2("POST", `/api/bookmarks/${id}/archive`);
|
|
2765
|
+
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
2766
|
+
}
|
|
2767
|
+
);
|
|
2768
|
+
server2.tool(
|
|
2769
|
+
"unarchive_bookmark",
|
|
2770
|
+
"Return an archived bookmark to the active library, in its folder and place. 409 for a bookmark in Trash.",
|
|
2771
|
+
{ id: z2.number().describe("Bookmark ID") },
|
|
2772
|
+
async ({ id }) => {
|
|
2773
|
+
const data = await api2("POST", `/api/bookmarks/${id}/unarchive`);
|
|
2774
|
+
return { content: [{ type: "text", text: JSON.stringify(data) }] };
|
|
2775
|
+
}
|
|
2776
|
+
);
|
|
2680
2777
|
server2.tool(
|
|
2681
2778
|
"list_bookmark_folders",
|
|
2682
|
-
"The bookmark folder tree, each with parentId, in the owner's order (parents first, siblings as arranged). Keep that order rather than sorting by name.",
|
|
2779
|
+
"The bookmark folder tree, each with parentId and pinned, in the owner's order (parents first, siblings as arranged). Keep that order rather than sorting by name; pinned is a shortcut, not a rank.",
|
|
2683
2780
|
{},
|
|
2684
2781
|
async () => {
|
|
2685
2782
|
const data = await api2("GET", "/api/bookmark-folders");
|
|
@@ -2691,7 +2788,8 @@ function defineTools(server2, api2) {
|
|
|
2691
2788
|
"Create a bookmark folder, optionally inside another.",
|
|
2692
2789
|
{
|
|
2693
2790
|
name: z2.string().describe("Folder name (1-256 chars)"),
|
|
2694
|
-
parentId: z2.number().optional().describe("Nest it inside this folder. Omit for a root folder.")
|
|
2791
|
+
parentId: z2.number().optional().describe("Nest it inside this folder. Omit for a root folder."),
|
|
2792
|
+
pinned: z2.boolean().optional().describe("Pin it: a shortcut drawn first, not a rank. Never changes its place in the tree.")
|
|
2695
2793
|
},
|
|
2696
2794
|
async (params) => {
|
|
2697
2795
|
const data = await api2("POST", "/api/bookmark-folders", params);
|
|
@@ -2700,11 +2798,12 @@ function defineTools(server2, api2) {
|
|
|
2700
2798
|
);
|
|
2701
2799
|
server2.tool(
|
|
2702
2800
|
"update_bookmark_folder",
|
|
2703
|
-
"Rename a bookmark folder or change its parent (null for root). 409 for a cycle or past the depth cap.",
|
|
2801
|
+
"Rename, pin or unpin a bookmark folder, or change its parent (null for root). 409 for a cycle or past the depth cap. Pinning is a shortcut, not a rank: to reorder, use move_bookmark_folder.",
|
|
2704
2802
|
{
|
|
2705
2803
|
id: z2.number().describe("Folder ID"),
|
|
2706
2804
|
name: z2.string().optional().describe("Replacement name"),
|
|
2707
|
-
parentId: z2.number().nullable().optional().describe("New parent, or null for a root folder")
|
|
2805
|
+
parentId: z2.number().nullable().optional().describe("New parent, or null for a root folder"),
|
|
2806
|
+
pinned: z2.boolean().optional().describe("true pins it (drawn first as a shortcut), false unpins. Leaves position and parent alone.")
|
|
2708
2807
|
},
|
|
2709
2808
|
async ({ id, ...body }) => {
|
|
2710
2809
|
const data = await api2("PATCH", `/api/bookmark-folders/${id}`, body);
|
|
@@ -2918,7 +3017,7 @@ var SERVER_IDENTITY = {
|
|
|
2918
3017
|
// package.json
|
|
2919
3018
|
var package_default = {
|
|
2920
3019
|
name: "@levitating/tensor-mcp",
|
|
2921
|
-
version: "6.
|
|
3020
|
+
version: "6.3.0",
|
|
2922
3021
|
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.",
|
|
2923
3022
|
type: "module",
|
|
2924
3023
|
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.3.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
|
@@ -99,10 +99,10 @@ A few entries can go straight through create_transaction, oldest first, each wit
|
|
|
99
99
|
|
|
100
100
|
### Ideas
|
|
101
101
|
The capture inbox: links, notes and media. create_idea needs at least one of url, body or media. A URL saved before is still created and the answer names the earlier capture in duplicateOf; offer that to the user. Pictures go in the gallery through create_idea_upload_url and the media field, never as an image link typed into body. Sending body on update_idea replaces the whole document.
|
|
102
|
-
An idea that has been handled but is worth keeping is archived with archive_idea, not moved to Trash: it leaves list_ideas (and the tag and site counts), stays readable with get_idea and findable with search_records, keeps its tags, links and media, and never expires. list_ideas with archived true reads the archived ones; unarchive_idea puts one back. Both are idempotent, and an idea in Trash must be restored first. Archiving is its own tool, never an update_idea field.
|
|
102
|
+
An idea that has been handled but is worth keeping is archived with archive_idea, not moved to Trash: it leaves list_ideas (and the tag and site counts), stays readable with get_idea and findable with search_records, keeps its tags, links and media, and never expires. list_ideas with archived true reads the archived ones; unarchive_idea puts one back. Both are idempotent, and an idea in Trash must be restored first. Archiving is its own tool, never an update_idea field. To turn an idea into a todo or a bookmark, use convert_idea: it makes the record the way the web app's Convert does (a todo linked back to the idea; a bookmark only for an idea with a url), then archives the idea. If it reports the idea was not archived, call archive_idea; do not convert again. A memo cannot be made from here, because Memos is not reachable by any connection: say so rather than make something else.
|
|
103
103
|
|
|
104
104
|
### Bookmarks
|
|
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).
|
|
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). A bookmark the user is done with but wants kept is archived (archive_bookmark), on the same terms as an idea: it leaves list_bookmarks unless you pass archived true, keeps its folder and place, never expires, and search_records still finds it with the subtitle Archived. A pinned folder is a shortcut drawn first, not a rank; reorder with move_bookmark_folder.
|
|
106
106
|
|
|
107
107
|
### Tab groups
|
|
108
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.
|