bookmarks-lifecycle

v0.2.0
io.github.Fisher521/bookmarks-lifecycle Checked 4 days ago Published 4 months ago

Bookmarks on a decision clock: 24 hours to decide, 30 days to watch, or keep.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

intake Pull in newly saved bookmarks

Scan browser bookmarks (via bookmarks-mcp) and merge them into the lifecycle: new URLs land in `inbox` with their real save date persisted; already-tracked ones get reconciled (sources, title). Never deletes a record — a URL missing from every source that was successfully scanned gets `sourceGone: true`, not removed. A source that failed to read (e.g. Safari without Full Disk Access) is never treated as confirming a URL is gone. Check `sourceStatus` in the response before assuming an empty result means nothing was found. This call may first persist lazy expiry/drip housekeeping (see README)…

ParameterTypeDescription
sourcestringFilter by browser ("chrome", "safari", "firefox", …) or a source id from bookmarks-mcp's list_sources. Omit for all.

today Today's pending layer

The 24-hour layer, oldest first — the actual to-do list. Each item includes `remainingMs` until it lapses on its own. `hasEverIntaken: false` means nothing has ever been scanned in (an empty pending list in that case means "you haven't started", not "you're caught up") — call `intake` first. This is where daily_triage starts. This call may first persist lazy expiry/drip housekeeping (see README) even if you only meant to read.

decide Judge one or more pending/watching items

MUTATING TOOL. Never call until the user has explicitly confirmed the exact item ids and action in the current turn, unless the MCP host has a trusted autonomous-approval mode enabled — silence, "looks good", or an earlier preference is not confirmation. Moves items to `kept` (keep permanently), `watching` (give it 30 more days), or `lapsed` (remove from the attention queue — this never deletes the browser bookmark or the lifecycle record, and is fully undoable via `undo`). From `pending`: keep/watch/drop all allowed. From `watching`: only `keep` (use `undo` to reverse a watch/drop decisio…

ParameterTypeDescription
action *stringkeep -> kept, watch -> watching (30d), drop -> lapsed
ids *arrayOne or more item ids, from today/list_layer output. Max 25 per call.
actorClaimstringAttribution claim only — this is NOT proof of user consent. This server has no way to verify who is really behind a call; omit this field unless you have a specific reason to claim "user" or "ai" (o…
notestringWhy — stored on the item and in its history, if given (this field is optional; omitting it is fine)

list_layer List one layer (paginated)

See what's in one layer — including `lapsed`, to answer 'what did I let go of'. Paginated: default limit 50, raise it only if you actually need more in one call (a large unpaginated layer can be megabytes of JSON, which will crowd out everything else in your context). `sourceGone: true` on an item means it's no longer found in any browser source that was successfully scanned (the record itself is never deleted). This call may first persist lazy expiry/drip housekeeping (see README) even if you only meant to read.

ParameterTypeDescription
layer *string
limitinteger
offsetinteger

restore Bring a lapsed item back

MUTATING TOOL. Move one or more `lapsed` items back to `pending`, resetting their 24-hour clock. Only works on items currently `lapsed` — for `kept`/`watching` items that need reverting, use `undo` instead. This call may first persist lazy expiry/drip housekeeping (see README) even if you only meant to read.

ParameterTypeDescription
ids *arrayOne or more item ids, from today/list_layer output. Max 25 per call.
actorClaimstringAttribution claim only — this is NOT proof of user consent. This server has no way to verify who is really behind a call; omit this field unless you have a specific reason to claim "user" or "ai" (o…

undo Undo a specific state change, by history event

MUTATING TOOL. Revert an item to whatever it was immediately before one of ITS OWN history events — this works for `kept` and `watching`, not just `lapsed` (that's what `restore` is for). Only an item's current LATEST event can be undone; anything else comes back as `not-latest-event`, showing you the actual latest one to target instead. Select events either with explicit `eventIds` (from any tool's `history[].eventId`), or with `filter` (by source id / time range / attribution) to batch-undo every matching item's latest event at once. Pass `preview: true` to see exactly what would change fi…

ParameterTypeDescription
actorClaimstringAttribution claim only — this is NOT proof of user consent. This server has no way to verify who is really behind a call; omit this field unless you have a specific reason to claim "user" or "ai" (o…
eventIdsarraySpecific history event ids to undo
filterobjectAlternative to eventIds: undo every item's LATEST event matching these criteria
notestring
previewbooleanSee what would be undone without changing anything

stats Lifecycle stats

Counts per layer, how many decisions landed today (local calendar day on the machine running this server — see README), and how much is still sitting in `inbox` waiting for its daily drip slot. This call may first persist lazy expiry/drip housekeeping (see README) even if you only meant to read.