@noresponse/mcp 0.6.4 → 0.6.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.6
4
+
5
+ No changes detected.
6
+
7
+ ## 0.6.5
8
+
9
+ No changes detected.
10
+
3
11
  ## 0.6.4
4
12
 
5
13
  No changes detected.
package/bin/mcp-server.js CHANGED
@@ -41068,7 +41068,8 @@ var require_formats2 = __commonJS(function(exports, module) {
41068
41068
  var percentTwenties = /%20/g;
41069
41069
  var Format = {
41070
41070
  RFC1738: "RFC1738",
41071
- RFC3986: "RFC3986"
41071
+ RFC3986: "RFC3986",
41072
+ WHATWG: "WHATWG"
41072
41073
  };
41073
41074
  module.exports = {
41074
41075
  default: Format.RFC3986,
@@ -41078,10 +41079,14 @@ var require_formats2 = __commonJS(function(exports, module) {
41078
41079
  },
41079
41080
  RFC3986: function(value) {
41080
41081
  return String(value);
41082
+ },
41083
+ WHATWG: function(value) {
41084
+ return replace.call(value, percentTwenties, "+");
41081
41085
  }
41082
41086
  },
41083
41087
  RFC1738: Format.RFC1738,
41084
- RFC3986: Format.RFC3986
41088
+ RFC3986: Format.RFC3986,
41089
+ WHATWG: Format.WHATWG
41085
41090
  };
41086
41091
  });
41087
41092
 
@@ -41385,7 +41390,7 @@ var require_utils3 = __commonJS(function(exports, module) {
41385
41390
  var arr = [];
41386
41391
  for (var i = 0;i < segment.length; ++i) {
41387
41392
  var c = segment.charCodeAt(i);
41388
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
41393
+ if (c === 45 || c === 46 || c === 95 || c === 126 && format !== formats.WHATWG || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41) || format === formats.WHATWG && c === 42) {
41389
41394
  arr[arr.length] = segment.charAt(i);
41390
41395
  continue;
41391
41396
  }
@@ -41401,9 +41406,14 @@ var require_utils3 = __commonJS(function(exports, module) {
41401
41406
  arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
41402
41407
  continue;
41403
41408
  }
41404
- i += 1;
41405
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
41406
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
41409
+ var next = segment.charCodeAt(i + 1);
41410
+ if (c <= 56319 && next >= 56320 && next <= 57343) {
41411
+ i += 1;
41412
+ c = 65536 + ((c & 1023) << 10 | next & 1023);
41413
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
41414
+ } else {
41415
+ arr[arr.length] = "%EF%BF%BD";
41416
+ }
41407
41417
  }
41408
41418
  out += arr.join("");
41409
41419
  }
@@ -41483,6 +41493,7 @@ var require_utils3 = __commonJS(function(exports, module) {
41483
41493
  markOverflow,
41484
41494
  maybeMap,
41485
41495
  merge,
41496
+ setProperty,
41486
41497
  toCoercible
41487
41498
  };
41488
41499
  });
@@ -41607,7 +41618,7 @@ var require_stringify = __commonJS(function(exports, module) {
41607
41618
  var encodedPrefix = String(prefix);
41608
41619
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
41609
41620
  if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
41610
- return adjustedPrefix + "[]";
41621
+ return formatter(encoder && !encodeValuesOnly ? encoder(adjustedPrefix, defaults.encoder, charset, "key", format) : adjustedPrefix) + "[]";
41611
41622
  }
41612
41623
  for (var j = 0;j < objKeys.length; ++j) {
41613
41624
  var key = objKeys[j];
@@ -41697,7 +41708,7 @@ var require_stringify = __commonJS(function(exports, module) {
41697
41708
  filter = options.filter;
41698
41709
  obj = filter("", obj);
41699
41710
  } else if (isArray(options.filter)) {
41700
- filter = options.filter;
41711
+ filter = options.filter.slice();
41701
41712
  objKeys = filter;
41702
41713
  }
41703
41714
  var keys = [];
@@ -41723,7 +41734,7 @@ var require_stringify = __commonJS(function(exports, module) {
41723
41734
  continue;
41724
41735
  }
41725
41736
  var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
41726
- pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
41737
+ pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
41727
41738
  }
41728
41739
  var joined = keys.join(options.delimiter);
41729
41740
  var prefix = options.addQueryPrefix === true ? "?" : "";
@@ -41779,9 +41790,9 @@ var require_parse = __commonJS(function(exports, module) {
41779
41790
  copies.set(value, copy);
41780
41791
  queue[queue.length] = { source: value, target: copy };
41781
41792
  }
41782
- target[keys[j]] = copies.get(value);
41793
+ utils.setProperty(target, keys[j], copies.get(value));
41783
41794
  } else {
41784
- target[keys[j]] = value;
41795
+ utils.setProperty(target, keys[j], value);
41785
41796
  }
41786
41797
  }
41787
41798
  }
@@ -41831,7 +41842,7 @@ var require_parse = __commonJS(function(exports, module) {
41831
41842
  }
41832
41843
  return val.split(",");
41833
41844
  }
41834
- if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
41845
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit && currentArrayLength > 0) {
41835
41846
  throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
41836
41847
  }
41837
41848
  return val;
@@ -41879,13 +41890,15 @@ var require_parse = __commonJS(function(exports, module) {
41879
41890
  } else {
41880
41891
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
41881
41892
  if (key !== null) {
41882
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
41893
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) && (options.duplicates === "combine" || isEmptyBracketKey) ? obj[key].length : 0), function(encodedVal) {
41883
41894
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
41884
41895
  });
41885
41896
  }
41886
41897
  }
41887
41898
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
41888
- val = interpretNumericEntities(String(val));
41899
+ val = utils.maybeMap(val, function(value) {
41900
+ return value ? interpretNumericEntities(String(value)) : value;
41901
+ });
41889
41902
  }
41890
41903
  if (isEmptyBracketKey) {
41891
41904
  val = isArray(val) ? [val] : val;
@@ -41923,7 +41936,7 @@ var require_parse = __commonJS(function(exports, module) {
41923
41936
  } else {
41924
41937
  obj = options.plainObjects ? { __proto__: null } : {};
41925
41938
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
41926
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
41939
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, ".") : cleanRoot;
41927
41940
  var index = parseInt(decodedRoot, 10);
41928
41941
  var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
41929
41942
  if (!options.parseArrays && decodedRoot === "") {
@@ -48104,9 +48117,9 @@ var init_config = __esm(() => {
48104
48117
  SDK_METADATA = {
48105
48118
  language: "typescript",
48106
48119
  openapiDocVersion: "1",
48107
- sdkVersion: "0.6.4",
48120
+ sdkVersion: "0.6.6",
48108
48121
  genVersion: "internal",
48109
- userAgent: "noresponse-sdk/mcp-typescript 0.6.4 internal 1 @noresponse/mcp"
48122
+ userAgent: "noresponse-sdk/mcp-typescript 0.6.6 internal 1 @noresponse/mcp"
48110
48123
  };
48111
48124
  });
48112
48125
 
@@ -56383,7 +56396,7 @@ endpoint.verification sends a signed challenge now and answers whether the endpo
56383
56396
  function createMCPServer(deps) {
56384
56397
  const server = new McpServer({
56385
56398
  name: "NoResponse",
56386
- version: "0.6.4"
56399
+ version: "0.6.6"
56387
56400
  });
56388
56401
  const getClient = deps.getSDK || (() => new NoResponseCore({
56389
56402
  security: deps.security,
@@ -65120,7 +65133,7 @@ var routes = buildRouteMap({
65120
65133
  var app = buildApplication(routes, {
65121
65134
  name: "mcp",
65122
65135
  versionInfo: {
65123
- currentVersion: "0.6.4"
65136
+ currentVersion: "0.6.6"
65124
65137
  }
65125
65138
  });
65126
65139
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -65128,5 +65141,5 @@ export {
65128
65141
  app
65129
65142
  };
65130
65143
 
65131
- //# debugId=B2B4C6490E79E1E264756E2164756E21
65144
+ //# debugId=25C5350539B57C2C64756E2164756E21
65132
65145
  //# sourceMappingURL=mcp-server.js.map