apple-mail-mcp 2.20.8 → 2.20.9

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/build/index.js +8 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -82348,6 +82348,9 @@ function parseErrorMessage(errorOutput) {
82348
82348
  if (PERMISSION_DENIED_PATTERN.test(errorOutput)) {
82349
82349
  return PERMISSION_DENIED_MESSAGE;
82350
82350
  }
82351
+ if (/\(-2741\)/.test(errorOutput)) {
82352
+ return "Mail.app is not responding. Try opening Mail.app manually.";
82353
+ }
82351
82354
  for (const { pattern, message } of ERROR_MAPPINGS) {
82352
82355
  const match = coreError.match(pattern);
82353
82356
  if (match) {
@@ -87321,7 +87324,11 @@ end tell`;
87321
87324
  const script = isLocalStoreLabel(account) ? buildAppLevelScript(`${localMailboxBindingFragment()}${body}`) : buildAccountScopedScript(account, body);
87322
87325
  const result = executeAppleScript(guardMailRunning(script));
87323
87326
  if (result.success && result.output.startsWith(MAIL_NOT_RUNNING_MARKER)) return null;
87324
- if (!result.success || !result.output) {
87327
+ if (!result.success) {
87328
+ if (looksLikeMailNotRunning(result.error)) return null;
87329
+ return [];
87330
+ }
87331
+ if (!result.output) {
87325
87332
  return [];
87326
87333
  }
87327
87334
  return result.output.split(", ").map((s) => s.trim());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-mail-mcp",
3
- "version": "2.20.8",
3
+ "version": "2.20.9",
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",