apple-notes-mcp 2.9.31 → 2.9.33
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/build/index.js +47 -35
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3110,12 +3110,13 @@ var require_data = __commonJS({
|
|
|
3110
3110
|
}
|
|
3111
3111
|
});
|
|
3112
3112
|
|
|
3113
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3113
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js
|
|
3114
3114
|
var require_utils = __commonJS({
|
|
3115
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3115
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3116
3116
|
"use strict";
|
|
3117
3117
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3118
3118
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
3119
|
+
var isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
3119
3120
|
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3120
3121
|
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3121
3122
|
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
@@ -3581,8 +3582,12 @@ var require_utils = __commonJS({
|
|
|
3581
3582
|
uriTokens.push(host);
|
|
3582
3583
|
}
|
|
3583
3584
|
if (typeof component2.port === "number" || typeof component2.port === "string") {
|
|
3585
|
+
const port = String(component2.port);
|
|
3586
|
+
if (!isPort(port)) {
|
|
3587
|
+
throw new TypeError("URI port is malformed.");
|
|
3588
|
+
}
|
|
3584
3589
|
uriTokens.push(":");
|
|
3585
|
-
uriTokens.push(
|
|
3590
|
+
uriTokens.push(port);
|
|
3586
3591
|
}
|
|
3587
3592
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3588
3593
|
}
|
|
@@ -3607,9 +3612,9 @@ var require_utils = __commonJS({
|
|
|
3607
3612
|
}
|
|
3608
3613
|
});
|
|
3609
3614
|
|
|
3610
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3615
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js
|
|
3611
3616
|
var require_schemes = __commonJS({
|
|
3612
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3617
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3613
3618
|
"use strict";
|
|
3614
3619
|
var { isUUID } = require_utils();
|
|
3615
3620
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -3818,9 +3823,9 @@ var require_schemes = __commonJS({
|
|
|
3818
3823
|
}
|
|
3819
3824
|
});
|
|
3820
3825
|
|
|
3821
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3826
|
+
// node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js
|
|
3822
3827
|
var require_fast_uri = __commonJS({
|
|
3823
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3828
|
+
"node_modules/.pnpm/fast-uri@3.1.8/node_modules/fast-uri/index.js"(exports, module) {
|
|
3824
3829
|
"use strict";
|
|
3825
3830
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3826
3831
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
@@ -4025,12 +4030,15 @@ var require_fast_uri = __commonJS({
|
|
|
4025
4030
|
}
|
|
4026
4031
|
return false;
|
|
4027
4032
|
}
|
|
4033
|
+
function isIPLiteral(host) {
|
|
4034
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
4035
|
+
}
|
|
4028
4036
|
function hasMalformedComponentPercentEncoding(matches) {
|
|
4029
4037
|
const host = matches[4];
|
|
4030
|
-
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !(host
|
|
4038
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4031
4039
|
}
|
|
4032
4040
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4033
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host
|
|
4041
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4034
4042
|
try {
|
|
4035
4043
|
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
4036
4044
|
} catch (e) {
|
|
@@ -4117,10 +4125,11 @@ var require_fast_uri = __commonJS({
|
|
|
4117
4125
|
if (parsed.host) {
|
|
4118
4126
|
const ipv4result = isIPv4(parsed.host);
|
|
4119
4127
|
if (ipv4result === false) {
|
|
4120
|
-
const bracketedIPLiteral = parsed.host
|
|
4128
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
4129
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
4121
4130
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
4122
4131
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
4123
|
-
malformedIPLiteral =
|
|
4132
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4124
4133
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4125
4134
|
if (malformedIPLiteral) {
|
|
4126
4135
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
@@ -4143,14 +4152,17 @@ var require_fast_uri = __commonJS({
|
|
|
4143
4152
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
4144
4153
|
}
|
|
4145
4154
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4155
|
+
if (!malformedIPLiteral) {
|
|
4156
|
+
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4157
|
+
}
|
|
4158
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4159
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4160
|
+
if (!isIP) {
|
|
4161
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
4153
4162
|
}
|
|
4163
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4164
|
+
}
|
|
4165
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4154
4166
|
if (parsed.path) {
|
|
4155
4167
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
4156
4168
|
}
|
|
@@ -32391,7 +32403,7 @@ function object(shape, params) {
|
|
|
32391
32403
|
return new ZodMiniObject(def);
|
|
32392
32404
|
}
|
|
32393
32405
|
|
|
32394
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
32406
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
32395
32407
|
function isZ4Schema(s) {
|
|
32396
32408
|
const schema = s;
|
|
32397
32409
|
return !!schema._zod;
|
|
@@ -33246,7 +33258,7 @@ function preprocess(fn, schema) {
|
|
|
33246
33258
|
// node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
33247
33259
|
config(en_default2());
|
|
33248
33260
|
|
|
33249
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
33261
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
33250
33262
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
33251
33263
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
33252
33264
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -34777,7 +34789,7 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
34777
34789
|
}
|
|
34778
34790
|
};
|
|
34779
34791
|
|
|
34780
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
34792
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
34781
34793
|
function isTerminal(status) {
|
|
34782
34794
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
34783
34795
|
}
|
|
@@ -36066,7 +36078,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
36066
36078
|
return combined;
|
|
36067
36079
|
};
|
|
36068
36080
|
|
|
36069
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
36081
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
36070
36082
|
function mapMiniTarget(t) {
|
|
36071
36083
|
if (!t)
|
|
36072
36084
|
return "draft-7";
|
|
@@ -36108,7 +36120,7 @@ function parseWithCompat(schema, data) {
|
|
|
36108
36120
|
return result.data;
|
|
36109
36121
|
}
|
|
36110
36122
|
|
|
36111
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
36123
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
36112
36124
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
|
|
36113
36125
|
var Protocol = class {
|
|
36114
36126
|
constructor(_options) {
|
|
@@ -37062,7 +37074,7 @@ function mergeCapabilities(base, additional) {
|
|
|
37062
37074
|
return result;
|
|
37063
37075
|
}
|
|
37064
37076
|
|
|
37065
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
37077
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
37066
37078
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
37067
37079
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
37068
37080
|
function createDefaultAjvInstance() {
|
|
@@ -37130,7 +37142,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
37130
37142
|
}
|
|
37131
37143
|
};
|
|
37132
37144
|
|
|
37133
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
37145
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
37134
37146
|
var ExperimentalServerTasks = class {
|
|
37135
37147
|
constructor(_server) {
|
|
37136
37148
|
this._server = _server;
|
|
@@ -37343,7 +37355,7 @@ var ExperimentalServerTasks = class {
|
|
|
37343
37355
|
}
|
|
37344
37356
|
};
|
|
37345
37357
|
|
|
37346
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
37358
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
37347
37359
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
37348
37360
|
if (!requests) {
|
|
37349
37361
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -37378,7 +37390,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
37378
37390
|
}
|
|
37379
37391
|
}
|
|
37380
37392
|
|
|
37381
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
37393
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
37382
37394
|
var Server = class extends Protocol {
|
|
37383
37395
|
/**
|
|
37384
37396
|
* Initializes this server with the given name and version information.
|
|
@@ -37749,7 +37761,7 @@ var Server = class extends Protocol {
|
|
|
37749
37761
|
}
|
|
37750
37762
|
};
|
|
37751
37763
|
|
|
37752
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
37764
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
37753
37765
|
var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
|
|
37754
37766
|
function isCompletable(schema) {
|
|
37755
37767
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -37763,7 +37775,7 @@ var McpZodTypeKind;
|
|
|
37763
37775
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
37764
37776
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
37765
37777
|
|
|
37766
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
37778
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js
|
|
37767
37779
|
var MAX_TEMPLATE_LENGTH = 1e6;
|
|
37768
37780
|
var MAX_VARIABLE_LENGTH = 1e6;
|
|
37769
37781
|
var MAX_TEMPLATE_EXPRESSIONS = 1e4;
|
|
@@ -37985,7 +37997,7 @@ var UriTemplate = class _UriTemplate {
|
|
|
37985
37997
|
}
|
|
37986
37998
|
};
|
|
37987
37999
|
|
|
37988
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
38000
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
37989
38001
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
37990
38002
|
function validateToolName(name) {
|
|
37991
38003
|
const warnings = [];
|
|
@@ -38043,7 +38055,7 @@ function validateAndWarnToolName(name) {
|
|
|
38043
38055
|
return result.isValid;
|
|
38044
38056
|
}
|
|
38045
38057
|
|
|
38046
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
38058
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
38047
38059
|
var ExperimentalMcpServerTasks = class {
|
|
38048
38060
|
constructor(_mcpServer) {
|
|
38049
38061
|
this._mcpServer = _mcpServer;
|
|
@@ -38058,7 +38070,7 @@ var ExperimentalMcpServerTasks = class {
|
|
|
38058
38070
|
}
|
|
38059
38071
|
};
|
|
38060
38072
|
|
|
38061
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
38073
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
38062
38074
|
var McpServer = class {
|
|
38063
38075
|
constructor(serverInfo, options) {
|
|
38064
38076
|
this._registeredResources = {};
|
|
@@ -38874,10 +38886,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
38874
38886
|
}
|
|
38875
38887
|
};
|
|
38876
38888
|
|
|
38877
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
38889
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
38878
38890
|
import process2 from "node:process";
|
|
38879
38891
|
|
|
38880
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
38892
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
38881
38893
|
var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
|
|
38882
38894
|
var ReadBuffer = class {
|
|
38883
38895
|
constructor(options) {
|
|
@@ -38914,7 +38926,7 @@ function serializeMessage(message) {
|
|
|
38914
38926
|
return JSON.stringify(message) + "\n";
|
|
38915
38927
|
}
|
|
38916
38928
|
|
|
38917
|
-
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.
|
|
38929
|
+
// node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
38918
38930
|
var StdioServerTransport = class {
|
|
38919
38931
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout, options) {
|
|
38920
38932
|
this._stdin = _stdin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-notes-mcp",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.33",
|
|
4
4
|
"description": "MCP server for Apple Notes - read, search, create, edit, organize, and export notes on macOS via Claude and other AI assistants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|