keepsake-mcp 1.15.0 → 1.16.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
@@ -1,13 +1,14 @@
1
1
  # keepsake-mcp
2
2
 
3
- MCP server for [Keepsake](https://keepsake.place) — the personal CRM that helps you nurture your relationships.
3
+ MCP server for [Keepsake](https://keepsake.place) (keepsake.place), the app where creators and solo entrepreneurs empty their heads: ideas, tasks and the people who matter, together and linked in one place, all the way to publishing.
4
4
 
5
5
  Connect your AI assistant (Claude, Cursor, or any MCP-compatible client) to your Keepsake data: contacts, interactions, tasks, notes, daily intentions, companies, and tags.
6
6
 
7
7
  ## Why
8
8
 
9
- Your AI assistant becomes a personal relationship manager. Ask it to:
9
+ Your AI assistant forgets between conversations; Keepsake remembers. Ask it to:
10
10
 
11
+ - "Capture this idea for my next article in #newsletter#"
11
12
  - "Who did I last talk to at Acme Corp?"
12
13
  - "Add a note that I ran into Sarah at the conference"
13
14
  - "What tasks are overdue?"
@@ -114,7 +115,7 @@ rather than in the chat, which disappears.
114
115
  |--------|-----------|-------------|
115
116
  | `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 |
116
117
 
117
- ## Available tools (84)
118
+ ## Available tools (88)
118
119
 
119
120
  ### Contacts
120
121
  | Tool | Description |
@@ -196,10 +197,18 @@ Material kept *alongside* a note without entering its text — an idea, a refere
196
197
  ### Day blocks (Day-view timeline)
197
198
  | Tool | Description |
198
199
  |------|-------------|
199
- | `list_day_blocks` | List a day's time blocks, in timeline order |
200
+ | `list_day_blocks` | List a day's time blocks, in timeline order (creates that day's recurring blocks first) |
200
201
  | `create_day_block` | Create a block, auto-placed first-fit (or pinned via anchor_time) |
201
202
  | `update_day_block` | Update a block (title, duration, anchor, note, done) |
202
- | `delete_day_block` | Delete a block and prune its timeline ref |
203
+ | `delete_day_block` | Delete a block and prune its timeline ref (on a recurring block: remove it from that day only) |
204
+
205
+ ### Recurring blocks (ideal day / ideal week, habits)
206
+ | Tool | Description |
207
+ |------|-------------|
208
+ | `list_recurring_blocks` | List the blocks that come back on chosen weekdays (the user's ideal week and habits) |
209
+ | `create_recurring_block` | Make a block recurring — from an existing block, or from scratch |
210
+ | `update_recurring_block` | Change a recurring block from a date onward (title, duration, fixed time, weekdays) — the past is never rewritten |
211
+ | `stop_recurring_block` | Stop a repetition from a date onward; past days keep their blocks |
203
212
 
204
213
  ### Tags
205
214
  | Tool | Description |
package/build/tools.js CHANGED
@@ -716,7 +716,7 @@ export function registerAllTools(server, fetchApi) {
716
716
  // DAY BLOCKS (Day-view timeline)
717
717
  // ===========================================================================
718
718
  server.registerTool("list_day_blocks", {
719
- 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.",
719
+ 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.",
720
720
  inputSchema: {
721
721
  date: z.string().describe("Date (YYYY-MM-DD)"),
722
722
  },
@@ -752,7 +752,7 @@ export function registerAllTools(server, fetchApi) {
752
752
  return toContent(await fetchApi("/day-blocks", "POST", params));
753
753
  });
754
754
  server.registerTool("update_day_block", {
755
- 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.",
755
+ 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.",
756
756
  inputSchema: {
757
757
  id: z.string().uuid().describe("Block UUID"),
758
758
  title: z.string().nullable().optional().describe("Block label"),
@@ -777,7 +777,7 @@ export function registerAllTools(server, fetchApi) {
777
777
  return toContent(await fetchApi(`/day-blocks/${id}`, "PATCH", body));
778
778
  });
779
779
  server.registerTool("delete_day_block", {
780
- description: "Delete a time block. Its ref is pruned from the day's timeline_order; for a task bucket, the tasks themselves are untouched (they fall back to the day's computed bucket).",
780
+ description: "Delete a time block. Its ref is pruned from the day's timeline_order; for a task bucket, the tasks themselves are untouched (they fall back to the day's computed bucket).\n\nOn a recurring block, this removes it from THAT DAY ONLY (the app's \"Remove from today\"): the block keeps coming back on the other days, and the skipped day does not break the habit streak. To stop the repetition itself, use stop_recurring_block.",
781
781
  inputSchema: {
782
782
  id: z.string().uuid().describe("Block UUID"),
783
783
  },
@@ -786,6 +786,70 @@ export function registerAllTools(server, fetchApi) {
786
786
  return toContent(await fetchApi(`/day-blocks/${id}`, "DELETE"));
787
787
  });
788
788
  // ===========================================================================
789
+ // RECURRING BLOCKS (ideal day / ideal week — also the user's habits)
790
+ // ===========================================================================
791
+ const weekdaysSchema = z
792
+ .array(z.number().int().min(1).max(7))
793
+ .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].");
794
+ server.registerTool("list_recurring_blocks", {
795
+ 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).",
796
+ inputSchema: {
797
+ date: z.string().optional().describe("Date the rule is read at (YYYY-MM-DD). Default: today (UTC)."),
798
+ include_stopped: z.boolean().optional().describe("Also return repetitions that no longer plan anything (default false)"),
799
+ },
800
+ annotations: { title: "List recurring blocks", readOnlyHint: true, openWorldHint: false },
801
+ }, async ({ date, include_stopped }) => {
802
+ return toContent(await fetchApi(`/recurring-blocks${qs({ date, include_stopped })}`));
803
+ });
804
+ server.registerTool("create_recurring_block", {
805
+ 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.",
806
+ inputSchema: {
807
+ weekdays: weekdaysSchema,
808
+ 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."),
809
+ title: z.string().optional().describe("Block label (e.g. \"Meditation\")"),
810
+ 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)."),
811
+ duration_minutes: z.number().int().min(1).max(1440).optional().describe("Duration in minutes (default 30 for an activity, 60 for a bucket)"),
812
+ anchor_time: z
813
+ .string()
814
+ .regex(/^([01]\d|2[0-3]):[0-5]\d$/)
815
+ .optional()
816
+ .describe("Fixed wall-clock hour HH:MM. Omit for a block that follows the wake time."),
817
+ 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."),
818
+ },
819
+ annotations: { title: "Create recurring block", destructiveHint: false, idempotentHint: false, openWorldHint: false },
820
+ }, async (params) => {
821
+ return toContent(await fetchApi("/recurring-blocks", "POST", params));
822
+ });
823
+ server.registerTool("update_recurring_block", {
824
+ 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.",
825
+ inputSchema: {
826
+ id: z.string().uuid().describe("Recurring block UUID (from list_recurring_blocks, or `repeats.recurring_block_id` of a day block)"),
827
+ title: z.string().nullable().optional().describe("Block label"),
828
+ duration_minutes: z.number().int().min(1).max(1440).optional().describe("Duration in minutes"),
829
+ anchor_time: z
830
+ .string()
831
+ .regex(/^([01]\d|2[0-3]):[0-5]\d$/)
832
+ .nullable()
833
+ .optional()
834
+ .describe("Fixed wall-clock hour HH:MM. Pass null to let the block follow the wake time."),
835
+ weekdays: weekdaysSchema.optional(),
836
+ from_date: z.string().optional().describe("First day the change applies (YYYY-MM-DD). Default: today (UTC)."),
837
+ },
838
+ annotations: { title: "Update recurring block", destructiveHint: false, idempotentHint: true, openWorldHint: false },
839
+ }, async ({ id, ...body }) => {
840
+ return toContent(await fetchApi(`/recurring-blocks/${id}`, "PATCH", body));
841
+ });
842
+ server.registerTool("stop_recurring_block", {
843
+ description: "Stop a recurring block from a date onward (the app's \"Stop repeating\"). Past days keep their blocks and the habit keeps its history; upcoming occurrences already created and not yet checked are removed. To skip a single day and keep the repetition, use delete_day_block on that day's block.",
844
+ inputSchema: {
845
+ id: z.string().uuid().describe("Recurring block UUID"),
846
+ from_date: z.string().optional().describe("First day without the block (YYYY-MM-DD). Default: today (UTC)."),
847
+ },
848
+ annotations: { title: "Stop recurring block", destructiveHint: true, idempotentHint: true, openWorldHint: false },
849
+ }, async ({ id, from_date }) => {
850
+ return toContent(await fetchApi(`/recurring-blocks/${id}${qs({ from_date })}`, "DELETE"));
851
+ });
852
+ // ===========================================================================
789
853
  // TAGS
790
854
  // ===========================================================================
791
855
  server.registerTool("list_tags", {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "keepsake-mcp",
3
- "version": "1.15.0",
4
- "description": "MCP server for Keepsake personal CRM — connect your AI agent to your contacts, tasks, notes, and more",
3
+ "version": "1.16.0",
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": {
7
7
  "keepsake-mcp": "build/index.js"