apple-notes-mcp 2.6.14 → 2.6.15

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 +59 -37
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -32119,7 +32119,7 @@ function object(shape, params) {
32119
32119
  return new ZodMiniObject(def);
32120
32120
  }
32121
32121
 
32122
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
32122
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
32123
32123
  function isZ4Schema(s) {
32124
32124
  const schema = s;
32125
32125
  return !!schema._zod;
@@ -32203,17 +32203,33 @@ function normalizeObjectSchema(schema) {
32203
32203
  }
32204
32204
  return void 0;
32205
32205
  }
32206
+ function getDotPath(path4) {
32207
+ if (path4.length === 0) {
32208
+ return "object root";
32209
+ }
32210
+ return path4.reduce((acc, seg, index) => {
32211
+ if (index === 0) {
32212
+ return String(seg);
32213
+ }
32214
+ if (typeof seg === "number") {
32215
+ return `${acc}[${seg}]`;
32216
+ }
32217
+ return `${acc}.${seg}`;
32218
+ }, "");
32219
+ }
32206
32220
  function getParseErrorMessage(error2) {
32207
32221
  if (error2 && typeof error2 === "object") {
32222
+ if ("issues" in error2 && Array.isArray(error2.issues) && error2.issues.length > 0) {
32223
+ return error2.issues.map((i) => {
32224
+ if (!i.path?.length) {
32225
+ return i.message;
32226
+ }
32227
+ return `${i.message} at ${getDotPath(i.path)}`;
32228
+ }).join("\n");
32229
+ }
32208
32230
  if ("message" in error2 && typeof error2.message === "string") {
32209
32231
  return error2.message;
32210
32232
  }
32211
- if ("issues" in error2 && Array.isArray(error2.issues) && error2.issues.length > 0) {
32212
- const firstIssue = error2.issues[0];
32213
- if (firstIssue && typeof firstIssue === "object" && "message" in firstIssue) {
32214
- return String(firstIssue.message);
32215
- }
32216
- }
32217
32233
  try {
32218
32234
  return JSON.stringify(error2);
32219
32235
  } catch {
@@ -32958,7 +32974,7 @@ function preprocess(fn, schema) {
32958
32974
  // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
32959
32975
  config(en_default2());
32960
32976
 
32961
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
32977
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
32962
32978
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
32963
32979
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
32964
32980
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -34489,7 +34505,7 @@ var UrlElicitationRequiredError = class extends McpError {
34489
34505
  }
34490
34506
  };
34491
34507
 
34492
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
34508
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
34493
34509
  function isTerminal(status) {
34494
34510
  return status === "completed" || status === "failed" || status === "cancelled";
34495
34511
  }
@@ -35778,7 +35794,7 @@ var zodToJsonSchema = (schema, options) => {
35778
35794
  return combined;
35779
35795
  };
35780
35796
 
35781
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
35797
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
35782
35798
  function mapMiniTarget(t) {
35783
35799
  if (!t)
35784
35800
  return "draft-7";
@@ -35820,7 +35836,7 @@ function parseWithCompat(schema, data) {
35820
35836
  return result.data;
35821
35837
  }
35822
35838
 
35823
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
35839
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
35824
35840
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
35825
35841
  var Protocol = class {
35826
35842
  constructor(_options) {
@@ -36774,7 +36790,7 @@ function mergeCapabilities(base, additional) {
36774
36790
  return result;
36775
36791
  }
36776
36792
 
36777
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
36793
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
36778
36794
  var import_ajv = __toESM(require_ajv(), 1);
36779
36795
  var import_ajv_formats = __toESM(require_dist(), 1);
36780
36796
  function createDefaultAjvInstance() {
@@ -36842,7 +36858,7 @@ var AjvJsonSchemaValidator = class {
36842
36858
  }
36843
36859
  };
36844
36860
 
36845
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
36861
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
36846
36862
  var ExperimentalServerTasks = class {
36847
36863
  constructor(_server) {
36848
36864
  this._server = _server;
@@ -37055,7 +37071,7 @@ var ExperimentalServerTasks = class {
37055
37071
  }
37056
37072
  };
37057
37073
 
37058
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
37074
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
37059
37075
  function assertToolsCallTaskCapability(requests, method, entityName) {
37060
37076
  if (!requests) {
37061
37077
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -37090,7 +37106,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
37090
37106
  }
37091
37107
  }
37092
37108
 
37093
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
37109
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
37094
37110
  var Server = class extends Protocol {
37095
37111
  /**
37096
37112
  * Initializes this server with the given name and version information.
@@ -37156,16 +37172,7 @@ var Server = class extends Protocol {
37156
37172
  if (!methodSchema) {
37157
37173
  throw new Error("Schema is missing a method literal");
37158
37174
  }
37159
- let methodValue;
37160
- if (isZ4Schema(methodSchema)) {
37161
- const v4Schema = methodSchema;
37162
- const v4Def = v4Schema._zod?.def;
37163
- methodValue = v4Def?.value ?? v4Schema.value;
37164
- } else {
37165
- const v3Schema = methodSchema;
37166
- const legacyDef = v3Schema._def;
37167
- methodValue = legacyDef?.value ?? v3Schema.value;
37168
- }
37175
+ const methodValue = getLiteralValue(methodSchema);
37169
37176
  if (typeof methodValue !== "string") {
37170
37177
  throw new Error("Schema method literal must be a string");
37171
37178
  }
@@ -37470,7 +37477,7 @@ var Server = class extends Protocol {
37470
37477
  }
37471
37478
  };
37472
37479
 
37473
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
37480
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
37474
37481
  var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
37475
37482
  function isCompletable(schema) {
37476
37483
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
@@ -37484,7 +37491,7 @@ var McpZodTypeKind;
37484
37491
  McpZodTypeKind2["Completable"] = "McpCompletable";
37485
37492
  })(McpZodTypeKind || (McpZodTypeKind = {}));
37486
37493
 
37487
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
37494
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
37488
37495
  var MAX_TEMPLATE_LENGTH = 1e6;
37489
37496
  var MAX_VARIABLE_LENGTH = 1e6;
37490
37497
  var MAX_TEMPLATE_EXPRESSIONS = 1e4;
@@ -37706,7 +37713,7 @@ var UriTemplate = class _UriTemplate {
37706
37713
  }
37707
37714
  };
37708
37715
 
37709
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
37716
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
37710
37717
  var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
37711
37718
  function validateToolName(name) {
37712
37719
  const warnings = [];
@@ -37764,7 +37771,7 @@ function validateAndWarnToolName(name) {
37764
37771
  return result.isValid;
37765
37772
  }
37766
37773
 
37767
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
37774
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
37768
37775
  var ExperimentalMcpServerTasks = class {
37769
37776
  constructor(_mcpServer) {
37770
37777
  this._mcpServer = _mcpServer;
@@ -37779,7 +37786,7 @@ var ExperimentalMcpServerTasks = class {
37779
37786
  }
37780
37787
  };
37781
37788
 
37782
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
37789
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
37783
37790
  var McpServer = class {
37784
37791
  constructor(serverInfo, options) {
37785
37792
  this._registeredResources = {};
@@ -38595,12 +38602,21 @@ var EMPTY_COMPLETION_RESULT = {
38595
38602
  }
38596
38603
  };
38597
38604
 
38598
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
38605
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
38599
38606
  import process2 from "node:process";
38600
38607
 
38601
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
38608
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
38609
+ var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
38602
38610
  var ReadBuffer = class {
38611
+ constructor(options) {
38612
+ this._maxBufferSize = options?.maxBufferSize ?? STDIO_DEFAULT_MAX_BUFFER_SIZE;
38613
+ }
38603
38614
  append(chunk) {
38615
+ const newSize = (this._buffer?.length ?? 0) + chunk.length;
38616
+ if (newSize > this._maxBufferSize) {
38617
+ this.clear();
38618
+ throw new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);
38619
+ }
38604
38620
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
38605
38621
  }
38606
38622
  readMessage() {
@@ -38626,20 +38642,26 @@ function serializeMessage(message) {
38626
38642
  return JSON.stringify(message) + "\n";
38627
38643
  }
38628
38644
 
38629
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
38645
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
38630
38646
  var StdioServerTransport = class {
38631
- constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
38647
+ constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
38632
38648
  this._stdin = _stdin;
38633
38649
  this._stdout = _stdout;
38634
- this._readBuffer = new ReadBuffer();
38635
38650
  this._started = false;
38636
38651
  this._ondata = (chunk) => {
38637
- this._readBuffer.append(chunk);
38638
- this.processReadBuffer();
38652
+ try {
38653
+ this._readBuffer.append(chunk);
38654
+ this.processReadBuffer();
38655
+ } catch (error2) {
38656
+ this.onerror?.(error2);
38657
+ this.close().catch(() => {
38658
+ });
38659
+ }
38639
38660
  };
38640
38661
  this._onerror = (error2) => {
38641
38662
  this.onerror?.(error2);
38642
38663
  };
38664
+ this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
38643
38665
  }
38644
38666
  /**
38645
38667
  * Starts listening for messages on stdin.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-notes-mcp",
3
- "version": "2.6.14",
3
+ "version": "2.6.15",
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",