apple-notes-mcp 2.5.2 → 2.5.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.
package/README.md CHANGED
@@ -6,6 +6,7 @@ A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that e
6
6
  [![npm downloads](https://img.shields.io/npm/dm/apple-notes-mcp)](https://www.npmjs.com/package/apple-notes-mcp)
7
7
  [![node](https://img.shields.io/node/v/apple-notes-mcp)](https://www.npmjs.com/package/apple-notes-mcp)
8
8
  [![CI](https://github.com/sweetrb/apple-notes-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sweetrb/apple-notes-mcp/actions/workflows/ci.yml)
9
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/sweetrb/apple-notes-mcp/badge)](https://scorecard.dev/viewer/?uri=github.com/sweetrb/apple-notes-mcp)
9
10
  [![platform: macOS](https://img.shields.io/badge/platform-macOS-111?logo=apple&logoColor=white)](https://www.apple.com/macos/)
10
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
11
12
  [![MCP](https://img.shields.io/badge/MCP-server-blue)](https://modelcontextprotocol.io)
package/build/index.js CHANGED
@@ -1303,5 +1303,16 @@ server.registerTool("get-note-metadata", {
1303
1303
  */
1304
1304
  // Register read-only resources and workflow prompts (#23).
1305
1305
  registerResourcesAndPrompts(server, notesManager);
1306
+ // Defense-in-depth: an unhandled rejection or a stray EventEmitter "error" must
1307
+ // never take down this long-lived MCP server. EPIPE on stdout means the MCP
1308
+ // client disconnected — exit cleanly rather than crash.
1309
+ process.on("uncaughtException", (err) => {
1310
+ if (err?.code === "EPIPE")
1311
+ process.exit(0);
1312
+ console.error("[uncaughtException]", err);
1313
+ });
1314
+ process.on("unhandledRejection", (reason) => {
1315
+ console.error("[unhandledRejection]", reason);
1316
+ });
1306
1317
  const transport = new StdioServerTransport();
1307
1318
  await server.connect(transport);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-notes-mcp",
3
- "version": "2.5.2",
3
+ "version": "2.5.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",