Hide note previews by default
This commit is contained in:
@@ -8,7 +8,7 @@ and stays on the local machine.
|
|||||||
|
|
||||||
| Tool | Action |
|
| Tool | Action |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `notes_list` | Search note titles and plaintext previews |
|
| `notes_list` | Search notes; returns titles and metadata unless previews are explicitly requested |
|
||||||
| `notes_read` | Read a note by the ID returned by `notes_list` |
|
| `notes_read` | Read a note by the ID returned by `notes_list` |
|
||||||
| `notes_create` | Create a plaintext-backed note |
|
| `notes_create` | Create a plaintext-backed note |
|
||||||
| `calendar_list_calendars` | List calendar indexes, names, and write capability |
|
| `calendar_list_calendars` | List calendar indexes, names, and write capability |
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ function run(argv) {
|
|||||||
title: title,
|
title: title,
|
||||||
folder: currentFolder,
|
folder: currentFolder,
|
||||||
modifiedAt: note.modificationDate().toISOString(),
|
modifiedAt: note.modificationDate().toISOString(),
|
||||||
preview: text.slice(0, 180)
|
preview: input.includePreview ? text.slice(0, 180) : undefined
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -46,10 +46,11 @@ export function createMacMiniMcpServer() {
|
|||||||
|
|
||||||
server.tool(
|
server.tool(
|
||||||
"notes_list",
|
"notes_list",
|
||||||
"Find notes by optional text or folder filter. Returns previews, not full note bodies.",
|
"Find notes by optional text or folder filter. Titles and metadata are returned by default; request previews explicitly.",
|
||||||
{
|
{
|
||||||
query: z.string().optional().describe("Text to search in note title and plaintext body."),
|
query: z.string().optional().describe("Text to search in note title and plaintext body."),
|
||||||
folder: z.string().optional().describe("Exact Notes folder name."),
|
folder: z.string().optional().describe("Exact Notes folder name."),
|
||||||
|
includePreview: z.boolean().default(false).describe("Include plaintext previews only when needed; note content can be sensitive."),
|
||||||
limit: z.number().int().positive().max(100).default(20),
|
limit: z.number().int().positive().max(100).default(20),
|
||||||
},
|
},
|
||||||
handled(listNotes),
|
handled(listNotes),
|
||||||
|
|||||||
Reference in New Issue
Block a user