keepsake-mcp 1.21.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 +3 -2
- package/build/tools.js +30 -4
- 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
|
|
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: {
|
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": {
|