keepsake-mcp 1.19.0 → 1.20.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 +4 -4
- package/build/tools.js +32 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -195,14 +195,14 @@ Material kept *alongside* a note without entering its text — an idea, a refere
|
|
|
195
195
|
|------|-------------|
|
|
196
196
|
| `list_days` | List days with their intention or question of the day (the one in force, which stays until changed), by date range |
|
|
197
197
|
| `get_day` | Get a day, its intention in force (`intention`, carried over until changed) and what was written that day (`note`) |
|
|
198
|
-
| `update_day` | Set a day's intention or question — one short line, not a journal (upsert); it stays in place on the following days until changed |
|
|
198
|
+
| `update_day` | Set a day's intention or question — one short line, not a journal (upsert), or make it a no-task day (`tasks_skipped`); it stays in place on the following days until changed |
|
|
199
199
|
|
|
200
200
|
### Day blocks (Day-view timeline)
|
|
201
201
|
| Tool | Description |
|
|
202
202
|
|------|-------------|
|
|
203
203
|
| `list_day_blocks` | List a day's time blocks, in timeline order (creates that day's recurring blocks first) |
|
|
204
|
-
| `create_day_block` | Create a block, auto-placed first-fit (or pinned via anchor_time) |
|
|
205
|
-
| `update_day_block` | Update a block (title, duration, anchor, note, done) |
|
|
204
|
+
| `create_day_block` | Create a block, auto-placed first-fit (or pinned via anchor_time), with its people and pages (contact_ids, company_ids, tag_ids) |
|
|
205
|
+
| `update_day_block` | Update a block (title, duration, anchor, note, done, people and pages) |
|
|
206
206
|
| `delete_day_block` | Delete a block and prune its timeline ref (on a recurring block: remove it from that day only) |
|
|
207
207
|
|
|
208
208
|
### Recurring blocks (ideal day / ideal week, habits)
|
|
@@ -233,7 +233,7 @@ Material kept *alongside* a note without entering its text — an idea, a refere
|
|
|
233
233
|
|------|-------------|
|
|
234
234
|
| `list_task_headers` | List all task headers (section separators) |
|
|
235
235
|
| `get_task_header` | Get a task header by ID |
|
|
236
|
-
| `create_task_header` | Create a task header (section) —
|
|
236
|
+
| `create_task_header` | Create a task header (section) — `tag_id` adds it at the bottom of that tag's page |
|
|
237
237
|
| `update_task_header` | Update a task header (name, description, collapsed) |
|
|
238
238
|
| `delete_task_header` | Permanently delete a task header |
|
|
239
239
|
|
package/build/tools.js
CHANGED
|
@@ -419,7 +419,7 @@ export function registerAllTools(server, fetchApi) {
|
|
|
419
419
|
return toContent(await fetchApi(`/tasks/${id}`));
|
|
420
420
|
});
|
|
421
421
|
server.registerTool("create_task", {
|
|
422
|
-
description: "A TASK is an action item to accomplish. Can have due date, recurrence, priority, linked to contacts and tags.\n\nCreate a new task. Title supports #tag# and [[tag]] for automatic tag linking.",
|
|
422
|
+
description: "A TASK is an action item to accomplish. Can have due date, recurrence, priority, linked to contacts and tags.\n\nCreate a new task. Title supports #tag# and [[tag]] for automatic tag linking. To file it in a section of a tag page, pass header_id: it lands at the end of that section, without touching the rest of the page's order.",
|
|
423
423
|
inputSchema: {
|
|
424
424
|
title: z.string().describe("Task title (supports #tag# and [[tag]])"),
|
|
425
425
|
description: z.string().optional().describe("Task description"),
|
|
@@ -463,6 +463,11 @@ export function registerAllTools(server, fetchApi) {
|
|
|
463
463
|
.array(z.string().uuid())
|
|
464
464
|
.optional()
|
|
465
465
|
.describe("Array of tag UUIDs to link"),
|
|
466
|
+
header_id: z
|
|
467
|
+
.string()
|
|
468
|
+
.uuid()
|
|
469
|
+
.optional()
|
|
470
|
+
.describe("Section (task header) of a tag page: the task is linked to that tag and placed at the end of the section. If the section is on several tag pages, name the right one in tag_ids."),
|
|
466
471
|
},
|
|
467
472
|
annotations: { title: "Create task", destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
468
473
|
}, async (params) => {
|
|
@@ -728,7 +733,8 @@ export function registerAllTools(server, fetchApi) {
|
|
|
728
733
|
description: "Create or update a day's intention or question of the day (upsert on the date). The `note` field is the intention or question of the day — one short line at the top of the Today view (a mantra, an intention, a single priority, or a question to keep in mind). Not a journal: never write a summary of the day here.\n\nAn intention is valid for its own day only: it does not carry over to the following days. The user types it by hand each morning, on purpose — do not set it for them unless they ask. `null` or an empty string removes it.\n\nNOT for attaching a note to a day: this field is a single line and you would overwrite the user's intention. To put a note on a day, use create_note with `dates` or link_note_date.",
|
|
729
734
|
inputSchema: {
|
|
730
735
|
date: z.string().describe("Date (YYYY-MM-DD)"),
|
|
731
|
-
note: z.string().nullable().describe("The intention or question of the day: one short line (mantra, intention, single priority, or a question to keep in mind). Not a journal summary. null or empty string = no intention that day."),
|
|
736
|
+
note: z.string().nullable().optional().describe("The intention or question of the day: one short line (mantra, intention, single priority, or a question to keep in mind). Not a journal summary. null or empty string = no intention that day. Omit to leave it unchanged."),
|
|
737
|
+
tasks_skipped: z.boolean().optional().describe("true = no-task day: the day's task blocks are hidden on the Today view and no task is changed (tasks created afterwards still show). false = bring them back. Use only when the user asks for a day without tasks."),
|
|
732
738
|
},
|
|
733
739
|
annotations: { title: "Update day", destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
734
740
|
}, async (params) => {
|
|
@@ -738,7 +744,7 @@ export function registerAllTools(server, fetchApi) {
|
|
|
738
744
|
// DAY BLOCKS (Day-view timeline)
|
|
739
745
|
// ===========================================================================
|
|
740
746
|
server.registerTool("list_day_blocks", {
|
|
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' — shows the day's untimed tasks, or what its filter selects: `filter_tag_id` = one page, `filter_due` = due dates; null = the day's tasks). The meta carries the day's raw timeline_order: \"b:<uuid>\" refs are blocks, bare uuids after a bucket are the order the user chose for its tasks.\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.",
|
|
747
|
+
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' — shows the day's untimed tasks, or what its filter selects: `filter_tag_id` = one page, `filter_due` = due dates; null = the day's tasks). The meta carries the day's raw timeline_order: \"b:<uuid>\" refs are blocks, bare uuids after a bucket are the order the user chose for its tasks.\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.\n\nPeople and pages: each block carries `contact_ids`, `company_ids` and `tag_ids` (the people, companies and pages it is about — e.g. a meeting with Romain about a project). They are an agenda intention, not history: a contact's timeline does not list blocks; the entry created by \"Add details\" carries the block's people and pages.",
|
|
742
748
|
inputSchema: {
|
|
743
749
|
date: z.string().describe("Date (YYYY-MM-DD)"),
|
|
744
750
|
},
|
|
@@ -759,8 +765,21 @@ export function registerAllTools(server, fetchApi) {
|
|
|
759
765
|
.nullable()
|
|
760
766
|
.optional()
|
|
761
767
|
.describe("Task buckets only: which tasks to show, by due date — today, overdue (today only), week (from this day to Sunday), asap, someday, all. null = the day's tasks (today + overdue + ASAP on today), the default. Every bucket shows ALL the open tasks matching its filter, even if another bucket shows them too; the app displays what fits in the block's duration (15 min per task without a duration) and the rest under « show more ».");
|
|
768
|
+
// People and pages of a block (17/11/2026): replace semantics, like a task
|
|
769
|
+
const blockContactIdsSchema = z
|
|
770
|
+
.array(z.string().uuid())
|
|
771
|
+
.optional()
|
|
772
|
+
.describe("People linked to the block (contact ids). Replaces the list. A title with @Name@ also links that person.");
|
|
773
|
+
const blockCompanyIdsSchema = z
|
|
774
|
+
.array(z.string().uuid())
|
|
775
|
+
.optional()
|
|
776
|
+
.describe("Companies linked to the block (company ids). Replaces the list.");
|
|
777
|
+
const blockTagIdsSchema = z
|
|
778
|
+
.array(z.string().uuid())
|
|
779
|
+
.optional()
|
|
780
|
+
.describe("Pages linked to the block (tag ids, from list_tags). Replaces the list. A title with #page# or [[page]] also links that page (created if needed).");
|
|
762
781
|
server.registerTool("create_day_block", {
|
|
763
|
-
description: "Create a time block on a day's timeline. The block is auto-placed in the earliest free gap large enough for it (same first-fit engine as the app); pass anchor_time to pin it at a fixed hour instead. Its \"b:<id>\" ref is inserted into the day's timeline_order for you — never write timeline_order by hand.",
|
|
782
|
+
description: "Create a time block on a day's timeline. The block is auto-placed in the earliest free gap large enough for it (same first-fit engine as the app); pass anchor_time to pin it at a fixed hour instead. Its \"b:<id>\" ref is inserted into the day's timeline_order for you — never write timeline_order by hand.\n\nA block can be about people and pages (contact_ids, company_ids, tag_ids), like a task: \"Meeting #Keepsake Dev# with @Romain Dupont@\" links the page and Romain from its title alone. A note created for the block inherits them.",
|
|
764
783
|
inputSchema: {
|
|
765
784
|
date: z.string().describe("Date (YYYY-MM-DD)"),
|
|
766
785
|
title: z.string().optional().describe("Block label (e.g. \"Deep work\", \"Lunch\")"),
|
|
@@ -783,13 +802,16 @@ export function registerAllTools(server, fetchApi) {
|
|
|
783
802
|
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."),
|
|
784
803
|
filter_tag_id: taskFilterTagSchema,
|
|
785
804
|
filter_due: taskFilterDueSchema,
|
|
805
|
+
contact_ids: blockContactIdsSchema,
|
|
806
|
+
company_ids: blockCompanyIdsSchema,
|
|
807
|
+
tag_ids: blockTagIdsSchema,
|
|
786
808
|
},
|
|
787
809
|
annotations: { title: "Create day block", destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
788
810
|
}, async (params) => {
|
|
789
811
|
return toContent(await fetchApi("/day-blocks", "POST", params));
|
|
790
812
|
});
|
|
791
813
|
server.registerTool("update_day_block", {
|
|
792
|
-
description: "Update a time block (title, duration, anchor, note, done; for a task bucket, its filter: filter_tag_id, filter_due). Only send fields you want to change. The block keeps its position in the timeline order.\n\nMarking a block done records when it actually happened
|
|
814
|
+
description: "Update a time block (title, duration, anchor, note, done, people and pages; for a task bucket, its filter: filter_tag_id, filter_due). Only send fields you want to change. The block keeps its position in the timeline order.\n\nMarking a block done records when it actually happened (it ends now and starts its planned duration earlier, never before the previous done block ended); the times can be corrected in the app. In the app's day view, what is done moves to the top, in the order it was done, and what is left follows; a finished fixed-time block no longer pushes anything. The block \"in progress\" is simply the first one not marked done, whatever the time.\n\ncontact_ids, company_ids and tag_ids replace the block's people, companies and pages; a new title with #page# or @Name@ adds what it names.",
|
|
793
815
|
inputSchema: {
|
|
794
816
|
id: z.string().uuid().describe("Block UUID"),
|
|
795
817
|
title: z.string().nullable().optional().describe("Block label"),
|
|
@@ -810,6 +832,9 @@ export function registerAllTools(server, fetchApi) {
|
|
|
810
832
|
done: z.boolean().optional().describe("Mark the block done (true) or not done (false)"),
|
|
811
833
|
filter_tag_id: taskFilterTagSchema,
|
|
812
834
|
filter_due: taskFilterDueSchema,
|
|
835
|
+
contact_ids: blockContactIdsSchema,
|
|
836
|
+
company_ids: blockCompanyIdsSchema,
|
|
837
|
+
tag_ids: blockTagIdsSchema,
|
|
813
838
|
},
|
|
814
839
|
annotations: { title: "Update day block", destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
815
840
|
}, async ({ id, ...body }) => {
|
|
@@ -1041,11 +1066,12 @@ export function registerAllTools(server, fetchApi) {
|
|
|
1041
1066
|
return toContent(await fetchApi(`/task-headers/${id}`));
|
|
1042
1067
|
});
|
|
1043
1068
|
server.registerTool("create_task_header", {
|
|
1044
|
-
description: "Create a new task header (section separator).
|
|
1069
|
+
description: "Create a new task header (section separator). Pass tag_id to add it at the bottom of that tag's page; then create_task with header_id files tasks in it. To place it elsewhere on the page, reorder tasks_order (get_tag, then update_tag): the tasks listed after \"h:<header_id>\" belong to that section.",
|
|
1045
1070
|
inputSchema: {
|
|
1046
1071
|
name: z.string().describe("Header name"),
|
|
1047
1072
|
description: z.string().optional().describe("Optional description below the header"),
|
|
1048
1073
|
collapsed: z.boolean().optional().describe("Whether the section is collapsed (default false)"),
|
|
1074
|
+
tag_id: z.string().uuid().optional().describe("Tag page to add the section to, at the bottom"),
|
|
1049
1075
|
},
|
|
1050
1076
|
annotations: { title: "Create task header", destructiveHint: false, idempotentHint: false, openWorldHint: false },
|
|
1051
1077
|
}, async (body) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keepsake-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.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": {
|