@dalmia/calibrate-mcp 0.0.54 → 0.0.55

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/bin/mcp-server.js CHANGED
@@ -41998,6 +41998,7 @@ var require_data = __commonJS(function(exports, module) {
41998
41998
  var require_utils4 = __commonJS(function(exports, module) {
41999
41999
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
42000
42000
  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);
42001
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
42001
42002
  var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
42002
42003
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
42003
42004
  var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
@@ -42502,8 +42503,12 @@ var require_utils4 = __commonJS(function(exports, module) {
42502
42503
  uriTokens.push(host);
42503
42504
  }
42504
42505
  if (typeof component.port === "number" || typeof component.port === "string") {
42506
+ const port = String(component.port);
42507
+ if (!isPort(port)) {
42508
+ throw new TypeError("URI port is malformed.");
42509
+ }
42505
42510
  uriTokens.push(":");
42506
- uriTokens.push(String(component.port));
42511
+ uriTokens.push(port);
42507
42512
  }
42508
42513
  return uriTokens.length ? uriTokens.join("") : undefined;
42509
42514
  }
@@ -43137,12 +43142,16 @@ var require_fast_uri = __commonJS(function(exports, module) {
43137
43142
  }
43138
43143
  return false;
43139
43144
  }
43145
+ function isIPLiteral(host) {
43146
+ return host[0] === "[" && host[host.length - 1] === "]";
43147
+ }
43140
43148
  function hasMalformedComponentPercentEncoding(matches) {
43141
43149
  const host = matches[4];
43142
- return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !(host[0] === "[" && host[host.length - 1] === "]") && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
43150
+ return hasMalformedPercentEncoding(matches[3]) || host !== undefined && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
43143
43151
  }
43144
43152
  function canonicalizeHost(parsed, options, schemeHandler, isIP) {
43145
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && parsed.host[0] !== "[" && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
43153
+ const bracketedIPLiteral = parsed.host && parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
43154
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && !bracketedIPLiteral && nonSimpleDomain(parsed.host)) {
43146
43155
  try {
43147
43156
  parsed.host = new URL("http://" + parsed.host).hostname;
43148
43157
  } catch (e) {
@@ -43229,10 +43238,11 @@ var require_fast_uri = __commonJS(function(exports, module) {
43229
43238
  if (parsed.host) {
43230
43239
  const ipv4result = isIPv4(parsed.host);
43231
43240
  if (ipv4result === false) {
43232
- const bracketedIPLiteral = parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
43241
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
43242
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
43233
43243
  const ipv6result = normalizeIPv6(parsed.host);
43234
43244
  isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
43235
- malformedIPLiteral = bracketedIPLiteral && ipv6result.error === true;
43245
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
43236
43246
  parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
43237
43247
  if (malformedIPLiteral) {
43238
43248
  parsed.error = parsed.error || "URI host is malformed.";
@@ -43255,7 +43265,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
43255
43265
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
43256
43266
  }
43257
43267
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
43258
- malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
43268
+ if (!malformedIPLiteral) {
43269
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
43270
+ }
43259
43271
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
43260
43272
  if (uri.indexOf("%") !== -1) {
43261
43273
  if (parsed.host !== undefined && !malformedIPLiteral) {
@@ -53020,9 +53032,9 @@ var init_config = __esm(() => {
53020
53032
  SDK_METADATA = {
53021
53033
  language: "typescript",
53022
53034
  openapiDocVersion: "0.1.0",
53023
- sdkVersion: "0.0.54",
53035
+ sdkVersion: "0.0.55",
53024
53036
  genVersion: "2.915.1",
53025
- userAgent: "speakeasy-sdk/mcp-typescript 0.0.54 2.915.1 0.1.0 @dalmia/calibrate-mcp"
53037
+ userAgent: "speakeasy-sdk/mcp-typescript 0.0.55 2.915.1 0.1.0 @dalmia/calibrate-mcp"
53026
53038
  };
53027
53039
  });
53028
53040
 
@@ -61817,7 +61829,7 @@ hits its trace limit.
61817
61829
  function createMCPServer(deps) {
61818
61830
  const server = new McpServer({
61819
61831
  name: "CalibrateMcp",
61820
- version: "0.0.54"
61832
+ version: "0.0.55"
61821
61833
  });
61822
61834
  const getClient = deps.getSDK || (() => new CalibrateMcpCore({
61823
61835
  security: deps.security,
@@ -63106,7 +63118,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
63106
63118
  <h1>Instructions</h1>
63107
63119
  <p>One-click installation for Claude Desktop users</p>
63108
63120
  <div class="instruction-item">
63109
- <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.54/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63121
+ <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.55/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63110
63122
  \uD83D\uDCE5 Download MCP Bundle
63111
63123
  </a>
63112
63124
  </div>
@@ -65993,7 +66005,7 @@ var routes = buildRouteMap({
65993
66005
  var app = buildApplication(routes, {
65994
66006
  name: "mcp",
65995
66007
  versionInfo: {
65996
- currentVersion: "0.0.54"
66008
+ currentVersion: "0.0.55"
65997
66009
  }
65998
66010
  });
65999
66011
  run(app, process4.argv.slice(2), buildContext(process4));
@@ -66001,5 +66013,5 @@ export {
66001
66013
  app
66002
66014
  };
66003
66015
 
66004
- //# debugId=11C9C3793792B44F64756E2164756E21
66016
+ //# debugId=85A19CC581C9E75764756E2164756E21
66005
66017
  //# sourceMappingURL=mcp-server.js.map