keepsake-mcp 1.18.0 → 1.19.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.
Files changed (2) hide show
  1. package/build/tools.js +26 -5
  2. package/package.json +1 -1
package/build/tools.js CHANGED
@@ -738,7 +738,7 @@ export function registerAllTools(server, fetchApi) {
738
738
  // DAY BLOCKS (Day-view timeline)
739
739
  // ===========================================================================
740
740
  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' — 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.",
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.",
742
742
  inputSchema: {
743
743
  date: z.string().describe("Date (YYYY-MM-DD)"),
744
744
  },
@@ -746,6 +746,19 @@ export function registerAllTools(server, fetchApi) {
746
746
  }, async ({ date }) => {
747
747
  return toContent(await fetchApi(`/day-blocks${qs({ date })}`));
748
748
  });
749
+ // Task block filter (16/11/2026): a task bucket shows every open task that
750
+ // matches its page and due dates — two buckets may show the same task.
751
+ const taskFilterTagSchema = z
752
+ .string()
753
+ .uuid()
754
+ .nullable()
755
+ .optional()
756
+ .describe("Task buckets only: show only the tasks linked to this page (tag id, from list_tags). null = all pages.");
757
+ const taskFilterDueSchema = z
758
+ .array(z.enum(["today", "overdue", "week", "asap", "someday", "all"]))
759
+ .nullable()
760
+ .optional()
761
+ .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 ».");
749
762
  server.registerTool("create_day_block", {
750
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.",
751
764
  inputSchema: {
@@ -754,7 +767,7 @@ export function registerAllTools(server, fetchApi) {
754
767
  type: z
755
768
  .enum(["block", "tasks"])
756
769
  .optional()
757
- .describe("'block' = activity (default). 'tasks' = task bucket: a window that gathers the day's untimed tasks."),
770
+ .describe("'block' = activity (default). 'tasks' = task bucket: a window that shows tasks — by default the day's untimed tasks, or what filter_tag_id / filter_due select."),
758
771
  duration_minutes: z
759
772
  .number()
760
773
  .int()
@@ -768,13 +781,15 @@ export function registerAllTools(server, fetchApi) {
768
781
  .optional()
769
782
  .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."),
770
783
  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
+ filter_tag_id: taskFilterTagSchema,
785
+ filter_due: taskFilterDueSchema,
771
786
  },
772
787
  annotations: { title: "Create day block", destructiveHint: false, idempotentHint: false, openWorldHint: false },
773
788
  }, async (params) => {
774
789
  return toContent(await fetchApi("/day-blocks", "POST", params));
775
790
  });
776
791
  server.registerTool("update_day_block", {
777
- description: "Update a time block (title, duration, anchor, note, done). 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). In the app, a done block then stays at that time in the past of the day, while what is left to do stacks from the current time. A block with a fixed time keeps its hour.",
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: it ends now and starts its planned duration earlier (never before the previous done block ended). In the app, a done block then stays at that time in the past of the day, while what is left to do stacks from the current time. A block with a fixed time keeps its hour.",
778
793
  inputSchema: {
779
794
  id: z.string().uuid().describe("Block UUID"),
780
795
  title: z.string().nullable().optional().describe("Block label"),
@@ -793,6 +808,8 @@ export function registerAllTools(server, fetchApi) {
793
808
  .describe("Fixed wall-clock hour HH:MM. Pass null to unpin (the block flows with the rest again)."),
794
809
  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."),
795
810
  done: z.boolean().optional().describe("Mark the block done (true) or not done (false)"),
811
+ filter_tag_id: taskFilterTagSchema,
812
+ filter_due: taskFilterDueSchema,
796
813
  },
797
814
  annotations: { title: "Update day block", destructiveHint: false, idempotentHint: true, openWorldHint: false },
798
815
  }, async ({ id, ...body }) => {
@@ -827,7 +844,7 @@ export function registerAllTools(server, fetchApi) {
827
844
  description: "Make a time block come back on chosen weekdays. Two ways: pass `block_id` to turn an EXISTING block into a recurring one (it becomes the first occurrence and keeps its title, duration and fixed time — do this when the block is already on the timeline, otherwise that day would get it twice), or describe a new one (title, duration, optional fixed time) starting on `start_date`. Nothing is created on the timeline right away: each day's block appears when that day is opened in the app or listed with list_day_blocks. With `anchor_time` the block sits at that hour every day; without it, it is placed from the user's wake time and shifts with it.",
828
845
  inputSchema: {
829
846
  weekdays: weekdaysSchema,
830
- block_id: z.string().uuid().optional().describe("Existing block to repeat (from list_day_blocks). When given, title/type/duration/anchor/start_date are taken from that block."),
847
+ block_id: z.string().uuid().optional().describe("Existing block to repeat (from list_day_blocks). When given, title/type/duration/anchor/start_date (and a bucket's filter) are taken from that block."),
831
848
  title: z.string().optional().describe("Block label (e.g. \"Meditation\")"),
832
849
  type: z.enum(["block", "tasks"]).optional().describe("'block' = activity (default). 'tasks' = a recurring task bucket (e.g. a daily \"Writing\" window the day's tasks go into)."),
833
850
  duration_minutes: z.number().int().min(1).max(1440).optional().describe("Duration in minutes (default 30 for an activity, 60 for a bucket)"),
@@ -837,13 +854,15 @@ export function registerAllTools(server, fetchApi) {
837
854
  .optional()
838
855
  .describe("Fixed wall-clock hour HH:MM. Omit for a block that follows the wake time."),
839
856
  start_date: z.string().optional().describe("First day the rule applies (YYYY-MM-DD). Default: today (UTC). Pass the user's local date when you know it."),
857
+ filter_tag_id: taskFilterTagSchema,
858
+ filter_due: taskFilterDueSchema,
840
859
  },
841
860
  annotations: { title: "Create recurring block", destructiveHint: false, idempotentHint: false, openWorldHint: false },
842
861
  }, async (params) => {
843
862
  return toContent(await fetchApi("/recurring-blocks", "POST", params));
844
863
  });
845
864
  server.registerTool("update_recurring_block", {
846
- description: "Change a recurring block FROM A DATE ONWARD (title, duration, fixed time, weekdays). The past is never rewritten: earlier days keep their blocks as they were, and the habit keeps its history. Upcoming occurrences already created and not yet checked are updated, or removed if their day is no longer planned. To change a single day only, use update_day_block on that day's block instead.",
865
+ description: "Change a recurring block FROM A DATE ONWARD (title, duration, fixed time, weekdays; for a task bucket, its filter). The past is never rewritten: earlier days keep their blocks as they were, and the habit keeps its history. Upcoming occurrences already created and not yet checked are updated, or removed if their day is no longer planned. To change a single day only, use update_day_block on that day's block instead.",
847
866
  inputSchema: {
848
867
  id: z.string().uuid().describe("Recurring block UUID (from list_recurring_blocks, or `repeats.recurring_block_id` of a day block)"),
849
868
  title: z.string().nullable().optional().describe("Block label"),
@@ -855,6 +874,8 @@ export function registerAllTools(server, fetchApi) {
855
874
  .optional()
856
875
  .describe("Fixed wall-clock hour HH:MM. Pass null to let the block follow the wake time."),
857
876
  weekdays: weekdaysSchema.optional(),
877
+ filter_tag_id: taskFilterTagSchema,
878
+ filter_due: taskFilterDueSchema,
858
879
  from_date: z.string().optional().describe("First day the change applies (YYYY-MM-DD). Default: today (UTC)."),
859
880
  },
860
881
  annotations: { title: "Update recurring block", destructiveHint: false, idempotentHint: true, openWorldHint: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keepsake-mcp",
3
- "version": "1.18.0",
3
+ "version": "1.19.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": {