Hide note previews by default

This commit is contained in:
Adolfo Reyna
2026-05-26 22:11:45 -04:00
parent 982e7b0ffb
commit e2384654fd
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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 |
+1 -1
View File
@@ -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
View File
@@ -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),