apple-numbers-mcp 1.1.13 → 1.1.14

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
@@ -14806,7 +14806,7 @@ function object(shape, params) {
14806
14806
  return new ZodMiniObject(def);
14807
14807
  }
14808
14808
 
14809
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
14809
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
14810
14810
  function isZ4Schema(s) {
14811
14811
  const schema = s;
14812
14812
  return !!schema._zod;
@@ -14890,17 +14890,33 @@ function normalizeObjectSchema(schema) {
14890
14890
  }
14891
14891
  return void 0;
14892
14892
  }
14893
+ function getDotPath(path) {
14894
+ if (path.length === 0) {
14895
+ return "object root";
14896
+ }
14897
+ return path.reduce((acc, seg, index) => {
14898
+ if (index === 0) {
14899
+ return String(seg);
14900
+ }
14901
+ if (typeof seg === "number") {
14902
+ return `${acc}[${seg}]`;
14903
+ }
14904
+ return `${acc}.${seg}`;
14905
+ }, "");
14906
+ }
14893
14907
  function getParseErrorMessage(error2) {
14894
14908
  if (error2 && typeof error2 === "object") {
14909
+ if ("issues" in error2 && Array.isArray(error2.issues) && error2.issues.length > 0) {
14910
+ return error2.issues.map((i) => {
14911
+ if (!i.path?.length) {
14912
+ return i.message;
14913
+ }
14914
+ return `${i.message} at ${getDotPath(i.path)}`;
14915
+ }).join("\n");
14916
+ }
14895
14917
  if ("message" in error2 && typeof error2.message === "string") {
14896
14918
  return error2.message;
14897
14919
  }
14898
- if ("issues" in error2 && Array.isArray(error2.issues) && error2.issues.length > 0) {
14899
- const firstIssue = error2.issues[0];
14900
- if (firstIssue && typeof firstIssue === "object" && "message" in firstIssue) {
14901
- return String(firstIssue.message);
14902
- }
14903
- }
14904
14920
  try {
14905
14921
  return JSON.stringify(error2);
14906
14922
  } catch {
@@ -15645,7 +15661,7 @@ function preprocess(fn, schema) {
15645
15661
  // node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
15646
15662
  config(en_default2());
15647
15663
 
15648
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
15664
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
15649
15665
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
15650
15666
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
15651
15667
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -17176,7 +17192,7 @@ var UrlElicitationRequiredError = class extends McpError {
17176
17192
  }
17177
17193
  };
17178
17194
 
17179
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
17195
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
17180
17196
  function isTerminal(status) {
17181
17197
  return status === "completed" || status === "failed" || status === "cancelled";
17182
17198
  }
@@ -18465,7 +18481,7 @@ var zodToJsonSchema = (schema, options) => {
18465
18481
  return combined;
18466
18482
  };
18467
18483
 
18468
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
18484
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
18469
18485
  function mapMiniTarget(t) {
18470
18486
  if (!t)
18471
18487
  return "draft-7";
@@ -18507,7 +18523,7 @@ function parseWithCompat(schema, data) {
18507
18523
  return result.data;
18508
18524
  }
18509
18525
 
18510
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
18526
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
18511
18527
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
18512
18528
  var Protocol = class {
18513
18529
  constructor(_options) {
@@ -19461,7 +19477,7 @@ function mergeCapabilities(base, additional) {
19461
19477
  return result;
19462
19478
  }
19463
19479
 
19464
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
19480
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
19465
19481
  var import_ajv = __toESM(require_ajv(), 1);
19466
19482
  var import_ajv_formats = __toESM(require_dist(), 1);
19467
19483
  function createDefaultAjvInstance() {
@@ -19529,7 +19545,7 @@ var AjvJsonSchemaValidator = class {
19529
19545
  }
19530
19546
  };
19531
19547
 
19532
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
19548
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
19533
19549
  var ExperimentalServerTasks = class {
19534
19550
  constructor(_server) {
19535
19551
  this._server = _server;
@@ -19742,7 +19758,7 @@ var ExperimentalServerTasks = class {
19742
19758
  }
19743
19759
  };
19744
19760
 
19745
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
19761
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
19746
19762
  function assertToolsCallTaskCapability(requests, method, entityName) {
19747
19763
  if (!requests) {
19748
19764
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -19777,7 +19793,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
19777
19793
  }
19778
19794
  }
19779
19795
 
19780
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
19796
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
19781
19797
  var Server = class extends Protocol {
19782
19798
  /**
19783
19799
  * Initializes this server with the given name and version information.
@@ -19843,16 +19859,7 @@ var Server = class extends Protocol {
19843
19859
  if (!methodSchema) {
19844
19860
  throw new Error("Schema is missing a method literal");
19845
19861
  }
19846
- let methodValue;
19847
- if (isZ4Schema(methodSchema)) {
19848
- const v4Schema = methodSchema;
19849
- const v4Def = v4Schema._zod?.def;
19850
- methodValue = v4Def?.value ?? v4Schema.value;
19851
- } else {
19852
- const v3Schema = methodSchema;
19853
- const legacyDef = v3Schema._def;
19854
- methodValue = legacyDef?.value ?? v3Schema.value;
19855
- }
19862
+ const methodValue = getLiteralValue(methodSchema);
19856
19863
  if (typeof methodValue !== "string") {
19857
19864
  throw new Error("Schema method literal must be a string");
19858
19865
  }
@@ -20157,7 +20164,7 @@ var Server = class extends Protocol {
20157
20164
  }
20158
20165
  };
20159
20166
 
20160
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20167
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20161
20168
  var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
20162
20169
  function isCompletable(schema) {
20163
20170
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
@@ -20171,7 +20178,7 @@ var McpZodTypeKind;
20171
20178
  McpZodTypeKind2["Completable"] = "McpCompletable";
20172
20179
  })(McpZodTypeKind || (McpZodTypeKind = {}));
20173
20180
 
20174
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
20181
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
20175
20182
  var MAX_TEMPLATE_LENGTH = 1e6;
20176
20183
  var MAX_VARIABLE_LENGTH = 1e6;
20177
20184
  var MAX_TEMPLATE_EXPRESSIONS = 1e4;
@@ -20393,7 +20400,7 @@ var UriTemplate = class _UriTemplate {
20393
20400
  }
20394
20401
  };
20395
20402
 
20396
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
20403
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
20397
20404
  var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
20398
20405
  function validateToolName(name) {
20399
20406
  const warnings = [];
@@ -20451,7 +20458,7 @@ function validateAndWarnToolName(name) {
20451
20458
  return result.isValid;
20452
20459
  }
20453
20460
 
20454
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
20461
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
20455
20462
  var ExperimentalMcpServerTasks = class {
20456
20463
  constructor(_mcpServer) {
20457
20464
  this._mcpServer = _mcpServer;
@@ -20466,7 +20473,7 @@ var ExperimentalMcpServerTasks = class {
20466
20473
  }
20467
20474
  };
20468
20475
 
20469
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
20476
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
20470
20477
  var McpServer = class {
20471
20478
  constructor(serverInfo, options) {
20472
20479
  this._registeredResources = {};
@@ -21282,12 +21289,21 @@ var EMPTY_COMPLETION_RESULT = {
21282
21289
  }
21283
21290
  };
21284
21291
 
21285
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21292
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21286
21293
  import process2 from "node:process";
21287
21294
 
21288
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
21295
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
21296
+ var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
21289
21297
  var ReadBuffer = class {
21298
+ constructor(options) {
21299
+ this._maxBufferSize = options?.maxBufferSize ?? STDIO_DEFAULT_MAX_BUFFER_SIZE;
21300
+ }
21290
21301
  append(chunk) {
21302
+ const newSize = (this._buffer?.length ?? 0) + chunk.length;
21303
+ if (newSize > this._maxBufferSize) {
21304
+ this.clear();
21305
+ throw new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);
21306
+ }
21291
21307
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
21292
21308
  }
21293
21309
  readMessage() {
@@ -21313,20 +21329,26 @@ function serializeMessage(message) {
21313
21329
  return JSON.stringify(message) + "\n";
21314
21330
  }
21315
21331
 
21316
- // node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21332
+ // node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21317
21333
  var StdioServerTransport = class {
21318
- constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
21334
+ constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
21319
21335
  this._stdin = _stdin;
21320
21336
  this._stdout = _stdout;
21321
- this._readBuffer = new ReadBuffer();
21322
21337
  this._started = false;
21323
21338
  this._ondata = (chunk) => {
21324
- this._readBuffer.append(chunk);
21325
- this.processReadBuffer();
21339
+ try {
21340
+ this._readBuffer.append(chunk);
21341
+ this.processReadBuffer();
21342
+ } catch (error2) {
21343
+ this.onerror?.(error2);
21344
+ this.close().catch(() => {
21345
+ });
21346
+ }
21326
21347
  };
21327
21348
  this._onerror = (error2) => {
21328
21349
  this.onerror?.(error2);
21329
21350
  };
21351
+ this._readBuffer = new ReadBuffer({ maxBufferSize: options?.maxBufferSize });
21330
21352
  }
21331
21353
  /**
21332
21354
  * Starts listening for messages on stdin.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apple-numbers-mcp",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "MCP server for Apple Numbers - read, write, search, and format .numbers spreadsheets via Claude and other AI assistants",
5
5
  "type": "module",
6
6
  "main": "build/index.js",