@dalmia/calibrate-mcp 0.0.60 → 0.0.61
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 +58 -17
- package/bin/mcp-server.js.map +9 -9
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/package.json +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -42191,6 +42191,22 @@ var require_utils4 = __commonJS(function(exports, module) {
|
|
|
42191
42191
|
}
|
|
42192
42192
|
return output;
|
|
42193
42193
|
}
|
|
42194
|
+
function recomposeZonedIPv6Host(component) {
|
|
42195
|
+
const zone = component.ipv6Zone;
|
|
42196
|
+
if (zone === undefined)
|
|
42197
|
+
return;
|
|
42198
|
+
const host = component.host;
|
|
42199
|
+
const separator = host.indexOf("%");
|
|
42200
|
+
if (separator === -1)
|
|
42201
|
+
return;
|
|
42202
|
+
const address = host.slice(0, separator);
|
|
42203
|
+
const escaped = address + "%25" + zone;
|
|
42204
|
+
const derived = normalizeIPv6("[" + escaped + "]");
|
|
42205
|
+
if (derived.isIPV6 === true && derived.host === host) {
|
|
42206
|
+
return "[" + escaped + "]";
|
|
42207
|
+
}
|
|
42208
|
+
return;
|
|
42209
|
+
}
|
|
42194
42210
|
function recomposeAuthority(component) {
|
|
42195
42211
|
const uriTokens = [];
|
|
42196
42212
|
if (component.userinfo !== undefined) {
|
|
@@ -42200,15 +42216,20 @@ var require_utils4 = __commonJS(function(exports, module) {
|
|
|
42200
42216
|
if (component.host !== undefined) {
|
|
42201
42217
|
let host = component.host;
|
|
42202
42218
|
if (!isIPv4(host)) {
|
|
42203
|
-
|
|
42204
|
-
if (
|
|
42205
|
-
host =
|
|
42206
|
-
ipV6res = normalizeIPv6(host);
|
|
42207
|
-
}
|
|
42208
|
-
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
42209
|
-
host = `[${ipV6res.escapedHost}]`;
|
|
42219
|
+
const zonedHost = recomposeZonedIPv6Host(component);
|
|
42220
|
+
if (zonedHost !== undefined) {
|
|
42221
|
+
host = zonedHost;
|
|
42210
42222
|
} else {
|
|
42211
|
-
|
|
42223
|
+
let ipV6res = normalizeIPv6(host);
|
|
42224
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
42225
|
+
host = normalizePercentEncoding(host, true);
|
|
42226
|
+
ipV6res = normalizeIPv6(host);
|
|
42227
|
+
}
|
|
42228
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
42229
|
+
host = `[${ipV6res.escapedHost}]`;
|
|
42230
|
+
} else {
|
|
42231
|
+
host = reescapeHostDelimiters(host, false);
|
|
42232
|
+
}
|
|
42212
42233
|
}
|
|
42213
42234
|
}
|
|
42214
42235
|
uriTokens.push(host);
|
|
@@ -42421,6 +42442,7 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42421
42442
|
var HEX_PAIR = /^[\da-f]{2}$/iu;
|
|
42422
42443
|
var MAILTO_DOMAIN_LITERAL = /^\[[\x21-\x5A\x5E-\x7E]*\]$/u;
|
|
42423
42444
|
var MAILTO_DOMAIN_ERROR = "URI mailto has an invalid recipient domain.";
|
|
42445
|
+
var MAILTO_AUTHORITY_ERROR = "URI mailto must not have an authority component.";
|
|
42424
42446
|
var HAS_SURROGATE = /[\uD800-\uDFFF]/u;
|
|
42425
42447
|
function decodeHex(str) {
|
|
42426
42448
|
if (typeof str !== "string" || str.indexOf("%") === -1) {
|
|
@@ -42560,6 +42582,12 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42560
42582
|
mailtoComponent.headers = headers;
|
|
42561
42583
|
}
|
|
42562
42584
|
mailtoComponent.query = undefined;
|
|
42585
|
+
if (to.length > 0 && (mailtoComponent.userinfo !== undefined || mailtoComponent.host !== undefined || mailtoComponent.port !== undefined)) {
|
|
42586
|
+
mailtoComponent.userinfo = undefined;
|
|
42587
|
+
mailtoComponent.host = undefined;
|
|
42588
|
+
mailtoComponent.port = undefined;
|
|
42589
|
+
mailtoComponent.error = mailtoComponent.error || MAILTO_AUTHORITY_ERROR;
|
|
42590
|
+
}
|
|
42563
42591
|
for (let i = 0;i < to.length; i++) {
|
|
42564
42592
|
const rawAddr = to[i];
|
|
42565
42593
|
const atIdx = rawAddr.lastIndexOf("@");
|
|
@@ -42602,6 +42630,9 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42602
42630
|
headers.body = mailtoComponent.body;
|
|
42603
42631
|
mailtoComponent.headers = headers;
|
|
42604
42632
|
if (to.length) {
|
|
42633
|
+
mailtoComponent.userinfo = undefined;
|
|
42634
|
+
mailtoComponent.host = undefined;
|
|
42635
|
+
mailtoComponent.port = undefined;
|
|
42605
42636
|
for (let i = 0;i < to.length; i++) {
|
|
42606
42637
|
const addr = String(to[i]);
|
|
42607
42638
|
const atIdx = addr.lastIndexOf("@");
|
|
@@ -42715,6 +42746,12 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42715
42746
|
schemelessOptions.skipEscape = true;
|
|
42716
42747
|
return serialize(resolved, schemelessOptions);
|
|
42717
42748
|
}
|
|
42749
|
+
function copyHost(target, source) {
|
|
42750
|
+
target.host = source.host;
|
|
42751
|
+
if (source.ipv6Zone !== undefined) {
|
|
42752
|
+
target.ipv6Zone = source.ipv6Zone;
|
|
42753
|
+
}
|
|
42754
|
+
}
|
|
42718
42755
|
function resolveComponent(base, relative, options, skipNormalization) {
|
|
42719
42756
|
const target = {};
|
|
42720
42757
|
if (!skipNormalization) {
|
|
@@ -42725,14 +42762,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42725
42762
|
if (!options.tolerant && relative.scheme) {
|
|
42726
42763
|
target.scheme = relative.scheme;
|
|
42727
42764
|
target.userinfo = relative.userinfo;
|
|
42728
|
-
target
|
|
42765
|
+
copyHost(target, relative);
|
|
42729
42766
|
target.port = relative.port;
|
|
42730
42767
|
target.path = removeDotSegments(relative.path || "");
|
|
42731
42768
|
target.query = relative.query;
|
|
42732
42769
|
} else {
|
|
42733
42770
|
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
42734
42771
|
target.userinfo = relative.userinfo;
|
|
42735
|
-
target
|
|
42772
|
+
copyHost(target, relative);
|
|
42736
42773
|
target.port = relative.port;
|
|
42737
42774
|
target.path = removeDotSegments(relative.path || "");
|
|
42738
42775
|
target.query = relative.query;
|
|
@@ -42760,7 +42797,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42760
42797
|
target.query = relative.query;
|
|
42761
42798
|
}
|
|
42762
42799
|
target.userinfo = base.userinfo;
|
|
42763
|
-
target
|
|
42800
|
+
copyHost(target, base);
|
|
42764
42801
|
target.port = base.port;
|
|
42765
42802
|
}
|
|
42766
42803
|
target.scheme = base.scheme;
|
|
@@ -42776,6 +42813,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42776
42813
|
function serialize(cmpts, opts) {
|
|
42777
42814
|
const component = {
|
|
42778
42815
|
host: cmpts.host,
|
|
42816
|
+
ipv6Zone: cmpts.ipv6Zone,
|
|
42779
42817
|
scheme: cmpts.scheme,
|
|
42780
42818
|
userinfo: cmpts.userinfo,
|
|
42781
42819
|
port: cmpts.port,
|
|
@@ -42972,6 +43010,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42972
43010
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
42973
43011
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
42974
43012
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
43013
|
+
if (isIP && ipv6result.isIPV6 === true && parsed.host.indexOf("%") !== -1) {
|
|
43014
|
+
parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf("%") + 1);
|
|
43015
|
+
}
|
|
42975
43016
|
if (malformedIPLiteral) {
|
|
42976
43017
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
42977
43018
|
malformedAuthorityOrPort = true;
|
|
@@ -52761,9 +52802,9 @@ var init_config = __esm(() => {
|
|
|
52761
52802
|
SDK_METADATA = {
|
|
52762
52803
|
language: "typescript",
|
|
52763
52804
|
openapiDocVersion: "0.1.0",
|
|
52764
|
-
sdkVersion: "0.0.
|
|
52805
|
+
sdkVersion: "0.0.61",
|
|
52765
52806
|
genVersion: "2.915.1",
|
|
52766
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
52807
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.61 2.915.1 0.1.0 @dalmia/calibrate-mcp"
|
|
52767
52808
|
};
|
|
52768
52809
|
});
|
|
52769
52810
|
|
|
@@ -61564,7 +61605,7 @@ hits its trace limit.
|
|
|
61564
61605
|
function createMCPServer(deps) {
|
|
61565
61606
|
const server = new McpServer({
|
|
61566
61607
|
name: "CalibrateMcp",
|
|
61567
|
-
version: "0.0.
|
|
61608
|
+
version: "0.0.61"
|
|
61568
61609
|
});
|
|
61569
61610
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
61570
61611
|
security: deps.security,
|
|
@@ -62853,7 +62894,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
62853
62894
|
<h1>Instructions</h1>
|
|
62854
62895
|
<p>One-click installation for Claude Desktop users</p>
|
|
62855
62896
|
<div class="instruction-item">
|
|
62856
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
62897
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.61/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
62857
62898
|
\uD83D\uDCE5 Download MCP Bundle
|
|
62858
62899
|
</a>
|
|
62859
62900
|
</div>
|
|
@@ -65737,7 +65778,7 @@ var routes = buildRouteMap({
|
|
|
65737
65778
|
var app = buildApplication(routes, {
|
|
65738
65779
|
name: "mcp",
|
|
65739
65780
|
versionInfo: {
|
|
65740
|
-
currentVersion: "0.0.
|
|
65781
|
+
currentVersion: "0.0.61"
|
|
65741
65782
|
}
|
|
65742
65783
|
});
|
|
65743
65784
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -65745,5 +65786,5 @@ export {
|
|
|
65745
65786
|
app
|
|
65746
65787
|
};
|
|
65747
65788
|
|
|
65748
|
-
//# debugId=
|
|
65789
|
+
//# debugId=92996C3E08F6D0B164756E2164756E21
|
|
65749
65790
|
//# sourceMappingURL=mcp-server.js.map
|