@dalmia/calibrate-mcp 0.0.59 → 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 +60 -18
- package/bin/mcp-server.js.map +11 -11
- 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/esm/models/benchmarkrequest.js +1 -1
- package/esm/models/benchmarkrequest.js.map +1 -1
- package/esm/models/benchmarkstatusresponse.d.ts +1 -0
- package/esm/models/benchmarkstatusresponse.d.ts.map +1 -1
- package/esm/models/benchmarkstatusresponse.js +1 -0
- package/esm/models/benchmarkstatusresponse.js.map +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/src/models/benchmarkrequest.ts +1 -1
- package/src/models/benchmarkstatusresponse.ts +4 -0
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
|
|
|
@@ -55613,7 +55654,7 @@ var init_benchmarkrequest = __esm(() => {
|
|
|
55613
55654
|
init_zod();
|
|
55614
55655
|
BenchmarkRequest$zodSchema = object({
|
|
55615
55656
|
models: array(string2()).describe("Model names to benchmark"),
|
|
55616
|
-
parallel_models: boolean2().default(true).describe("
|
|
55657
|
+
parallel_models: boolean2().default(true).describe("How to run the models. `true` runs several at a time, `false` runs each one only after the one before it has finished. Use `false` to keep the load on your own agent down"),
|
|
55617
55658
|
test_uuids: array(string2()).nullable().optional().describe("A subset of the agent's linked tests to benchmark. Each ID must be linked to the agent. Omit to run all linked tests")
|
|
55618
55659
|
});
|
|
55619
55660
|
});
|
|
@@ -56044,6 +56085,7 @@ var init_benchmarkstatusresponse = __esm(() => {
|
|
|
56044
56085
|
leaderboard_summary: array(record(string2(), any())).nullable().optional().describe("Leaderboard comparing the models, one row per model. Columns vary by benchmark: a `model` column plus pass/fail counts, latency, cost, and one score column per evaluator, keyed by evaluator name"),
|
|
56045
56086
|
model_results: array(ModelResult$zodSchema).nullable().optional().describe("Results for each model"),
|
|
56046
56087
|
name: string2().describe("Name of the run. A run nobody has renamed shows its number instead, such as `Run 1` for a test run or `Benchmark 1` for a benchmark"),
|
|
56088
|
+
parallel_models: boolean2().nullable().optional().describe("How the models were run. `true` means several ran at a time, `false` means each one ran only after the one before it had finished"),
|
|
56047
56089
|
share_token: string2().nullable().optional().describe("Token for building the public share URL"),
|
|
56048
56090
|
status: TaskStatus$zodSchema,
|
|
56049
56091
|
stopped_early: boolean2().default(false).describe("Whether any model's run stopped before starting every test case, after too many failed in a row"),
|
|
@@ -61563,7 +61605,7 @@ hits its trace limit.
|
|
|
61563
61605
|
function createMCPServer(deps) {
|
|
61564
61606
|
const server = new McpServer({
|
|
61565
61607
|
name: "CalibrateMcp",
|
|
61566
|
-
version: "0.0.
|
|
61608
|
+
version: "0.0.61"
|
|
61567
61609
|
});
|
|
61568
61610
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
61569
61611
|
security: deps.security,
|
|
@@ -62852,7 +62894,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
62852
62894
|
<h1>Instructions</h1>
|
|
62853
62895
|
<p>One-click installation for Claude Desktop users</p>
|
|
62854
62896
|
<div class="instruction-item">
|
|
62855
|
-
<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;">
|
|
62856
62898
|
\uD83D\uDCE5 Download MCP Bundle
|
|
62857
62899
|
</a>
|
|
62858
62900
|
</div>
|
|
@@ -65736,7 +65778,7 @@ var routes = buildRouteMap({
|
|
|
65736
65778
|
var app = buildApplication(routes, {
|
|
65737
65779
|
name: "mcp",
|
|
65738
65780
|
versionInfo: {
|
|
65739
|
-
currentVersion: "0.0.
|
|
65781
|
+
currentVersion: "0.0.61"
|
|
65740
65782
|
}
|
|
65741
65783
|
});
|
|
65742
65784
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -65744,5 +65786,5 @@ export {
|
|
|
65744
65786
|
app
|
|
65745
65787
|
};
|
|
65746
65788
|
|
|
65747
|
-
//# debugId=
|
|
65789
|
+
//# debugId=92996C3E08F6D0B164756E2164756E21
|
|
65748
65790
|
//# sourceMappingURL=mcp-server.js.map
|