apple-notes-mcp 2.8.34 → 2.8.35
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 +31 -1
- package/build/index.js +627 -174
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1468,6 +1468,36 @@ Saves a note attachment to disk.
|
|
|
1468
1468
|
|
|
1469
1469
|
---
|
|
1470
1470
|
|
|
1471
|
+
#### `list-paper-attachments`
|
|
1472
|
+
|
|
1473
|
+
Lists the Paper drawings (`com.apple.paper`) and classic drawings (`com.apple.drawing`, `com.apple.drawing.2`) in one note, and whether Notes has a rendered image of each. Read-only; needs Full Disk Access and does not open Notes.app.
|
|
1474
|
+
|
|
1475
|
+
| Parameter | Type | Required | Description |
|
|
1476
|
+
|-----------|------|----------|-------------|
|
|
1477
|
+
| `id` | string | Yes | Exact CoreData note ID |
|
|
1478
|
+
|
|
1479
|
+
**Returns:** Per drawing: `attachmentId`, `identifier`, `uti`, `kind` (`paper` or `drawing`), `handwritingSummary` (the handwriting text Notes recognized, or `null` when it stored none), `bundlePresent` (the Paper data bundle is on disk), `fallbackImagePath` (Notes' full rendering), `previewPath` (its largest thumbnail), and `raster` `{source, format, width, height}`: the validated image `export-paper-image` would copy, or `null`.
|
|
1480
|
+
|
|
1481
|
+
Strokes are not decoded. Notes' Paper bundle has no public reader, so the image is Notes' own rendering.
|
|
1482
|
+
|
|
1483
|
+
---
|
|
1484
|
+
|
|
1485
|
+
#### `export-paper-image`
|
|
1486
|
+
|
|
1487
|
+
Saves Notes' rendered image of one Paper drawing or classic drawing to a new file.
|
|
1488
|
+
|
|
1489
|
+
| Parameter | Type | Required | Description |
|
|
1490
|
+
|-----------|------|----------|-------------|
|
|
1491
|
+
| `noteId` | string | Yes | Exact CoreData note ID |
|
|
1492
|
+
| `savePath` | string | Yes | Absolute path for the new file. It must end in the image's extension (`.png`, or `.jpg`/`.jpeg` for a JPEG rendering) |
|
|
1493
|
+
| `attachmentId` | string | No | The drawing to export (`attachmentId` or `identifier` from `list-paper-attachments`). Required when the note has more than one |
|
|
1494
|
+
|
|
1495
|
+
**Returns:** `savedPath`, `format`, `width`, `height`, `bytes`, `source` (`fallback` for Notes' full rendering, `preview` for its largest thumbnail when no full rendering exists), and the drawing's `attachmentId`, `identifier`, `kind`, and `handwritingSummary`.
|
|
1496
|
+
|
|
1497
|
+
**⚠️ Safety:** Writes one new file, readable only by you (mode 0600). `savePath` follows the `save-attachment` allowlist (home, temp, or `/Volumes`), may not be inside the Notes data folder, and must not exist yet. The image header (PNG signature and IHDR, or JPEG frame) is checked before copying and the written file is checked again; a file that fails is removed.
|
|
1498
|
+
|
|
1499
|
+
---
|
|
1500
|
+
|
|
1471
1501
|
#### `export-attachments`
|
|
1472
1502
|
|
|
1473
1503
|
Copies a note's attachment files into a directory without opening Notes.app.
|
|
@@ -1864,7 +1894,7 @@ MCP stores no secrets, but as a general rule keep only non-secret config here.
|
|
|
1864
1894
|
|
|
1865
1895
|
## Full Disk Access
|
|
1866
1896
|
|
|
1867
|
-
Several tools read directly from the Apple Notes SQLite database, which lives in a macOS-protected directory. Those tools require **Full Disk Access** for the process running the MCP server: `get-checklist-state`, `get-note-metadata`, `get-note-blocks`, `get-audio-transcripts`, `get-note-link`, the checklist annotations in `get-note-markdown`, `list-attachments` with `includePaths` or `firstImage`, `export-attachments`, and the database half of `get-sync-status`.
|
|
1897
|
+
Several tools read directly from the Apple Notes SQLite database, which lives in a macOS-protected directory. Those tools require **Full Disk Access** for the process running the MCP server: `get-checklist-state`, `get-note-metadata`, `get-note-blocks`, `get-audio-transcripts`, `get-note-link`, the checklist annotations in `get-note-markdown`, `list-attachments` with `includePaths` or `firstImage`, `export-attachments`, `list-paper-attachments`, `export-paper-image`, and the database half of `get-sync-status`.
|
|
1868
1898
|
|
|
1869
1899
|
> 📘 **For the full why-and-how walkthrough (which app to grant, verifying with `doctor`, graceful degradation), see the [Full Disk Access Setup Guide](https://github.com/sweetrb/apple-notes-mcp/blob/main/docs/FULL-DISK-ACCESS.md).** The summary below is the quick version.
|
|
1870
1900
|
|