@dalmia/calibrate-mcp 0.0.88 → 0.0.89
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 +183 -183
- package/bin/mcp-server.js.map +11 -11
- package/esm/funcs/{workspaceCurrent.d.ts → organizationsCurrent.d.ts} +2 -2
- package/esm/funcs/organizationsCurrent.d.ts.map +1 -0
- package/esm/funcs/{workspaceCurrent.js → organizationsCurrent.js} +2 -2
- package/esm/funcs/organizationsCurrent.js.map +1 -0
- 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 +3 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/{workspaceCurrent.d.ts → organizationsCurrent.d.ts} +2 -2
- package/esm/mcp-server/tools/organizationsCurrent.d.ts.map +1 -0
- package/esm/mcp-server/tools/{workspaceCurrent.js → organizationsCurrent.js} +4 -4
- package/esm/mcp-server/tools/organizationsCurrent.js.map +1 -0
- package/package.json +1 -1
- package/src/funcs/{workspaceCurrent.ts → organizationsCurrent.ts} +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 +3 -3
- package/src/mcp-server/tools/{workspaceCurrent.ts → organizationsCurrent.ts} +3 -3
- package/esm/funcs/workspaceCurrent.d.ts.map +0 -1
- package/esm/funcs/workspaceCurrent.js.map +0 -1
- package/esm/mcp-server/tools/workspaceCurrent.d.ts.map +0 -1
- package/esm/mcp-server/tools/workspaceCurrent.js.map +0 -1
package/bin/mcp-server.js
CHANGED
|
@@ -53298,9 +53298,9 @@ var init_config = __esm(() => {
|
|
|
53298
53298
|
SDK_METADATA = {
|
|
53299
53299
|
language: "typescript",
|
|
53300
53300
|
openapiDocVersion: "0.1.0",
|
|
53301
|
-
sdkVersion: "0.0.
|
|
53301
|
+
sdkVersion: "0.0.89",
|
|
53302
53302
|
genVersion: "2.915.1",
|
|
53303
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
53303
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.89 2.915.1 0.1.0 @dalmia/calibrate-mcp"
|
|
53304
53304
|
};
|
|
53305
53305
|
});
|
|
53306
53306
|
|
|
@@ -61870,6 +61870,146 @@ var init_evaluatorsList2 = __esm(() => {
|
|
|
61870
61870
|
};
|
|
61871
61871
|
});
|
|
61872
61872
|
|
|
61873
|
+
// src/models/currentworkspaceresponse.ts
|
|
61874
|
+
var CurrentWorkspaceResponse$zodSchema;
|
|
61875
|
+
var init_currentworkspaceresponse = __esm(() => {
|
|
61876
|
+
init_zod();
|
|
61877
|
+
CurrentWorkspaceResponse$zodSchema = object({
|
|
61878
|
+
name: string2().describe("Workspace display name"),
|
|
61879
|
+
uuid: string2().describe("Workspace ID. Put this at the front of a Calibrate web address to link straight to something in this workspace, as in `/<uuid>/tests`")
|
|
61880
|
+
});
|
|
61881
|
+
});
|
|
61882
|
+
|
|
61883
|
+
// src/models/getcurrentworkspaceorganizationscurrentgetop.ts
|
|
61884
|
+
var GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema, GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema;
|
|
61885
|
+
var init_getcurrentworkspaceorganizationscurrentgetop = __esm(() => {
|
|
61886
|
+
init_zod();
|
|
61887
|
+
init_currentworkspaceresponse();
|
|
61888
|
+
init_httpvalidationerror();
|
|
61889
|
+
GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema = object({
|
|
61890
|
+
xAPIKey: string2().nullable().optional()
|
|
61891
|
+
});
|
|
61892
|
+
GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema = union([
|
|
61893
|
+
CurrentWorkspaceResponse$zodSchema,
|
|
61894
|
+
HTTPValidationError$zodSchema
|
|
61895
|
+
]);
|
|
61896
|
+
});
|
|
61897
|
+
|
|
61898
|
+
// src/funcs/organizationsCurrent.ts
|
|
61899
|
+
function organizationsCurrent(client$, request, options) {
|
|
61900
|
+
return new APIPromise($do40(client$, request, options));
|
|
61901
|
+
}
|
|
61902
|
+
async function $do40(client$, request, options) {
|
|
61903
|
+
const parsed$ = safeParse4(request, (value$) => GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61904
|
+
if (!parsed$.ok) {
|
|
61905
|
+
return [parsed$, { status: "invalid" }];
|
|
61906
|
+
}
|
|
61907
|
+
const payload$ = parsed$.value;
|
|
61908
|
+
const body$ = null;
|
|
61909
|
+
const path$ = pathToFunc("/organizations/current")();
|
|
61910
|
+
const headers$ = new Headers(compactMap({
|
|
61911
|
+
Accept: "application/json",
|
|
61912
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$?.xAPIKey, {
|
|
61913
|
+
explode: false,
|
|
61914
|
+
charEncoding: "none"
|
|
61915
|
+
})
|
|
61916
|
+
}));
|
|
61917
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
61918
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
61919
|
+
const context = {
|
|
61920
|
+
options: client$._options,
|
|
61921
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
61922
|
+
operationID: "get_current_workspace_organizations_current_get",
|
|
61923
|
+
oAuth2Scopes: null,
|
|
61924
|
+
resolvedSecurity: requestSecurity,
|
|
61925
|
+
securitySource: client$._options.security,
|
|
61926
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
61927
|
+
retryCodes: options?.retryCodes || [
|
|
61928
|
+
"429",
|
|
61929
|
+
"500",
|
|
61930
|
+
"502",
|
|
61931
|
+
"503",
|
|
61932
|
+
"504"
|
|
61933
|
+
]
|
|
61934
|
+
};
|
|
61935
|
+
const requestRes = client$._createRequest(context, {
|
|
61936
|
+
security: requestSecurity,
|
|
61937
|
+
method: "GET",
|
|
61938
|
+
baseURL: options?.serverURL,
|
|
61939
|
+
path: path$,
|
|
61940
|
+
headers: headers$,
|
|
61941
|
+
body: body$,
|
|
61942
|
+
userAgent: client$._options.userAgent,
|
|
61943
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
61944
|
+
}, options);
|
|
61945
|
+
if (!requestRes.ok) {
|
|
61946
|
+
return [requestRes, { status: "invalid" }];
|
|
61947
|
+
}
|
|
61948
|
+
const req$ = requestRes.value;
|
|
61949
|
+
const doResult = await client$._do(req$, {
|
|
61950
|
+
context,
|
|
61951
|
+
errorCodes: [],
|
|
61952
|
+
retryConfig: context.retryConfig,
|
|
61953
|
+
retryCodes: context.retryCodes
|
|
61954
|
+
});
|
|
61955
|
+
if (!doResult.ok) {
|
|
61956
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
61957
|
+
}
|
|
61958
|
+
return [doResult, {
|
|
61959
|
+
status: "complete",
|
|
61960
|
+
request: req$,
|
|
61961
|
+
response: doResult.value
|
|
61962
|
+
}];
|
|
61963
|
+
}
|
|
61964
|
+
var init_organizationsCurrent = __esm(() => {
|
|
61965
|
+
init_encodings();
|
|
61966
|
+
init_primitives();
|
|
61967
|
+
init_schemas4();
|
|
61968
|
+
init_security();
|
|
61969
|
+
init_url();
|
|
61970
|
+
init_getcurrentworkspaceorganizationscurrentgetop();
|
|
61971
|
+
init_async();
|
|
61972
|
+
});
|
|
61973
|
+
|
|
61974
|
+
// src/mcp-server/tools/organizationsCurrent.ts
|
|
61975
|
+
var args40, tool$organizationsCurrent;
|
|
61976
|
+
var init_organizationsCurrent2 = __esm(() => {
|
|
61977
|
+
init_organizationsCurrent();
|
|
61978
|
+
init_getcurrentworkspaceorganizationscurrentgetop();
|
|
61979
|
+
init_tools();
|
|
61980
|
+
args40 = {
|
|
61981
|
+
request: GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema.optional()
|
|
61982
|
+
};
|
|
61983
|
+
tool$organizationsCurrent = {
|
|
61984
|
+
name: "get-current-workspace",
|
|
61985
|
+
description: `Get the workspace the caller's API key belongs to, as its ID and
|
|
61986
|
+
name. Put the ID at the front of a Calibrate web address to link
|
|
61987
|
+
straight to something in that workspace, as in \`/<uuid>/tests\`.
|
|
61988
|
+
Without it, a link opens whichever workspace the reader looked at
|
|
61989
|
+
last. Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
61990
|
+
`,
|
|
61991
|
+
scopes: ["read"],
|
|
61992
|
+
annotations: {
|
|
61993
|
+
title: "Get the current workspace",
|
|
61994
|
+
destructiveHint: false,
|
|
61995
|
+
idempotentHint: true,
|
|
61996
|
+
openWorldHint: true,
|
|
61997
|
+
readOnlyHint: true
|
|
61998
|
+
},
|
|
61999
|
+
args: args40,
|
|
62000
|
+
tool: async (client, args, ctx) => {
|
|
62001
|
+
const [result] = await organizationsCurrent(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62002
|
+
if (!result.ok) {
|
|
62003
|
+
return {
|
|
62004
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62005
|
+
isError: true
|
|
62006
|
+
};
|
|
62007
|
+
}
|
|
62008
|
+
return formatResult(result.value);
|
|
62009
|
+
}
|
|
62010
|
+
};
|
|
62011
|
+
});
|
|
62012
|
+
|
|
61873
62013
|
// src/models/chatmessage.ts
|
|
61874
62014
|
var Role$zodSchema, ChatMessage$zodSchema;
|
|
61875
62015
|
var init_chatmessage = __esm(() => {
|
|
@@ -61976,9 +62116,9 @@ var init_bulkuploadteststestsbulkpostop = __esm(() => {
|
|
|
61976
62116
|
|
|
61977
62117
|
// src/funcs/testsBulkCreate.ts
|
|
61978
62118
|
function testsBulkCreate(client$, request, options) {
|
|
61979
|
-
return new APIPromise($
|
|
62119
|
+
return new APIPromise($do41(client$, request, options));
|
|
61980
62120
|
}
|
|
61981
|
-
async function $
|
|
62121
|
+
async function $do41(client$, request, options) {
|
|
61982
62122
|
const parsed$ = safeParse4(request, (value$) => BulkUploadTestsTestsBulkPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61983
62123
|
if (!parsed$.ok) {
|
|
61984
62124
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62052,12 +62192,12 @@ var init_testsBulkCreate = __esm(() => {
|
|
|
62052
62192
|
});
|
|
62053
62193
|
|
|
62054
62194
|
// src/mcp-server/tools/testsBulkCreate.ts
|
|
62055
|
-
var
|
|
62195
|
+
var args41, tool$testsBulkCreate;
|
|
62056
62196
|
var init_testsBulkCreate2 = __esm(() => {
|
|
62057
62197
|
init_testsBulkCreate();
|
|
62058
62198
|
init_bulkuploadteststestsbulkpostop();
|
|
62059
62199
|
init_tools();
|
|
62060
|
-
|
|
62200
|
+
args41 = {
|
|
62061
62201
|
request: BulkUploadTestsTestsBulkPostRequest$zodSchema
|
|
62062
62202
|
};
|
|
62063
62203
|
tool$testsBulkCreate = {
|
|
@@ -62074,7 +62214,7 @@ tests including their UUIDs.
|
|
|
62074
62214
|
openWorldHint: true,
|
|
62075
62215
|
readOnlyHint: false
|
|
62076
62216
|
},
|
|
62077
|
-
args:
|
|
62217
|
+
args: args41,
|
|
62078
62218
|
tool: async (client, args, ctx) => {
|
|
62079
62219
|
const [result] = await testsBulkCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62080
62220
|
if (!result.ok) {
|
|
@@ -62136,9 +62276,9 @@ var init_createtestendpointtestspostop = __esm(() => {
|
|
|
62136
62276
|
|
|
62137
62277
|
// src/funcs/testsCreate.ts
|
|
62138
62278
|
function testsCreate(client$, request, options) {
|
|
62139
|
-
return new APIPromise($
|
|
62279
|
+
return new APIPromise($do42(client$, request, options));
|
|
62140
62280
|
}
|
|
62141
|
-
async function $
|
|
62281
|
+
async function $do42(client$, request, options) {
|
|
62142
62282
|
const parsed$ = safeParse4(request, (value$) => CreateTestEndpointTestsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62143
62283
|
if (!parsed$.ok) {
|
|
62144
62284
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62212,12 +62352,12 @@ var init_testsCreate = __esm(() => {
|
|
|
62212
62352
|
});
|
|
62213
62353
|
|
|
62214
62354
|
// src/mcp-server/tools/testsCreate.ts
|
|
62215
|
-
var
|
|
62355
|
+
var args42, tool$testsCreate;
|
|
62216
62356
|
var init_testsCreate2 = __esm(() => {
|
|
62217
62357
|
init_testsCreate();
|
|
62218
62358
|
init_createtestendpointtestspostop();
|
|
62219
62359
|
init_tools();
|
|
62220
|
-
|
|
62360
|
+
args42 = {
|
|
62221
62361
|
request: CreateTestEndpointTestsPostRequest$zodSchema
|
|
62222
62362
|
};
|
|
62223
62363
|
tool$testsCreate = {
|
|
@@ -62234,7 +62374,7 @@ Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
|
62234
62374
|
openWorldHint: true,
|
|
62235
62375
|
readOnlyHint: false
|
|
62236
62376
|
},
|
|
62237
|
-
args:
|
|
62377
|
+
args: args42,
|
|
62238
62378
|
tool: async (client, args, ctx) => {
|
|
62239
62379
|
const [result] = await testsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62240
62380
|
if (!result.ok) {
|
|
@@ -62287,9 +62427,9 @@ var init_gettestendpointteststestuuidgetop = __esm(() => {
|
|
|
62287
62427
|
|
|
62288
62428
|
// src/funcs/testsGet.ts
|
|
62289
62429
|
function testsGet(client$, request, options) {
|
|
62290
|
-
return new APIPromise($
|
|
62430
|
+
return new APIPromise($do43(client$, request, options));
|
|
62291
62431
|
}
|
|
62292
|
-
async function $
|
|
62432
|
+
async function $do43(client$, request, options) {
|
|
62293
62433
|
const parsed$ = safeParse4(request, (value$) => GetTestEndpointTestsTestUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62294
62434
|
if (!parsed$.ok) {
|
|
62295
62435
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62368,12 +62508,12 @@ var init_testsGet = __esm(() => {
|
|
|
62368
62508
|
});
|
|
62369
62509
|
|
|
62370
62510
|
// src/mcp-server/tools/testsGet.ts
|
|
62371
|
-
var
|
|
62511
|
+
var args43, tool$testsGet;
|
|
62372
62512
|
var init_testsGet2 = __esm(() => {
|
|
62373
62513
|
init_testsGet();
|
|
62374
62514
|
init_gettestendpointteststestuuidgetop();
|
|
62375
62515
|
init_tools();
|
|
62376
|
-
|
|
62516
|
+
args43 = {
|
|
62377
62517
|
request: GetTestEndpointTestsTestUuidGetRequest$zodSchema
|
|
62378
62518
|
};
|
|
62379
62519
|
tool$testsGet = {
|
|
@@ -62390,7 +62530,7 @@ exist or belongs to another org.
|
|
|
62390
62530
|
openWorldHint: true,
|
|
62391
62531
|
readOnlyHint: true
|
|
62392
62532
|
},
|
|
62393
|
-
args:
|
|
62533
|
+
args: args43,
|
|
62394
62534
|
tool: async (client, args, ctx) => {
|
|
62395
62535
|
const [result] = await testsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62396
62536
|
if (!result.ok) {
|
|
@@ -62424,9 +62564,9 @@ var init_listteststestsgetop = __esm(() => {
|
|
|
62424
62564
|
|
|
62425
62565
|
// src/funcs/testsList.ts
|
|
62426
62566
|
function testsList(client$, request, options) {
|
|
62427
|
-
return new APIPromise($
|
|
62567
|
+
return new APIPromise($do44(client$, request, options));
|
|
62428
62568
|
}
|
|
62429
|
-
async function $
|
|
62569
|
+
async function $do44(client$, request, options) {
|
|
62430
62570
|
const parsed$ = safeParse4(request, (value$) => ListTestsTestsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62431
62571
|
if (!parsed$.ok) {
|
|
62432
62572
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62505,12 +62645,12 @@ var init_testsList = __esm(() => {
|
|
|
62505
62645
|
});
|
|
62506
62646
|
|
|
62507
62647
|
// src/mcp-server/tools/testsList.ts
|
|
62508
|
-
var
|
|
62648
|
+
var args44, tool$testsList;
|
|
62509
62649
|
var init_testsList2 = __esm(() => {
|
|
62510
62650
|
init_testsList();
|
|
62511
62651
|
init_listteststestsgetop();
|
|
62512
62652
|
init_tools();
|
|
62513
|
-
|
|
62653
|
+
args44 = {
|
|
62514
62654
|
request: ListTestsTestsGetRequest$zodSchema.optional()
|
|
62515
62655
|
};
|
|
62516
62656
|
tool$testsList = {
|
|
@@ -62527,7 +62667,7 @@ before creating runs.
|
|
|
62527
62667
|
openWorldHint: true,
|
|
62528
62668
|
readOnlyHint: true
|
|
62529
62669
|
},
|
|
62530
|
-
args:
|
|
62670
|
+
args: args44,
|
|
62531
62671
|
tool: async (client, args, ctx) => {
|
|
62532
62672
|
const [result] = await testsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62533
62673
|
if (!result.ok) {
|
|
@@ -62580,9 +62720,9 @@ var init_updatetestendpointteststestuuidputop = __esm(() => {
|
|
|
62580
62720
|
|
|
62581
62721
|
// src/funcs/testsUpdate.ts
|
|
62582
62722
|
function testsUpdate(client$, request, options) {
|
|
62583
|
-
return new APIPromise($
|
|
62723
|
+
return new APIPromise($do45(client$, request, options));
|
|
62584
62724
|
}
|
|
62585
|
-
async function $
|
|
62725
|
+
async function $do45(client$, request, options) {
|
|
62586
62726
|
const parsed$ = safeParse4(request, (value$) => UpdateTestEndpointTestsTestUuidPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62587
62727
|
if (!parsed$.ok) {
|
|
62588
62728
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62662,12 +62802,12 @@ var init_testsUpdate = __esm(() => {
|
|
|
62662
62802
|
});
|
|
62663
62803
|
|
|
62664
62804
|
// src/mcp-server/tools/testsUpdate.ts
|
|
62665
|
-
var
|
|
62805
|
+
var args45, tool$testsUpdate;
|
|
62666
62806
|
var init_testsUpdate2 = __esm(() => {
|
|
62667
62807
|
init_testsUpdate();
|
|
62668
62808
|
init_updatetestendpointteststestuuidputop();
|
|
62669
62809
|
init_tools();
|
|
62670
|
-
|
|
62810
|
+
args45 = {
|
|
62671
62811
|
request: UpdateTestEndpointTestsTestUuidPutRequest$zodSchema
|
|
62672
62812
|
};
|
|
62673
62813
|
tool$testsUpdate = {
|
|
@@ -62684,7 +62824,7 @@ fields to change (name, config). Returns the updated test. Fails with
|
|
|
62684
62824
|
openWorldHint: true,
|
|
62685
62825
|
readOnlyHint: false
|
|
62686
62826
|
},
|
|
62687
|
-
args:
|
|
62827
|
+
args: args45,
|
|
62688
62828
|
tool: async (client, args, ctx) => {
|
|
62689
62829
|
const [result] = await testsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62690
62830
|
if (!result.ok) {
|
|
@@ -62808,9 +62948,9 @@ var init_ingesttracetracespostop = __esm(() => {
|
|
|
62808
62948
|
|
|
62809
62949
|
// src/funcs/tracesCreate.ts
|
|
62810
62950
|
function tracesCreate(client$, request, options) {
|
|
62811
|
-
return new APIPromise($
|
|
62951
|
+
return new APIPromise($do46(client$, request, options));
|
|
62812
62952
|
}
|
|
62813
|
-
async function $
|
|
62953
|
+
async function $do46(client$, request, options) {
|
|
62814
62954
|
const parsed$ = safeParse4(request, (value$) => IngestTraceTracesPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
62815
62955
|
if (!parsed$.ok) {
|
|
62816
62956
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62884,12 +63024,12 @@ var init_tracesCreate = __esm(() => {
|
|
|
62884
63024
|
});
|
|
62885
63025
|
|
|
62886
63026
|
// src/mcp-server/tools/tracesCreate.ts
|
|
62887
|
-
var
|
|
63027
|
+
var args46, tool$tracesCreate;
|
|
62888
63028
|
var init_tracesCreate2 = __esm(() => {
|
|
62889
63029
|
init_tracesCreate();
|
|
62890
63030
|
init_ingesttracetracespostop();
|
|
62891
63031
|
init_tools();
|
|
62892
|
-
|
|
63032
|
+
args46 = {
|
|
62893
63033
|
request: IngestTraceTracesPostRequest$zodSchema
|
|
62894
63034
|
};
|
|
62895
63035
|
tool$tracesCreate = {
|
|
@@ -62908,7 +63048,7 @@ hits its trace limit.
|
|
|
62908
63048
|
openWorldHint: true,
|
|
62909
63049
|
readOnlyHint: false
|
|
62910
63050
|
},
|
|
62911
|
-
args:
|
|
63051
|
+
args: args46,
|
|
62912
63052
|
tool: async (client, args, ctx) => {
|
|
62913
63053
|
const [result] = await tracesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62914
63054
|
if (!result.ok) {
|
|
@@ -63078,9 +63218,9 @@ var init_listtracesendpointtracesgetop = __esm(() => {
|
|
|
63078
63218
|
|
|
63079
63219
|
// src/funcs/tracesList.ts
|
|
63080
63220
|
function tracesList(client$, request, options) {
|
|
63081
|
-
return new APIPromise($
|
|
63221
|
+
return new APIPromise($do47(client$, request, options));
|
|
63082
63222
|
}
|
|
63083
|
-
async function $
|
|
63223
|
+
async function $do47(client$, request, options) {
|
|
63084
63224
|
const parsed$ = safeParse4(request, (value$) => ListTracesEndpointTracesGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63085
63225
|
if (!parsed$.ok) {
|
|
63086
63226
|
return [parsed$, { status: "invalid" }];
|
|
@@ -63170,12 +63310,12 @@ var init_tracesList = __esm(() => {
|
|
|
63170
63310
|
});
|
|
63171
63311
|
|
|
63172
63312
|
// src/mcp-server/tools/tracesList.ts
|
|
63173
|
-
var
|
|
63313
|
+
var args47, tool$tracesList;
|
|
63174
63314
|
var init_tracesList2 = __esm(() => {
|
|
63175
63315
|
init_tracesList();
|
|
63176
63316
|
init_listtracesendpointtracesgetop();
|
|
63177
63317
|
init_tools();
|
|
63178
|
-
|
|
63318
|
+
args47 = {
|
|
63179
63319
|
request: ListTracesEndpointTracesGetRequest$zodSchema.optional()
|
|
63180
63320
|
};
|
|
63181
63321
|
tool$tracesList = {
|
|
@@ -63196,149 +63336,9 @@ and metadata.
|
|
|
63196
63336
|
openWorldHint: true,
|
|
63197
63337
|
readOnlyHint: true
|
|
63198
63338
|
},
|
|
63199
|
-
args: args46,
|
|
63200
|
-
tool: async (client, args, ctx) => {
|
|
63201
|
-
const [result] = await tracesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63202
|
-
if (!result.ok) {
|
|
63203
|
-
return {
|
|
63204
|
-
content: [{ type: "text", text: result.error.message }],
|
|
63205
|
-
isError: true
|
|
63206
|
-
};
|
|
63207
|
-
}
|
|
63208
|
-
return formatResult(result.value);
|
|
63209
|
-
}
|
|
63210
|
-
};
|
|
63211
|
-
});
|
|
63212
|
-
|
|
63213
|
-
// src/models/currentworkspaceresponse.ts
|
|
63214
|
-
var CurrentWorkspaceResponse$zodSchema;
|
|
63215
|
-
var init_currentworkspaceresponse = __esm(() => {
|
|
63216
|
-
init_zod();
|
|
63217
|
-
CurrentWorkspaceResponse$zodSchema = object({
|
|
63218
|
-
name: string2().describe("Workspace display name"),
|
|
63219
|
-
uuid: string2().describe("Workspace ID. Put this at the front of a Calibrate web address to link straight to something in this workspace, as in `/<uuid>/tests`")
|
|
63220
|
-
});
|
|
63221
|
-
});
|
|
63222
|
-
|
|
63223
|
-
// src/models/getcurrentworkspaceorganizationscurrentgetop.ts
|
|
63224
|
-
var GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema, GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema;
|
|
63225
|
-
var init_getcurrentworkspaceorganizationscurrentgetop = __esm(() => {
|
|
63226
|
-
init_zod();
|
|
63227
|
-
init_currentworkspaceresponse();
|
|
63228
|
-
init_httpvalidationerror();
|
|
63229
|
-
GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema = object({
|
|
63230
|
-
xAPIKey: string2().nullable().optional()
|
|
63231
|
-
});
|
|
63232
|
-
GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema = union([
|
|
63233
|
-
CurrentWorkspaceResponse$zodSchema,
|
|
63234
|
-
HTTPValidationError$zodSchema
|
|
63235
|
-
]);
|
|
63236
|
-
});
|
|
63237
|
-
|
|
63238
|
-
// src/funcs/workspaceCurrent.ts
|
|
63239
|
-
function workspaceCurrent(client$, request, options) {
|
|
63240
|
-
return new APIPromise($do47(client$, request, options));
|
|
63241
|
-
}
|
|
63242
|
-
async function $do47(client$, request, options) {
|
|
63243
|
-
const parsed$ = safeParse4(request, (value$) => GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
63244
|
-
if (!parsed$.ok) {
|
|
63245
|
-
return [parsed$, { status: "invalid" }];
|
|
63246
|
-
}
|
|
63247
|
-
const payload$ = parsed$.value;
|
|
63248
|
-
const body$ = null;
|
|
63249
|
-
const path$ = pathToFunc("/organizations/current")();
|
|
63250
|
-
const headers$ = new Headers(compactMap({
|
|
63251
|
-
Accept: "application/json",
|
|
63252
|
-
"X-API-Key": encodeSimple("X-API-Key", payload$?.xAPIKey, {
|
|
63253
|
-
explode: false,
|
|
63254
|
-
charEncoding: "none"
|
|
63255
|
-
})
|
|
63256
|
-
}));
|
|
63257
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
63258
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63259
|
-
const context = {
|
|
63260
|
-
options: client$._options,
|
|
63261
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
63262
|
-
operationID: "get_current_workspace_organizations_current_get",
|
|
63263
|
-
oAuth2Scopes: null,
|
|
63264
|
-
resolvedSecurity: requestSecurity,
|
|
63265
|
-
securitySource: client$._options.security,
|
|
63266
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
63267
|
-
retryCodes: options?.retryCodes || [
|
|
63268
|
-
"429",
|
|
63269
|
-
"500",
|
|
63270
|
-
"502",
|
|
63271
|
-
"503",
|
|
63272
|
-
"504"
|
|
63273
|
-
]
|
|
63274
|
-
};
|
|
63275
|
-
const requestRes = client$._createRequest(context, {
|
|
63276
|
-
security: requestSecurity,
|
|
63277
|
-
method: "GET",
|
|
63278
|
-
baseURL: options?.serverURL,
|
|
63279
|
-
path: path$,
|
|
63280
|
-
headers: headers$,
|
|
63281
|
-
body: body$,
|
|
63282
|
-
userAgent: client$._options.userAgent,
|
|
63283
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
63284
|
-
}, options);
|
|
63285
|
-
if (!requestRes.ok) {
|
|
63286
|
-
return [requestRes, { status: "invalid" }];
|
|
63287
|
-
}
|
|
63288
|
-
const req$ = requestRes.value;
|
|
63289
|
-
const doResult = await client$._do(req$, {
|
|
63290
|
-
context,
|
|
63291
|
-
errorCodes: [],
|
|
63292
|
-
retryConfig: context.retryConfig,
|
|
63293
|
-
retryCodes: context.retryCodes
|
|
63294
|
-
});
|
|
63295
|
-
if (!doResult.ok) {
|
|
63296
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
63297
|
-
}
|
|
63298
|
-
return [doResult, {
|
|
63299
|
-
status: "complete",
|
|
63300
|
-
request: req$,
|
|
63301
|
-
response: doResult.value
|
|
63302
|
-
}];
|
|
63303
|
-
}
|
|
63304
|
-
var init_workspaceCurrent = __esm(() => {
|
|
63305
|
-
init_encodings();
|
|
63306
|
-
init_primitives();
|
|
63307
|
-
init_schemas4();
|
|
63308
|
-
init_security();
|
|
63309
|
-
init_url();
|
|
63310
|
-
init_getcurrentworkspaceorganizationscurrentgetop();
|
|
63311
|
-
init_async();
|
|
63312
|
-
});
|
|
63313
|
-
|
|
63314
|
-
// src/mcp-server/tools/workspaceCurrent.ts
|
|
63315
|
-
var args47, tool$workspaceCurrent;
|
|
63316
|
-
var init_workspaceCurrent2 = __esm(() => {
|
|
63317
|
-
init_workspaceCurrent();
|
|
63318
|
-
init_getcurrentworkspaceorganizationscurrentgetop();
|
|
63319
|
-
init_tools();
|
|
63320
|
-
args47 = {
|
|
63321
|
-
request: GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema.optional()
|
|
63322
|
-
};
|
|
63323
|
-
tool$workspaceCurrent = {
|
|
63324
|
-
name: "get-current-workspace",
|
|
63325
|
-
description: `Get the workspace the caller's API key belongs to, as its ID and
|
|
63326
|
-
name. Put the ID at the front of a Calibrate web address to link
|
|
63327
|
-
straight to something in that workspace, as in \`/<uuid>/tests\`.
|
|
63328
|
-
Without it, a link opens whichever workspace the reader looked at
|
|
63329
|
-
last. Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
63330
|
-
`,
|
|
63331
|
-
scopes: ["read"],
|
|
63332
|
-
annotations: {
|
|
63333
|
-
title: "Get the current workspace",
|
|
63334
|
-
destructiveHint: false,
|
|
63335
|
-
idempotentHint: true,
|
|
63336
|
-
openWorldHint: true,
|
|
63337
|
-
readOnlyHint: true
|
|
63338
|
-
},
|
|
63339
63339
|
args: args47,
|
|
63340
63340
|
tool: async (client, args, ctx) => {
|
|
63341
|
-
const [result] = await
|
|
63341
|
+
const [result] = await tracesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63342
63342
|
if (!result.ok) {
|
|
63343
63343
|
return {
|
|
63344
63344
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -63354,7 +63354,7 @@ last. Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
|
63354
63354
|
function createMCPServer(deps) {
|
|
63355
63355
|
const server = new McpServer({
|
|
63356
63356
|
name: "CalibrateMcp",
|
|
63357
|
-
version: "0.0.
|
|
63357
|
+
version: "0.0.89"
|
|
63358
63358
|
});
|
|
63359
63359
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
63360
63360
|
security: deps.security,
|
|
@@ -63417,7 +63417,7 @@ function createMCPServer(deps) {
|
|
|
63417
63417
|
tool(tool$annotatorsCreate);
|
|
63418
63418
|
tool(tool$annotatorsList);
|
|
63419
63419
|
tool(tool$annotatorsUpdate);
|
|
63420
|
-
tool(tool$
|
|
63420
|
+
tool(tool$organizationsCurrent);
|
|
63421
63421
|
tool(tool$tracesCreate);
|
|
63422
63422
|
tool(tool$tracesList);
|
|
63423
63423
|
if (deps.dynamic) {
|
|
@@ -63469,6 +63469,7 @@ var init_server2 = __esm(() => {
|
|
|
63469
63469
|
init_evaluatorsCreateVersion2();
|
|
63470
63470
|
init_evaluatorsGet2();
|
|
63471
63471
|
init_evaluatorsList2();
|
|
63472
|
+
init_organizationsCurrent2();
|
|
63472
63473
|
init_testsBulkCreate2();
|
|
63473
63474
|
init_testsCreate2();
|
|
63474
63475
|
init_testsGet2();
|
|
@@ -63476,7 +63477,6 @@ var init_server2 = __esm(() => {
|
|
|
63476
63477
|
init_testsUpdate2();
|
|
63477
63478
|
init_tracesCreate2();
|
|
63478
63479
|
init_tracesList2();
|
|
63479
|
-
init_workspaceCurrent2();
|
|
63480
63480
|
});
|
|
63481
63481
|
|
|
63482
63482
|
// src/tool-names.ts
|
|
@@ -64692,7 +64692,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
64692
64692
|
<h1>Instructions</h1>
|
|
64693
64693
|
<p>One-click installation for Claude Desktop users</p>
|
|
64694
64694
|
<div class="instruction-item">
|
|
64695
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
64695
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.89/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
64696
64696
|
\uD83D\uDCE5 Download MCP Bundle
|
|
64697
64697
|
</a>
|
|
64698
64698
|
</div>
|
|
@@ -67646,7 +67646,7 @@ var routes = buildRouteMap({
|
|
|
67646
67646
|
var app = buildApplication(routes, {
|
|
67647
67647
|
name: "mcp",
|
|
67648
67648
|
versionInfo: {
|
|
67649
|
-
currentVersion: "0.0.
|
|
67649
|
+
currentVersion: "0.0.89"
|
|
67650
67650
|
}
|
|
67651
67651
|
});
|
|
67652
67652
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -67654,5 +67654,5 @@ export {
|
|
|
67654
67654
|
app
|
|
67655
67655
|
};
|
|
67656
67656
|
|
|
67657
|
-
//# debugId=
|
|
67657
|
+
//# debugId=5A80FFDF0EAFC95564756E2164756E21
|
|
67658
67658
|
//# sourceMappingURL=mcp-server.js.map
|