Hide note previews by default
This commit is contained in:
@@ -8,7 +8,7 @@ and stays on the local machine.
|
||||
|
||||
| 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_create` | Create a plaintext-backed note |
|
||||
| `calendar_list_calendars` | List calendar indexes, names, and write capability |
|
||||
|
||||
@@ -29,7 +29,7 @@ function run(argv) {
|
||||
title: title,
|
||||
folder: currentFolder,
|
||||
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(
|
||||
"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."),
|
||||
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),
|
||||
},
|
||||
handled(listNotes),
|
||||
|
||||
Reference in New Issue
Block a user