apple-mail-mcp 2.10.12 → 2.10.13
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 +18 -6
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1375,21 +1375,33 @@ When sending content containing backslashes (`\`) to this MCP server, **you must
|
|
|
1375
1375
|
|
|
1376
1376
|
**Why:** The MCP protocol uses JSON for parameter passing. In JSON, a single backslash is an escape character. To include a literal backslash in content, it must be escaped as `\\`.
|
|
1377
1377
|
|
|
1378
|
-
**
|
|
1378
|
+
**Correct — email containing a shell path with an escaped space:**
|
|
1379
|
+
|
|
1379
1380
|
```json
|
|
1380
1381
|
{
|
|
1381
1382
|
"to": ["colleague@company.com"],
|
|
1382
1383
|
"subject": "File Location",
|
|
1383
|
-
"body": "
|
|
1384
|
+
"body": "Run: cp ~/Library/Mobile\\ Documents/report.pdf ~/Desktop/"
|
|
1384
1385
|
}
|
|
1385
1386
|
```
|
|
1386
1387
|
|
|
1387
|
-
|
|
1388
|
+
→ arrives as: `Run: cp ~/Library/Mobile\ Documents/report.pdf ~/Desktop/`
|
|
1389
|
+
|
|
1390
|
+
In a JSON string literal, `\\` — two characters — denotes **one** literal backslash. Four backslashes (`\\\\`) denote **two** literal backslashes, so send those only when the text genuinely contains `\\`.
|
|
1391
|
+
|
|
1392
|
+
**Incorrect — the unescaped backslash makes this invalid JSON:**
|
|
1393
|
+
|
|
1394
|
+
```text
|
|
1395
|
+
"body": "Run: cp ~/Library/Mobile\ Documents/report.pdf ~/Desktop/"
|
|
1396
|
+
```
|
|
1397
|
+
|
|
1398
|
+
`\ ` (backslash-space) is not a valid JSON escape sequence, so the call is rejected — or, with a laxer parser, the backslash is silently dropped.
|
|
1388
1399
|
|
|
1389
1400
|
**Common patterns requiring escaping:**
|
|
1390
|
-
|
|
1391
|
-
- Shell escaped spaces: `Mobile\ Documents` → `Mobile
|
|
1392
|
-
- Regex patterns: `\d+` →
|
|
1401
|
+
|
|
1402
|
+
- Shell escaped spaces: `Mobile\ Documents` → `Mobile\\ Documents` in JSON
|
|
1403
|
+
- Regex patterns: `\d+` → `\\d+` in JSON
|
|
1404
|
+
- A literal double backslash: `\\` → `\\\\` in JSON
|
|
1393
1405
|
|
|
1394
1406
|
**If you see errors** when sending emails with backslashes, double-check that backslashes are properly escaped in the JSON payload.
|
|
1395
1407
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-mail-mcp",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.13",
|
|
4
4
|
"description": "MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
55
55
|
"@typescript-eslint/parser": "^8.0.0",
|
|
56
56
|
"@vitest/coverage-v8": "^4.1.9",
|
|
57
|
+
"ajv": "^8.17.1",
|
|
57
58
|
"esbuild": "^0.28.1",
|
|
58
59
|
"eslint": "^9.0.0",
|
|
59
60
|
"globals": "^17.0.0",
|