apple-notes-mcp 2.7.2 → 2.7.3

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.
Files changed (2) hide show
  1. package/README.md +15 -5
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1187,16 +1187,26 @@ When sending content containing backslashes (`\`) to this MCP server, **you must
1187
1187
  ```json
1188
1188
  {
1189
1189
  "title": "Install Script",
1190
- "content": "cp ~/Library/Mobile\\\\ Documents/file.txt ~/.config/"
1190
+ "content": "cp ~/Library/Mobile\\ Documents/file.txt ~/.config/"
1191
1191
  }
1192
1192
  ```
1193
+ → arrives as: `cp ~/Library/Mobile\ Documents/file.txt ~/.config/`
1193
1194
 
1194
- The `\\\\` in JSON becomes `\\` in the actual string, which represents a single `\` in the note.
1195
+ In a JSON string literal the two characters `\\` denote **one** literal backslash. Doubling them to `\\\\` denotes *two* backslashes in the note, which is almost never what you want.
1196
+
1197
+ **Example - Literal double backslash:**
1198
+ ```json
1199
+ {
1200
+ "title": "Escaping Notes",
1201
+ "content": "Send \\\\ only when you want two backslashes"
1202
+ }
1203
+ ```
1204
+ → arrives as: `Send \\ only when you want two backslashes`
1195
1205
 
1196
1206
  **Common patterns requiring escaping:**
1197
- - Shell escaped spaces: `Mobile\ Documents` → `Mobile\\\\ Documents` in JSON
1198
- - Windows paths: `C:\Users\``C:\\\\Users\\\\` in JSON
1199
- - Regex patterns: `\d+``\\\\d+` in JSON
1207
+ - Shell escaped spaces: `Mobile\ Documents` → `Mobile\\ Documents` in JSON
1208
+ - Regex patterns: `\d+``\\d+` in JSON
1209
+ - Literal double backslash: `\\``\\\\` in JSON
1200
1210
 
1201
1211
  **If you see errors** when creating/updating notes with backslashes, double-check that backslashes are properly escaped in the JSON payload.
1202
1212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-notes-mcp",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "MCP server for Apple Notes - create, search, update, and manage notes via Claude and other AI assistants",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
@@ -53,6 +53,7 @@
53
53
  "@typescript-eslint/eslint-plugin": "^8.0.0",
54
54
  "@typescript-eslint/parser": "^8.0.0",
55
55
  "@vitest/coverage-v8": "^3.2.6",
56
+ "ajv": "^8.17.1",
56
57
  "esbuild": "^0.28.1",
57
58
  "eslint": "^9.0.0",
58
59
  "globals": "^17.0.0",