keepsake-mcp 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,6 +29,8 @@ No installation required. Works with Claude iOS, Claude web, Claude Desktop Conn
29
29
 
30
30
  **Endpoint:** `https://app.keepsake.place/api/mcp`
31
31
 
32
+ The official MCP registry entry (`server.json`) publishes this URL as a `streamable-http` remote, plus the project title and website. The npm package version stays on the release that was published; the registry entry version is the `version` field of `server.json`.
33
+
32
34
  **Authentication:** Pass your API key as a Bearer token in the `Authorization` header.
33
35
 
34
36
  **Claude Desktop (Connectors):**
@@ -115,7 +117,7 @@ rather than in the chat, which disappears.
115
117
  |--------|-----------|-------------|
116
118
  | `review_note` | `note_id` | Act as the editor of a note: read it, judge form and substance, leave anchored remarks in the margin, never rewrite the text |
117
119
 
118
- ## Available tools (89)
120
+ ## Available tools (96)
119
121
 
120
122
  ### Contacts
121
123
  | Tool | Description |
@@ -210,6 +212,8 @@ Material kept *alongside* a note without entering its text — an idea, a refere
210
212
  | `create_recurring_block` | Make a block recurring — from an existing block, or from scratch |
211
213
  | `update_recurring_block` | Change a recurring block from a date onward (title, duration, fixed time, weekdays) — the past is never rewritten |
212
214
  | `stop_recurring_block` | Stop a repetition from a date onward; past days keep their blocks |
215
+ | `keep_recurring_block_note` | Keep a note in a recurring block: every occurrence shows it from a date onward (a running log, a routine checklist) |
216
+ | `stop_keeping_recurring_block_note` | Stop keeping a note in a recurring block from a date onward; earlier days keep it |
213
217
 
214
218
  ### Tags
215
219
  | Tool | Description |
@@ -219,6 +223,7 @@ Material kept *alongside* a note without entering its text — an idea, a refere
219
223
  | `create_tag` | Create a new tag |
220
224
  | `update_tag` | Update a tag (name, description, color, icon, favorite, `archived` to close a project without deleting anything, order of tasks and sections via `tasks_order`) |
221
225
  | `delete_tag` | Permanently delete a tag and all its links |
226
+ | `merge_tag` | Merge a duplicate tag into another: links moved, `#source#` rewritten as the target's name, source deleted |
222
227
  | `get_tag_items` | Get items linked to a tag — filter by `types`/`status`, `summary` mode, task `sections` included |
223
228
  | `link_tag` | Link any entity to a tag |
224
229
  | `unlink_tag` | Remove a tag link |
@@ -246,6 +251,10 @@ Material kept *alongside* a note without entering its text — an idea, a refere
246
251
  | `unlink_task_contact` | Remove a contact link from a task |
247
252
  | `link_task_note` | Link a note to a task (non-destructive, the note survives) |
248
253
  | `unlink_task_note` | Remove a note link from a task |
254
+ | `link_day_block_note` | Link a note to a time block (prepare before, write what happened after) |
255
+ | `unlink_day_block_note` | Remove a note link from a time block |
256
+ | `link_entry_note` | Link a note to an entry (its write-up) |
257
+ | `unlink_entry_note` | Remove a note link from an entry |
249
258
  | `link_notes` | Link two notes together (symmetric, non-destructive) |
250
259
  | `unlink_notes` | Remove the manual link between two notes |
251
260
  | `link_note_date` | Attach a note to a calendar day (it surfaces in that day's view) |
package/build/index.js CHANGED
File without changes
package/build/tools.js CHANGED
@@ -338,6 +338,15 @@ export function registerAllTools(server, fetchApi) {
338
338
  .array(z.string().uuid())
339
339
  .optional()
340
340
  .describe("Array of tag UUIDs to link"),
341
+ note_ids: z
342
+ .array(z.string().uuid())
343
+ .optional()
344
+ .describe("Notes to link to the entry (its write-up). See link_entry_note."),
345
+ day_block_id: z
346
+ .string()
347
+ .uuid()
348
+ .optional()
349
+ .describe("Timeline block this entry tells (from list_day_blocks). One entry per block at most: a block that already has one returns 409 with its entry_id. In the app, the entry then replaces the checked block in the day's Journal."),
341
350
  },
342
351
  annotations: { title: "Create entry", destructiveHint: false, idempotentHint: false, openWorldHint: false },
343
352
  }, async (params) => {
@@ -729,7 +738,7 @@ export function registerAllTools(server, fetchApi) {
729
738
  // DAY BLOCKS (Day-view timeline)
730
739
  // ===========================================================================
731
740
  server.registerTool("list_day_blocks", {
732
- description: "List the time blocks of a day's timeline (Day view), in timeline order. A block is either an activity (type 'block') or a task bucket (type 'tasks' — groups the day's untimed tasks). The meta carries the day's raw timeline_order: \"b:<uuid>\" refs are blocks, bare uuids are tasks inside a bucket's run.\n\nRecurring blocks: listing today or a future day first creates that day's recurring blocks if they do not exist yet (same as opening the day in the app), so every block returned has a real id you can update or mark done. A block that repeats carries `repeats: { recurring_block_id, weekdays }` (ISO weekdays, 1 = Monday … 7 = Sunday); otherwise `repeats` is null. Past days are never filled in afterwards.",
741
+ description: "List the time blocks of a day's timeline (Day view), in timeline order. A block is either an activity (type 'block') or a task bucket (type 'tasks' — groups the day's untimed tasks). The meta carries the day's raw timeline_order: \"b:<uuid>\" refs are blocks, bare uuids are tasks inside a bucket's run.\n\nRecurring blocks: listing today or a future day first creates that day's recurring blocks if they do not exist yet (same as opening the day in the app), so every block returned has a real id you can update or mark done. A block that repeats carries `repeats: { recurring_block_id, weekdays }` (ISO weekdays, 1 = Monday … 7 = Sunday); otherwise `repeats` is null. Past days are never filled in afterwards.\n\nNotes: each block carries `notes` ([{ id, title, content }], real Keepsake notes linked to the block — prepared before, completed after), `note` (the first note's text) and `entry_id` (the short entry that tells the block, created by the app's \"Add details\" or by create_entry with day_block_id; null if none). A recurring block also carries `kept_notes` (same shape): notes kept by its repetition, shown on every occurrence from the day they were kept (see keep_recurring_block_note) — `notes` and `note` are that day's own notes only.",
733
742
  inputSchema: {
734
743
  date: z.string().describe("Date (YYYY-MM-DD)"),
735
744
  },
@@ -758,7 +767,7 @@ export function registerAllTools(server, fetchApi) {
758
767
  .regex(/^([01]\d|2[0-3]):[0-5]\d$/)
759
768
  .optional()
760
769
  .describe("Pin the block at a fixed wall-clock hour HH:MM (it becomes a wall other blocks flow around). Omit for automatic first-fit placement."),
761
- note: z.string().optional().describe("Free note attached to the block"),
770
+ note: z.string().optional().describe("Text of the block's note: a real note is created (kept out of the Inbox) and linked to the block. Supports #tag#, [[tag]] and @Name@. To attach an existing note, use link_day_block_note."),
762
771
  },
763
772
  annotations: { title: "Create day block", destructiveHint: false, idempotentHint: false, openWorldHint: false },
764
773
  }, async (params) => {
@@ -782,7 +791,7 @@ export function registerAllTools(server, fetchApi) {
782
791
  .nullable()
783
792
  .optional()
784
793
  .describe("Fixed wall-clock hour HH:MM. Pass null to unpin (the block flows with the rest again)."),
785
- note: z.string().nullable().optional().describe("Free note. Pass null to clear."),
794
+ note: z.string().nullable().optional().describe("Text of the block's first linked note (created and linked if the block has none). An empty value or null changes nothing: to detach a note, use unlink_day_block_note."),
786
795
  done: z.boolean().optional().describe("Mark the block done (true) or not done (false)"),
787
796
  },
788
797
  annotations: { title: "Update day block", destructiveHint: false, idempotentHint: true, openWorldHint: false },
@@ -805,7 +814,7 @@ export function registerAllTools(server, fetchApi) {
805
814
  .array(z.number().int().min(1).max(7))
806
815
  .describe("ISO weekdays the block comes back on: 1 = Monday … 7 = Sunday. Every day = [1,2,3,4,5,6,7]; working week = [1,2,3,4,5].");
807
816
  server.registerTool("list_recurring_blocks", {
808
- description: "List the user's recurring time blocks: their ideal day / ideal week (\"Meditation\" every day at 08:00, \"Writing\" on weekday mornings). A recurring block is also a habit: each day it appears on the timeline as a regular block the user checks off (see list_day_blocks), and consecutive checked days form a streak. `weekdays` is the rule in force on the given date; `next_change` announces a rule already recorded for later (a repetition that starts or stops on a future date).",
817
+ description: "List the user's recurring time blocks: their ideal day / ideal week (\"Meditation\" every day at 08:00, \"Writing\" on weekday mornings). A recurring block is also a habit: each day it appears on the timeline as a regular block the user checks off (see list_day_blocks), and consecutive checked days form a streak. `weekdays` is the rule in force on the given date; `next_change` announces a rule already recorded for later (a repetition that starts or stops on a future date). `notes` lists the notes the repetition keeps ([{ note_id, title, from_date, until_date }], until_date excluded, null = no end; see keep_recurring_block_note).",
809
818
  inputSchema: {
810
819
  date: z.string().optional().describe("Date the rule is read at (YYYY-MM-DD). Default: today (UTC)."),
811
820
  include_stopped: z.boolean().optional().describe("Also return repetitions that no longer plan anything (default false)"),
@@ -944,7 +953,7 @@ export function registerAllTools(server, fetchApi) {
944
953
  return toContent(await fetchApi(`/tags/${id}`, "PATCH", body));
945
954
  });
946
955
  server.registerTool("delete_tag", {
947
- description: "Permanently delete a tag and all its links to contacts, entries, tasks, notes, and companies.",
956
+ description: "Permanently delete a tag and all its links to contacts, entries, tasks, notes, and companies. Its #tag# / [[tag]] markers are stripped from all content (the words stay). To fold a duplicate into another tag, use merge_tag instead.",
948
957
  inputSchema: {
949
958
  id: z.string().uuid().describe("Tag UUID"),
950
959
  },
@@ -952,6 +961,16 @@ export function registerAllTools(server, fetchApi) {
952
961
  }, async ({ id }) => {
953
962
  return toContent(await fetchApi(`/tags/${id}`, "DELETE"));
954
963
  });
964
+ server.registerTool("merge_tag", {
965
+ description: "Merge a duplicate tag (page) INTO another one: all its links (contacts, entries, tasks, notes, companies) move to the target without duplicates, every #source# / [[source]] in content is rewritten as the target's name, then the source tag is deleted. Use it when two pages describe the same project or theme (e.g. 'Livre' and 'livre photo'), or when update_tag refuses a rename because the name already exists. Confirm with your user which page to keep.",
966
+ inputSchema: {
967
+ source_id: z.string().uuid().describe("UUID of the tag to merge away (it will be deleted)"),
968
+ target_id: z.string().uuid().describe("UUID of the tag to keep"),
969
+ },
970
+ annotations: { title: "Merge tags", destructiveHint: true, idempotentHint: false, openWorldHint: false },
971
+ }, async ({ source_id, target_id }) => {
972
+ return toContent(await fetchApi(`/tags/${source_id}/merge`, "POST", { target_id }));
973
+ });
955
974
  server.registerTool("link_tag", {
956
975
  description: "Link an entity (contact, entry, task, note, or company) to a tag.",
957
976
  inputSchema: {
@@ -1175,6 +1194,69 @@ export function registerAllTools(server, fetchApi) {
1175
1194
  }, async ({ task_id, note_id }) => {
1176
1195
  return toContent(await fetchApi(`/tasks/${task_id}/notes/${note_id}`, "DELETE"));
1177
1196
  });
1197
+ server.registerTool("link_day_block_note", {
1198
+ description: "Link an existing note to a time block of the timeline (N-N, non-destructive). A block's notes are where the user prepares it (before) and writes what happened (after) — the same note, completed. The app shows the note's title on the block's card and opens the note right in the block. Get block ids from list_day_blocks.",
1199
+ inputSchema: {
1200
+ day_block_id: z.string().uuid().describe("Block UUID"),
1201
+ note_id: z.string().uuid().describe("Note UUID"),
1202
+ },
1203
+ annotations: { title: "Link day block note", destructiveHint: false, idempotentHint: true, openWorldHint: false },
1204
+ }, async ({ day_block_id, note_id }) => {
1205
+ return toContent(await fetchApi(`/day-blocks/${day_block_id}/notes/${note_id}`, "POST"));
1206
+ });
1207
+ server.registerTool("unlink_day_block_note", {
1208
+ description: "Remove the link between a note and a time block. Both the block and the note survive.",
1209
+ inputSchema: {
1210
+ day_block_id: z.string().uuid().describe("Block UUID"),
1211
+ note_id: z.string().uuid().describe("Note UUID"),
1212
+ },
1213
+ annotations: { title: "Unlink day block note", destructiveHint: true, idempotentHint: true, openWorldHint: false },
1214
+ }, async ({ day_block_id, note_id }) => {
1215
+ return toContent(await fetchApi(`/day-blocks/${day_block_id}/notes/${note_id}`, "DELETE"));
1216
+ });
1217
+ server.registerTool("keep_recurring_block_note", {
1218
+ description: "Keep a note in a recurring block (the app's \"Keep for the following days\"): from `from_date` on, every occurrence of the repetition shows it — a running log for a project block, a checklist for a routine. Days already planned are included, earlier days are untouched. Nothing is copied: it is one note, the same everywhere. A note written in a recurring block belongs to that day only until it is kept. Get repetition ids from list_recurring_blocks (or `repeats.recurring_block_id` in list_day_blocks); each repetition lists its kept notes in `notes`.",
1219
+ inputSchema: {
1220
+ recurring_block_id: z.string().uuid().describe("Recurring block (repetition) UUID"),
1221
+ note_id: z.string().uuid().describe("Note UUID"),
1222
+ from_date: z.string().optional().describe("First day the note appears (YYYY-MM-DD). Default: today (UTC)."),
1223
+ },
1224
+ annotations: { title: "Keep recurring block note", destructiveHint: false, idempotentHint: true, openWorldHint: false },
1225
+ }, async ({ recurring_block_id, note_id, from_date }) => {
1226
+ return toContent(await fetchApi(`/recurring-blocks/${recurring_block_id}/notes/${note_id}`, "POST", from_date ? { from_date } : {}));
1227
+ });
1228
+ server.registerTool("stop_keeping_recurring_block_note", {
1229
+ description: "Stop keeping a note in a recurring block (the app's \"Stop keeping\"): occurrences on or after `from_date` no longer show it, earlier days keep it. The note itself survives. To keep it on one particular day only, link it to that day's block afterwards with link_day_block_note.",
1230
+ inputSchema: {
1231
+ recurring_block_id: z.string().uuid().describe("Recurring block (repetition) UUID"),
1232
+ note_id: z.string().uuid().describe("Note UUID"),
1233
+ from_date: z.string().optional().describe("First day the note no longer appears (YYYY-MM-DD). Default: today (UTC)."),
1234
+ },
1235
+ annotations: { title: "Stop keeping recurring block note", destructiveHint: true, idempotentHint: true, openWorldHint: false },
1236
+ }, async ({ recurring_block_id, note_id, from_date }) => {
1237
+ const query = from_date ? `?from_date=${encodeURIComponent(from_date)}` : "";
1238
+ return toContent(await fetchApi(`/recurring-blocks/${recurring_block_id}/notes/${note_id}${query}`, "DELETE"));
1239
+ });
1240
+ server.registerTool("link_entry_note", {
1241
+ description: "Link an existing note to an entry (N-N, non-destructive): the note is the write-up of that interaction, shown as a preview on the entry's card. Typical case: after a meeting block, the short entry (\"Meeting · Coffee with Constance\") points to the note where the user prepared then wrote the meeting.",
1242
+ inputSchema: {
1243
+ entry_id: z.string().uuid().describe("Entry UUID"),
1244
+ note_id: z.string().uuid().describe("Note UUID"),
1245
+ },
1246
+ annotations: { title: "Link entry note", destructiveHint: false, idempotentHint: true, openWorldHint: false },
1247
+ }, async ({ entry_id, note_id }) => {
1248
+ return toContent(await fetchApi(`/entries/${entry_id}/notes/${note_id}`, "POST"));
1249
+ });
1250
+ server.registerTool("unlink_entry_note", {
1251
+ description: "Remove the link between a note and an entry. Both the entry and the note survive.",
1252
+ inputSchema: {
1253
+ entry_id: z.string().uuid().describe("Entry UUID"),
1254
+ note_id: z.string().uuid().describe("Note UUID"),
1255
+ },
1256
+ annotations: { title: "Unlink entry note", destructiveHint: true, idempotentHint: true, openWorldHint: false },
1257
+ }, async ({ entry_id, note_id }) => {
1258
+ return toContent(await fetchApi(`/entries/${entry_id}/notes/${note_id}`, "DELETE"));
1259
+ });
1178
1260
  server.registerTool("link_notes", {
1179
1261
  description: "Link two notes together (knowledge base, N-N, non-destructive). The link is symmetric: both notes list each other in their linked-notes section. Use this to connect related ideas — e.g. a note that made you think of another one. Notes can also be linked inline by writing [label](note:uuid) in a note's content.",
1180
1262
  inputSchema: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keepsake-mcp",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "MCP server for Keepsake (keepsake.place), the app where creators and solo entrepreneurs empty their heads — connect your AI to your notes, tasks and contacts",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,6 +29,10 @@
29
29
  "notes"
30
30
  ],
31
31
  "license": "MIT",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/nicolascroce/keepsake-mcp"
35
+ },
32
36
  "mcpName": "io.github.nicolascroce/keepsake",
33
37
  "dependencies": {
34
38
  "@modelcontextprotocol/sdk": "^1.32.1",