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
@@ -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
View File
@@ -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),