keepsake-mcp 1.20.0 → 1.22.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 +6 -5
- package/build/tools.js +46 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -117,16 +117,17 @@ rather than in the chat, which disappears.
|
|
|
117
117
|
|--------|-----------|-------------|
|
|
118
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 |
|
|
119
119
|
|
|
120
|
-
## Available tools (
|
|
120
|
+
## Available tools (97)
|
|
121
121
|
|
|
122
122
|
### Contacts
|
|
123
123
|
| Tool | Description |
|
|
124
124
|
|------|-------------|
|
|
125
125
|
| `list_contacts` | List contacts with pagination, sorting, field selection and filters (linked company, has_company, updated_since) |
|
|
126
126
|
| `get_contact` | Get a contact with recent interactions, tags, and stats |
|
|
127
|
-
| `create_contact` | Create a new contact (`company` links it to a company record, created if missing) |
|
|
127
|
+
| `create_contact` | Create a new contact (`company` links it to a company record, created if missing; `emails` / `phones`: several, each labelled personal, work, mobile or other) |
|
|
128
128
|
| `update_contact` | Update contact fields |
|
|
129
129
|
| `delete_contact` | Permanently delete a contact |
|
|
130
|
+
| `merge_contacts` | Merge a duplicate contact into another (entries, tasks, notes, companies, tags, details, notes, @mentions) |
|
|
130
131
|
| `search_contacts` | Accent-insensitive search by name, email, notes, phone and linked company names |
|
|
131
132
|
| `get_contact_timeline` | Unified chronological feed of all items for a contact |
|
|
132
133
|
|
|
@@ -168,11 +169,11 @@ rather than in the chat, which disappears.
|
|
|
168
169
|
### QuickNotes
|
|
169
170
|
| Tool | Description |
|
|
170
171
|
|------|-------------|
|
|
171
|
-
| `list_notes` | List notes — filter by pinned/archived, day, company, page (`tag_id`), publication-flow stage (`status`) |
|
|
172
|
+
| `list_notes` | List notes — filter by pinned/archived, day, company, page (`tag_id`), publication-flow stage (`status`), or notes waiting for their publication date (`scheduled`) |
|
|
172
173
|
| `list_note_statuses` | The stages of the user's publication flow (Idea → In progress → To review → Ready → Published by default — the user can rename, add or remove them) |
|
|
173
174
|
| `get_note` | Get one note by ID with its tags, contacts, tasks and linked notes |
|
|
174
|
-
| `create_note` | Create a note — supports `#tag#` and `[[tag]]` syntax; `archived` creates a permanent Note directly (no Inbox), `status` puts it straight into the publication flow |
|
|
175
|
-
| `update_note` | Update note content, links, days,
|
|
175
|
+
| `create_note` | Create a note — supports `#tag#` and `[[tag]]` syntax; `archived` creates a permanent Note directly (no Inbox), `status` puts it straight into the publication flow, `publish_at` schedules its publication on the user's public Page |
|
|
176
|
+
| `update_note` | Update note content, links, days, its publication-flow stage (`status`), or schedule / unschedule its publication (`publish_at`) |
|
|
176
177
|
| `delete_note` | Soft-delete (or permanent) |
|
|
177
178
|
| `pin_note` | Pin as a post-it (short reference always at hand) |
|
|
178
179
|
| `unpin_note` | Unpin a note (it stays where it is) |
|
package/build/tools.js
CHANGED
|
@@ -144,8 +144,16 @@ export function registerAllTools(server, fetchApi) {
|
|
|
144
144
|
inputSchema: {
|
|
145
145
|
first_name: z.string().describe("First name"),
|
|
146
146
|
last_name: z.string().optional().describe("Last name (optional)"),
|
|
147
|
-
email: z.string().optional().describe("
|
|
148
|
-
phone: z.string().optional().describe("
|
|
147
|
+
email: z.string().optional().describe("Main email address (use `emails` to give several)"),
|
|
148
|
+
phone: z.string().optional().describe("Main phone number (use `phones` to give several)"),
|
|
149
|
+
emails: z.array(z.object({
|
|
150
|
+
value: z.string().describe("Email address"),
|
|
151
|
+
label: z.enum(["personal", "work", "other"]).nullable().optional().describe("personal, work or other"),
|
|
152
|
+
})).optional().describe("All of the contact's email addresses, main one first (e.g. personal and work). Replaces the whole list; takes precedence over `email`."),
|
|
153
|
+
phones: z.array(z.object({
|
|
154
|
+
value: z.string().describe("Phone number"),
|
|
155
|
+
label: z.enum(["mobile", "personal", "work", "other"]).nullable().optional().describe("mobile, personal, work or other"),
|
|
156
|
+
})).optional().describe("All of the contact's phone numbers, main one first. Replaces the whole list; takes precedence over `phone`."),
|
|
149
157
|
job_title: z.string().optional().describe("Job title / profession, e.g. 'Product designer'"),
|
|
150
158
|
address: z.string().optional().describe("Postal address"),
|
|
151
159
|
company: z.string().optional().describe("Company name. Links the contact to that company record (matched by name ignoring case and accents, created if missing). Adds a link, never removes one. The contact's companies are returned in `companies`."),
|
|
@@ -162,8 +170,16 @@ export function registerAllTools(server, fetchApi) {
|
|
|
162
170
|
id: z.string().uuid().describe("Contact UUID"),
|
|
163
171
|
first_name: z.string().optional().describe("First name"),
|
|
164
172
|
last_name: z.string().optional().describe("Last name"),
|
|
165
|
-
email: z.string().optional().describe("
|
|
166
|
-
phone: z.string().optional().describe("
|
|
173
|
+
email: z.string().optional().describe("Main email address only; the other addresses are kept (use `emails` to change the whole list)"),
|
|
174
|
+
phone: z.string().optional().describe("Main phone number only; the other numbers are kept (use `phones` to change the whole list)"),
|
|
175
|
+
emails: z.array(z.object({
|
|
176
|
+
value: z.string().describe("Email address"),
|
|
177
|
+
label: z.enum(["personal", "work", "other"]).nullable().optional().describe("personal, work or other"),
|
|
178
|
+
})).optional().describe("All of the contact's email addresses, main one first (e.g. personal and work). Replaces the whole list; takes precedence over `email`."),
|
|
179
|
+
phones: z.array(z.object({
|
|
180
|
+
value: z.string().describe("Phone number"),
|
|
181
|
+
label: z.enum(["mobile", "personal", "work", "other"]).nullable().optional().describe("mobile, personal, work or other"),
|
|
182
|
+
})).optional().describe("All of the contact's phone numbers, main one first. Replaces the whole list; takes precedence over `phone`."),
|
|
167
183
|
job_title: z.string().nullable().optional().describe("Job title / profession, e.g. 'Product designer'. Set to null to clear."),
|
|
168
184
|
address: z.string().nullable().optional().describe("Postal address. Set to null to clear."),
|
|
169
185
|
company: z.string().optional().describe("Company name. Links the contact to that company record (matched by name ignoring case and accents, created if missing). Adds a link, never removes one. The contact's companies are returned in `companies`."),
|
|
@@ -183,6 +199,16 @@ export function registerAllTools(server, fetchApi) {
|
|
|
183
199
|
}, async ({ id }) => {
|
|
184
200
|
return toContent(await fetchApi(`/contacts/${id}`, "DELETE"));
|
|
185
201
|
});
|
|
202
|
+
server.registerTool("merge_contacts", {
|
|
203
|
+
description: "Merge a duplicate contact INTO another one: its entries, tasks, notes, day blocks, companies and tags (pages) move to the target (no duplicates), the target's empty details (email, phone, job title, address, birthday) are filled from it, its notes are appended to the target's, @mentions of its name are rewritten to the target's name, then it is deleted. Use it when two records describe the same person (e.g. two 'Pascale Villières'). Two people can share a name: confirm with your user that it is the same person, and which record to keep.",
|
|
204
|
+
inputSchema: {
|
|
205
|
+
source_id: z.string().uuid().describe("UUID of the contact to merge away (it will be deleted)"),
|
|
206
|
+
target_id: z.string().uuid().describe("UUID of the contact to keep"),
|
|
207
|
+
},
|
|
208
|
+
annotations: { title: "Merge contacts", destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
209
|
+
}, async ({ source_id, target_id }) => {
|
|
210
|
+
return toContent(await fetchApi(`/contacts/${source_id}/merge`, "POST", { target_id }));
|
|
211
|
+
});
|
|
186
212
|
server.registerTool("search_contacts", {
|
|
187
213
|
description: "Search contacts by name, email, company, etc. Search is accent-insensitive.",
|
|
188
214
|
inputSchema: {
|
|
@@ -561,7 +587,7 @@ export function registerAllTools(server, fetchApi) {
|
|
|
561
587
|
// QUICK NOTES
|
|
562
588
|
// ===========================================================================
|
|
563
589
|
server.registerTool("list_notes", {
|
|
564
|
-
description: "List notes. QuickNotes (inbox, not yet archived) and Notes (archived, permanent). Filter by pinned or archived status, by tag (page) with `tag_id`, by the day(s) a note is linked to (`date`, or `date_from`/`date_to`) — e.g. \"what did I note for tomorrow?\" —,
|
|
590
|
+
description: "List notes. QuickNotes (inbox, not yet archived) and Notes (archived, permanent). Filter by pinned or archived status, by tag (page) with `tag_id`, by the day(s) a note is linked to (`date`, or `date_from`/`date_to`) — e.g. \"what did I note for tomorrow?\" —, by publication-flow stage with `status` — e.g. \"which notes are waiting for review?\" —, or with `scheduled` for notes waiting to be published on a date. Each note carries `dates` (the days it is linked to), `status` (its stage in the publication flow, or null), `published_at` (when it was published on the user's public Page, or null) and `publish_at` (its scheduled publication date, or null).",
|
|
565
591
|
inputSchema: {
|
|
566
592
|
status: z
|
|
567
593
|
.string()
|
|
@@ -574,12 +600,13 @@ export function registerAllTools(server, fetchApi) {
|
|
|
574
600
|
date_to: z.string().optional().describe("Only notes linked to a day on or before this date (YYYY-MM-DD)"),
|
|
575
601
|
company_id: z.string().uuid().optional().describe("Only notes linked directly to this company"),
|
|
576
602
|
tag_id: z.string().uuid().optional().describe("Only notes linked to this tag (page)"),
|
|
603
|
+
scheduled: z.boolean().optional().describe("true = only notes waiting for their scheduled publication date (`publish_at`), sorted by that date, soonest first — e.g. to find the next free day or count how many days are scheduled ahead; false = notes with no scheduled date"),
|
|
577
604
|
limit: z.number().int().positive().optional().describe("Max results (default 20)"),
|
|
578
605
|
offset: z.number().int().nonnegative().optional().describe("Pagination offset"),
|
|
579
606
|
},
|
|
580
607
|
annotations: { title: "List notes", readOnlyHint: true, openWorldHint: false },
|
|
581
|
-
}, async ({ status, pinned, archived, date, date_from, date_to, company_id, tag_id, limit, offset }) => {
|
|
582
|
-
return toContent(await fetchApi(`/notes${qs({ status, pinned, archived, date, date_from, date_to, company_id, tag_id, limit, offset })}`));
|
|
608
|
+
}, async ({ status, pinned, archived, date, date_from, date_to, company_id, tag_id, scheduled, limit, offset }) => {
|
|
609
|
+
return toContent(await fetchApi(`/notes${qs({ status, pinned, archived, date, date_from, date_to, company_id, tag_id, scheduled, limit, offset })}`));
|
|
583
610
|
});
|
|
584
611
|
server.registerTool("list_note_statuses", {
|
|
585
612
|
description: "List the stages of the user's publication flow, in order (by default: Idea → In progress → To review → Ready → Published). A note enters this flow when the user may publish it — most notes never do and have no stage. Stages are the user's own: they can rename, recolor, add or remove them, so read this list before setting a stage with update_note or create_note. `category` is fixed: unstarted, started, or published (exactly one stage). Names are in the user's app language.",
|
|
@@ -622,13 +649,17 @@ export function registerAllTools(server, fetchApi) {
|
|
|
622
649
|
.boolean()
|
|
623
650
|
.optional()
|
|
624
651
|
.describe("Create a permanent Note directly instead of an Inbox QuickNote (default: false). Tags, links and @mentions work the same. Implied by status."),
|
|
652
|
+
publish_at: z
|
|
653
|
+
.string()
|
|
654
|
+
.optional()
|
|
655
|
+
.describe("Schedule the note's publication on the user's public Keepsake Page: an ISO 8601 date-time WITH a time zone (e.g. \"2026-11-20T05:00:00Z\"). At that time Keepsake publishes it by itself, exactly like the Publish button: Page, RSS feed, the next email to the Page's subscribers, and the user's social networks if they turned on automatic sharing. A date in the past publishes it right away. Only when the user asks to publish or schedule — publishing is public. Requires a public profile (username) and an active subscription or trial. The note is created as a permanent Note. If scheduling is refused, the note is still created and the response's `publication` says why."),
|
|
625
656
|
},
|
|
626
|
-
annotations: { title: "Create note", destructiveHint: false, idempotentHint: false, openWorldHint:
|
|
657
|
+
annotations: { title: "Create note", destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
627
658
|
}, async (params) => {
|
|
628
659
|
return toContent(await fetchApi("/notes", "POST", params));
|
|
629
660
|
});
|
|
630
661
|
server.registerTool("update_note", {
|
|
631
|
-
description: "Update an existing QuickNote or Note. `dates` REPLACES the full set of days the note is linked to — the way to move a note to another day (\"not done, push it to tomorrow\"). To add or remove a single day without touching the others, prefer link_note_date / unlink_note_date. `status` moves the note along the publication flow (\"this one is ready\"); setting a stage on an Inbox QuickNote also keeps it as a Note.",
|
|
662
|
+
description: "Update an existing QuickNote or Note. `publish_at` schedules (or unschedules) its publication on the user's public Page. `dates` REPLACES the full set of days the note is linked to — the way to move a note to another day (\"not done, push it to tomorrow\"). To add or remove a single day without touching the others, prefer link_note_date / unlink_note_date. `status` moves the note along the publication flow (\"this one is ready\"); setting a stage on an Inbox QuickNote also keeps it as a Note.",
|
|
632
663
|
inputSchema: {
|
|
633
664
|
id: z.string().uuid().describe("Note UUID"),
|
|
634
665
|
content: z.string().optional().describe("Updated content"),
|
|
@@ -653,8 +684,13 @@ export function registerAllTools(server, fetchApi) {
|
|
|
653
684
|
.nullable()
|
|
654
685
|
.optional()
|
|
655
686
|
.describe("Publication-flow stage: name, key or id from list_note_statuses. null takes the note out of the flow."),
|
|
687
|
+
publish_at: z
|
|
688
|
+
.string()
|
|
689
|
+
.nullable()
|
|
690
|
+
.optional()
|
|
691
|
+
.describe("Schedule the note's publication on the user's public Keepsake Page: an ISO 8601 date-time WITH a time zone (e.g. \"2026-11-20T05:00:00Z\"). At that time Keepsake publishes it by itself, exactly like the Publish button: Page, RSS feed, the next email to the Page's subscribers, and the user's social networks if they turned on automatic sharing. A date in the past publishes it right away. Only when the user asks to publish or schedule — publishing is public. Requires a public profile (username) and an active subscription or trial. Sending a new date reschedules it; null unschedules it (the note stays where it is, unpublished). Editing a scheduled note's content keeps its date. Has no effect on a note that is already published."),
|
|
656
692
|
},
|
|
657
|
-
annotations: { title: "Update note", destructiveHint: false, idempotentHint: true, openWorldHint:
|
|
693
|
+
annotations: { title: "Update note", destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
658
694
|
}, async ({ id, ...body }) => {
|
|
659
695
|
return toContent(await fetchApi(`/notes/${id}`, "PATCH", body));
|
|
660
696
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keepsake-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.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": {
|