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 +1 -0
- package/build/index.js +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that e
|
|
|
6
6
|
[](https://www.npmjs.com/package/apple-notes-mcp)
|
|
7
7
|
[](https://www.npmjs.com/package/apple-notes-mcp)
|
|
8
8
|
[](https://github.com/sweetrb/apple-notes-mcp/actions/workflows/ci.yml)
|
|
9
|
+
[](https://scorecard.dev/viewer/?uri=github.com/sweetrb/apple-notes-mcp)
|
|
9
10
|
[](https://www.apple.com/macos/)
|
|
10
11
|
[](https://opensource.org/licenses/MIT)
|
|
11
12
|
[](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