@dalmia/calibrate-mcp 0.0.37 → 0.0.38
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 +332 -149
- package/bin/mcp-server.js.map +14 -8
- package/esm/funcs/annotationTasksCreateLabellingJobs.d.ts +16 -0
- package/esm/funcs/annotationTasksCreateLabellingJobs.d.ts.map +1 -0
- package/esm/funcs/annotationTasksCreateLabellingJobs.js +92 -0
- package/esm/funcs/annotationTasksCreateLabellingJobs.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.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/annotationTasksCreateLabellingJobs.d.ts +7 -0
- package/esm/mcp-server/tools/annotationTasksCreateLabellingJobs.d.ts.map +1 -0
- package/esm/mcp-server/tools/annotationTasksCreateLabellingJobs.js +34 -0
- package/esm/mcp-server/tools/annotationTasksCreateLabellingJobs.js.map +1 -0
- package/esm/models/createjobsannotationtaskstaskuuidjobspostop.d.ts +13 -0
- package/esm/models/createjobsannotationtaskstaskuuidjobspostop.d.ts.map +1 -0
- package/esm/models/createjobsannotationtaskstaskuuidjobspostop.js +17 -0
- package/esm/models/createjobsannotationtaskstaskuuidjobspostop.js.map +1 -0
- package/esm/models/createjobsrequest.d.ts +10 -0
- package/esm/models/createjobsrequest.d.ts.map +1 -0
- package/esm/models/createjobsrequest.js +13 -0
- package/esm/models/createjobsrequest.js.map +1 -0
- package/esm/models/createjobsresponse.d.ts +8 -0
- package/esm/models/createjobsresponse.d.ts.map +1 -0
- package/esm/models/createjobsresponse.js +11 -0
- package/esm/models/createjobsresponse.js.map +1 -0
- package/esm/models/labellingjobcreated.d.ts +13 -0
- package/esm/models/labellingjobcreated.d.ts.map +1 -0
- package/esm/models/labellingjobcreated.js +16 -0
- package/esm/models/labellingjobcreated.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +4 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/annotationTasksCreateLabellingJobs.ts +158 -0
- 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 -1
- package/src/mcp-server/tools/annotationTasksCreateLabellingJobs.ts +45 -0
- package/src/models/createjobsannotationtaskstaskuuidjobspostop.ts +40 -0
- package/src/models/createjobsrequest.ts +32 -0
- package/src/models/createjobsresponse.ts +22 -0
- package/src/models/labellingjobcreated.ts +40 -0
- package/src/tool-names.ts +4 -0
package/bin/mcp-server.js
CHANGED
|
@@ -51428,9 +51428,9 @@ var init_config = __esm(() => {
|
|
|
51428
51428
|
SDK_METADATA = {
|
|
51429
51429
|
language: "typescript",
|
|
51430
51430
|
openapiDocVersion: "0.1.0",
|
|
51431
|
-
sdkVersion: "0.0.
|
|
51431
|
+
sdkVersion: "0.0.38",
|
|
51432
51432
|
genVersion: "2.915.1",
|
|
51433
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
51433
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.38 2.915.1 0.1.0 @dalmia/calibrate-mcp"
|
|
51434
51434
|
};
|
|
51435
51435
|
});
|
|
51436
51436
|
|
|
@@ -56233,6 +56233,182 @@ var init_annotationTasksCreateEvaluatorRun2 = __esm(() => {
|
|
|
56233
56233
|
};
|
|
56234
56234
|
});
|
|
56235
56235
|
|
|
56236
|
+
// src/models/createjobsrequest.ts
|
|
56237
|
+
var CreateJobsRequest$zodSchema;
|
|
56238
|
+
var init_createjobsrequest = __esm(() => {
|
|
56239
|
+
init_zod();
|
|
56240
|
+
CreateJobsRequest$zodSchema = object({
|
|
56241
|
+
annotator_ids: array(string2()).describe("Annotator IDs to assign, creating one labelling job for each annotator. Must be in your workspace"),
|
|
56242
|
+
evaluator_ids: array(string2()).nullable().optional().describe("Subset of the task's linked evaluators to show in these jobs. Must be a subset of the current links, an empty list gives a 400. Applies to every annotator's job. Omit (`None`) to snapshot every linked evaluator"),
|
|
56243
|
+
item_ids: array(string2()).optional().describe("Item IDs to assign. **Required when `select_all=false`**. Ignored when `select_all=true`"),
|
|
56244
|
+
q: string2().nullable().optional().describe("Case-insensitive substring filter on `payload.name`. Applies only when `select_all=true`"),
|
|
56245
|
+
select_all: boolean2().default(false).describe("When `true`, assign every item in the task and ignore `item_ids`. Set `q` to assign only items whose name matches it")
|
|
56246
|
+
});
|
|
56247
|
+
});
|
|
56248
|
+
|
|
56249
|
+
// src/models/labellingjobcreated.ts
|
|
56250
|
+
var LabellingJobCreated$zodSchema;
|
|
56251
|
+
var init_labellingjobcreated = __esm(() => {
|
|
56252
|
+
init_zod();
|
|
56253
|
+
LabellingJobCreated$zodSchema = object({
|
|
56254
|
+
annotator_id: string2().describe("ID of the annotator the job is assigned to"),
|
|
56255
|
+
annotator_name: string2().describe("Name of the annotator the job is assigned to"),
|
|
56256
|
+
evaluator_ids: array(string2()).describe("IDs of the evaluators the annotator scores each item on, in the order they are shown"),
|
|
56257
|
+
item_count: int().describe("How many items the annotator has to label"),
|
|
56258
|
+
item_ids: array(string2()).describe("IDs of the items assigned to the annotator"),
|
|
56259
|
+
public_token: string2().describe("Token that opens the annotator's labelling page without signing in"),
|
|
56260
|
+
status: literal("pending").default("pending").optional().describe("Status of the job right after you create it"),
|
|
56261
|
+
uuid: string2().describe("ID of the labelling job")
|
|
56262
|
+
});
|
|
56263
|
+
});
|
|
56264
|
+
|
|
56265
|
+
// src/models/createjobsresponse.ts
|
|
56266
|
+
var CreateJobsResponse$zodSchema;
|
|
56267
|
+
var init_createjobsresponse = __esm(() => {
|
|
56268
|
+
init_zod();
|
|
56269
|
+
init_labellingjobcreated();
|
|
56270
|
+
CreateJobsResponse$zodSchema = object({
|
|
56271
|
+
count: int().describe("How many jobs were created"),
|
|
56272
|
+
jobs: array(LabellingJobCreated$zodSchema).describe("The jobs created, one for each annotator")
|
|
56273
|
+
});
|
|
56274
|
+
});
|
|
56275
|
+
|
|
56276
|
+
// src/models/createjobsannotationtaskstaskuuidjobspostop.ts
|
|
56277
|
+
var CreateJobsAnnotationTasksTaskUuidJobsPostRequest$zodSchema, CreateJobsAnnotationTasksTaskUuidJobsPostResponse$zodSchema;
|
|
56278
|
+
var init_createjobsannotationtaskstaskuuidjobspostop = __esm(() => {
|
|
56279
|
+
init_zod();
|
|
56280
|
+
init_createjobsrequest();
|
|
56281
|
+
init_createjobsresponse();
|
|
56282
|
+
init_httpvalidationerror();
|
|
56283
|
+
CreateJobsAnnotationTasksTaskUuidJobsPostRequest$zodSchema = object({
|
|
56284
|
+
body: CreateJobsRequest$zodSchema,
|
|
56285
|
+
task_uuid: string2().describe("Annotation task to act on"),
|
|
56286
|
+
xAPIKey: string2().nullable().optional()
|
|
56287
|
+
});
|
|
56288
|
+
CreateJobsAnnotationTasksTaskUuidJobsPostResponse$zodSchema = union([
|
|
56289
|
+
CreateJobsResponse$zodSchema,
|
|
56290
|
+
HTTPValidationError$zodSchema
|
|
56291
|
+
]);
|
|
56292
|
+
});
|
|
56293
|
+
|
|
56294
|
+
// src/funcs/annotationTasksCreateLabellingJobs.ts
|
|
56295
|
+
function annotationTasksCreateLabellingJobs(client$, request, options) {
|
|
56296
|
+
return new APIPromise($do20(client$, request, options));
|
|
56297
|
+
}
|
|
56298
|
+
async function $do20(client$, request, options) {
|
|
56299
|
+
const parsed$ = safeParse4(request, (value$) => CreateJobsAnnotationTasksTaskUuidJobsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56300
|
+
if (!parsed$.ok) {
|
|
56301
|
+
return [parsed$, { status: "invalid" }];
|
|
56302
|
+
}
|
|
56303
|
+
const payload$ = parsed$.value;
|
|
56304
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
56305
|
+
const pathParams$ = {
|
|
56306
|
+
task_uuid: encodeSimple("task_uuid", payload$.task_uuid, {
|
|
56307
|
+
explode: false,
|
|
56308
|
+
charEncoding: "percent"
|
|
56309
|
+
})
|
|
56310
|
+
};
|
|
56311
|
+
const path$ = pathToFunc("/annotation-tasks/{task_uuid}/jobs")(pathParams$);
|
|
56312
|
+
const headers$ = new Headers(compactMap({
|
|
56313
|
+
"Content-Type": "application/json",
|
|
56314
|
+
Accept: "application/json",
|
|
56315
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
|
|
56316
|
+
explode: false,
|
|
56317
|
+
charEncoding: "none"
|
|
56318
|
+
})
|
|
56319
|
+
}));
|
|
56320
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
56321
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56322
|
+
const context = {
|
|
56323
|
+
options: client$._options,
|
|
56324
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
56325
|
+
operationID: "create_jobs_annotation_tasks__task_uuid__jobs_post",
|
|
56326
|
+
oAuth2Scopes: null,
|
|
56327
|
+
resolvedSecurity: requestSecurity,
|
|
56328
|
+
securitySource: client$._options.security,
|
|
56329
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
56330
|
+
retryCodes: options?.retryCodes || [
|
|
56331
|
+
"429",
|
|
56332
|
+
"500",
|
|
56333
|
+
"502",
|
|
56334
|
+
"503",
|
|
56335
|
+
"504"
|
|
56336
|
+
]
|
|
56337
|
+
};
|
|
56338
|
+
const requestRes = client$._createRequest(context, {
|
|
56339
|
+
security: requestSecurity,
|
|
56340
|
+
method: "POST",
|
|
56341
|
+
baseURL: options?.serverURL,
|
|
56342
|
+
path: path$,
|
|
56343
|
+
headers: headers$,
|
|
56344
|
+
body: body$,
|
|
56345
|
+
userAgent: client$._options.userAgent,
|
|
56346
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
56347
|
+
}, options);
|
|
56348
|
+
if (!requestRes.ok) {
|
|
56349
|
+
return [requestRes, { status: "invalid" }];
|
|
56350
|
+
}
|
|
56351
|
+
const req$ = requestRes.value;
|
|
56352
|
+
const doResult = await client$._do(req$, {
|
|
56353
|
+
context,
|
|
56354
|
+
errorCodes: [],
|
|
56355
|
+
retryConfig: context.retryConfig,
|
|
56356
|
+
retryCodes: context.retryCodes
|
|
56357
|
+
});
|
|
56358
|
+
if (!doResult.ok) {
|
|
56359
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
56360
|
+
}
|
|
56361
|
+
return [doResult, {
|
|
56362
|
+
status: "complete",
|
|
56363
|
+
request: req$,
|
|
56364
|
+
response: doResult.value
|
|
56365
|
+
}];
|
|
56366
|
+
}
|
|
56367
|
+
var init_annotationTasksCreateLabellingJobs = __esm(() => {
|
|
56368
|
+
init_encodings();
|
|
56369
|
+
init_primitives();
|
|
56370
|
+
init_schemas4();
|
|
56371
|
+
init_security();
|
|
56372
|
+
init_url();
|
|
56373
|
+
init_createjobsannotationtaskstaskuuidjobspostop();
|
|
56374
|
+
init_async();
|
|
56375
|
+
});
|
|
56376
|
+
|
|
56377
|
+
// src/mcp-server/tools/annotationTasksCreateLabellingJobs.ts
|
|
56378
|
+
var args20, tool$annotationTasksCreateLabellingJobs;
|
|
56379
|
+
var init_annotationTasksCreateLabellingJobs2 = __esm(() => {
|
|
56380
|
+
init_annotationTasksCreateLabellingJobs();
|
|
56381
|
+
init_createjobsannotationtaskstaskuuidjobspostop();
|
|
56382
|
+
init_tools();
|
|
56383
|
+
args20 = {
|
|
56384
|
+
request: CreateJobsAnnotationTasksTaskUuidJobsPostRequest$zodSchema
|
|
56385
|
+
};
|
|
56386
|
+
tool$annotationTasksCreateLabellingJobs = {
|
|
56387
|
+
name: "create-labelling-jobs",
|
|
56388
|
+
description: `Assign items to annotators, creating one labelling job per annotator. Each job comes back with a public_token for the annotator's labelling link.
|
|
56389
|
+
`,
|
|
56390
|
+
scopes: ["write"],
|
|
56391
|
+
annotations: {
|
|
56392
|
+
title: "Create labelling jobs",
|
|
56393
|
+
destructiveHint: false,
|
|
56394
|
+
idempotentHint: false,
|
|
56395
|
+
openWorldHint: true,
|
|
56396
|
+
readOnlyHint: false
|
|
56397
|
+
},
|
|
56398
|
+
args: args20,
|
|
56399
|
+
tool: async (client, args21, ctx) => {
|
|
56400
|
+
const [result] = await annotationTasksCreateLabellingJobs(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56401
|
+
if (!result.ok) {
|
|
56402
|
+
return {
|
|
56403
|
+
content: [{ type: "text", text: result.error.message }],
|
|
56404
|
+
isError: true
|
|
56405
|
+
};
|
|
56406
|
+
}
|
|
56407
|
+
return formatResult(result.value);
|
|
56408
|
+
}
|
|
56409
|
+
};
|
|
56410
|
+
});
|
|
56411
|
+
|
|
56236
56412
|
// src/models/annotationtaskresponse.ts
|
|
56237
56413
|
var AnnotationTaskResponseType$zodSchema, AnnotationTaskResponse$zodSchema;
|
|
56238
56414
|
var init_annotationtaskresponse = __esm(() => {
|
|
@@ -56277,9 +56453,9 @@ var init_getannotationtaskendpointannotationtaskstaskuuidgetop = __esm(() => {
|
|
|
56277
56453
|
|
|
56278
56454
|
// src/funcs/annotationTasksGet.ts
|
|
56279
56455
|
function annotationTasksGet(client$, request, options) {
|
|
56280
|
-
return new APIPromise($
|
|
56456
|
+
return new APIPromise($do21(client$, request, options));
|
|
56281
56457
|
}
|
|
56282
|
-
async function $
|
|
56458
|
+
async function $do21(client$, request, options) {
|
|
56283
56459
|
const parsed$ = safeParse4(request, (value$) => GetAnnotationTaskEndpointAnnotationTasksTaskUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56284
56460
|
if (!parsed$.ok) {
|
|
56285
56461
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56358,12 +56534,12 @@ var init_annotationTasksGet = __esm(() => {
|
|
|
56358
56534
|
});
|
|
56359
56535
|
|
|
56360
56536
|
// src/mcp-server/tools/annotationTasksGet.ts
|
|
56361
|
-
var
|
|
56537
|
+
var args21, tool$annotationTasksGet;
|
|
56362
56538
|
var init_annotationTasksGet2 = __esm(() => {
|
|
56363
56539
|
init_annotationTasksGet();
|
|
56364
56540
|
init_getannotationtaskendpointannotationtaskstaskuuidgetop();
|
|
56365
56541
|
init_tools();
|
|
56366
|
-
|
|
56542
|
+
args21 = {
|
|
56367
56543
|
request: GetAnnotationTaskEndpointAnnotationTasksTaskUuidGetRequest$zodSchema
|
|
56368
56544
|
};
|
|
56369
56545
|
tool$annotationTasksGet = {
|
|
@@ -56378,9 +56554,9 @@ var init_annotationTasksGet2 = __esm(() => {
|
|
|
56378
56554
|
openWorldHint: true,
|
|
56379
56555
|
readOnlyHint: true
|
|
56380
56556
|
},
|
|
56381
|
-
args:
|
|
56382
|
-
tool: async (client,
|
|
56383
|
-
const [result] = await annotationTasksGet(client,
|
|
56557
|
+
args: args21,
|
|
56558
|
+
tool: async (client, args22, ctx) => {
|
|
56559
|
+
const [result] = await annotationTasksGet(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56384
56560
|
if (!result.ok) {
|
|
56385
56561
|
return {
|
|
56386
56562
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56470,9 +56646,9 @@ var init_taskagreementannotationtaskstaskuuidagreementgetop = __esm(() => {
|
|
|
56470
56646
|
|
|
56471
56647
|
// src/funcs/annotationTasksGetAgreement.ts
|
|
56472
56648
|
function annotationTasksGetAgreement(client$, request, options) {
|
|
56473
|
-
return new APIPromise($
|
|
56649
|
+
return new APIPromise($do22(client$, request, options));
|
|
56474
56650
|
}
|
|
56475
|
-
async function $
|
|
56651
|
+
async function $do22(client$, request, options) {
|
|
56476
56652
|
const parsed$ = safeParse4(request, (value$) => TaskAgreementAnnotationTasksTaskUuidAgreementGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56477
56653
|
if (!parsed$.ok) {
|
|
56478
56654
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56556,12 +56732,12 @@ var init_annotationTasksGetAgreement = __esm(() => {
|
|
|
56556
56732
|
});
|
|
56557
56733
|
|
|
56558
56734
|
// src/mcp-server/tools/annotationTasksGetAgreement.ts
|
|
56559
|
-
var
|
|
56735
|
+
var args22, tool$annotationTasksGetAgreement;
|
|
56560
56736
|
var init_annotationTasksGetAgreement2 = __esm(() => {
|
|
56561
56737
|
init_annotationTasksGetAgreement();
|
|
56562
56738
|
init_taskagreementannotationtaskstaskuuidagreementgetop();
|
|
56563
56739
|
init_tools();
|
|
56564
|
-
|
|
56740
|
+
args22 = {
|
|
56565
56741
|
request: TaskAgreementAnnotationTasksTaskUuidAgreementGetRequest$zodSchema
|
|
56566
56742
|
};
|
|
56567
56743
|
tool$annotationTasksGetAgreement = {
|
|
@@ -56576,9 +56752,9 @@ var init_annotationTasksGetAgreement2 = __esm(() => {
|
|
|
56576
56752
|
openWorldHint: true,
|
|
56577
56753
|
readOnlyHint: true
|
|
56578
56754
|
},
|
|
56579
|
-
args:
|
|
56580
|
-
tool: async (client,
|
|
56581
|
-
const [result] = await annotationTasksGetAgreement(client,
|
|
56755
|
+
args: args22,
|
|
56756
|
+
tool: async (client, args23, ctx) => {
|
|
56757
|
+
const [result] = await annotationTasksGetAgreement(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56582
56758
|
if (!result.ok) {
|
|
56583
56759
|
return {
|
|
56584
56760
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56655,9 +56831,9 @@ var init_getevaluatorrunjobannotationtaskstaskuuidevaluatorrunsjobuuidgetop = __
|
|
|
56655
56831
|
|
|
56656
56832
|
// src/funcs/annotationTasksGetEvaluatorRun.ts
|
|
56657
56833
|
function annotationTasksGetEvaluatorRun(client$, request, options) {
|
|
56658
|
-
return new APIPromise($
|
|
56834
|
+
return new APIPromise($do23(client$, request, options));
|
|
56659
56835
|
}
|
|
56660
|
-
async function $
|
|
56836
|
+
async function $do23(client$, request, options) {
|
|
56661
56837
|
const parsed$ = safeParse4(request, (value$) => GetEvaluatorRunJobAnnotationTasksTaskUuidEvaluatorRunsJobUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56662
56838
|
if (!parsed$.ok) {
|
|
56663
56839
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56740,12 +56916,12 @@ var init_annotationTasksGetEvaluatorRun = __esm(() => {
|
|
|
56740
56916
|
});
|
|
56741
56917
|
|
|
56742
56918
|
// src/mcp-server/tools/annotationTasksGetEvaluatorRun.ts
|
|
56743
|
-
var
|
|
56919
|
+
var args23, tool$annotationTasksGetEvaluatorRun;
|
|
56744
56920
|
var init_annotationTasksGetEvaluatorRun2 = __esm(() => {
|
|
56745
56921
|
init_annotationTasksGetEvaluatorRun();
|
|
56746
56922
|
init_getevaluatorrunjobannotationtaskstaskuuidevaluatorrunsjobuuidgetop();
|
|
56747
56923
|
init_tools();
|
|
56748
|
-
|
|
56924
|
+
args23 = {
|
|
56749
56925
|
request: GetEvaluatorRunJobAnnotationTasksTaskUuidEvaluatorRunsJobUuidGetRequest$zodSchema
|
|
56750
56926
|
};
|
|
56751
56927
|
tool$annotationTasksGetEvaluatorRun = {
|
|
@@ -56760,9 +56936,9 @@ var init_annotationTasksGetEvaluatorRun2 = __esm(() => {
|
|
|
56760
56936
|
openWorldHint: true,
|
|
56761
56937
|
readOnlyHint: true
|
|
56762
56938
|
},
|
|
56763
|
-
args:
|
|
56764
|
-
tool: async (client,
|
|
56765
|
-
const [result] = await annotationTasksGetEvaluatorRun(client,
|
|
56939
|
+
args: args23,
|
|
56940
|
+
tool: async (client, args24, ctx) => {
|
|
56941
|
+
const [result] = await annotationTasksGetEvaluatorRun(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56766
56942
|
if (!result.ok) {
|
|
56767
56943
|
return {
|
|
56768
56944
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56856,9 +57032,9 @@ var init_tasksummaryannotationtaskstaskuuidsummarygetop = __esm(() => {
|
|
|
56856
57032
|
|
|
56857
57033
|
// src/funcs/annotationTasksGetSummary.ts
|
|
56858
57034
|
function annotationTasksGetSummary(client$, request, options) {
|
|
56859
|
-
return new APIPromise($
|
|
57035
|
+
return new APIPromise($do24(client$, request, options));
|
|
56860
57036
|
}
|
|
56861
|
-
async function $
|
|
57037
|
+
async function $do24(client$, request, options) {
|
|
56862
57038
|
const parsed$ = safeParse4(request, (value$) => TaskSummaryAnnotationTasksTaskUuidSummaryGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56863
57039
|
if (!parsed$.ok) {
|
|
56864
57040
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56949,12 +57125,12 @@ var init_annotationTasksGetSummary = __esm(() => {
|
|
|
56949
57125
|
});
|
|
56950
57126
|
|
|
56951
57127
|
// src/mcp-server/tools/annotationTasksGetSummary.ts
|
|
56952
|
-
var
|
|
57128
|
+
var args24, tool$annotationTasksGetSummary;
|
|
56953
57129
|
var init_annotationTasksGetSummary2 = __esm(() => {
|
|
56954
57130
|
init_annotationTasksGetSummary();
|
|
56955
57131
|
init_tasksummaryannotationtaskstaskuuidsummarygetop();
|
|
56956
57132
|
init_tools();
|
|
56957
|
-
|
|
57133
|
+
args24 = {
|
|
56958
57134
|
request: TaskSummaryAnnotationTasksTaskUuidSummaryGetRequest$zodSchema
|
|
56959
57135
|
};
|
|
56960
57136
|
tool$annotationTasksGetSummary = {
|
|
@@ -56969,9 +57145,9 @@ var init_annotationTasksGetSummary2 = __esm(() => {
|
|
|
56969
57145
|
openWorldHint: true,
|
|
56970
57146
|
readOnlyHint: true
|
|
56971
57147
|
},
|
|
56972
|
-
args:
|
|
56973
|
-
tool: async (client,
|
|
56974
|
-
const [result] = await annotationTasksGetSummary(client,
|
|
57148
|
+
args: args24,
|
|
57149
|
+
tool: async (client, args25, ctx) => {
|
|
57150
|
+
const [result] = await annotationTasksGetSummary(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56975
57151
|
if (!result.ok) {
|
|
56976
57152
|
return {
|
|
56977
57153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57016,9 +57192,9 @@ var init_listannotationtasksannotationtasksgetop = __esm(() => {
|
|
|
57016
57192
|
|
|
57017
57193
|
// src/funcs/annotationTasksList.ts
|
|
57018
57194
|
function annotationTasksList(client$, request, options) {
|
|
57019
|
-
return new APIPromise($
|
|
57195
|
+
return new APIPromise($do25(client$, request, options));
|
|
57020
57196
|
}
|
|
57021
|
-
async function $
|
|
57197
|
+
async function $do25(client$, request, options) {
|
|
57022
57198
|
const parsed$ = safeParse4(request, (value$) => ListAnnotationTasksAnnotationTasksGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57023
57199
|
if (!parsed$.ok) {
|
|
57024
57200
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57097,12 +57273,12 @@ var init_annotationTasksList = __esm(() => {
|
|
|
57097
57273
|
});
|
|
57098
57274
|
|
|
57099
57275
|
// src/mcp-server/tools/annotationTasksList.ts
|
|
57100
|
-
var
|
|
57276
|
+
var args25, tool$annotationTasksList;
|
|
57101
57277
|
var init_annotationTasksList2 = __esm(() => {
|
|
57102
57278
|
init_annotationTasksList();
|
|
57103
57279
|
init_listannotationtasksannotationtasksgetop();
|
|
57104
57280
|
init_tools();
|
|
57105
|
-
|
|
57281
|
+
args25 = {
|
|
57106
57282
|
request: ListAnnotationTasksAnnotationTasksGetRequest$zodSchema.optional()
|
|
57107
57283
|
};
|
|
57108
57284
|
tool$annotationTasksList = {
|
|
@@ -57117,9 +57293,9 @@ var init_annotationTasksList2 = __esm(() => {
|
|
|
57117
57293
|
openWorldHint: true,
|
|
57118
57294
|
readOnlyHint: true
|
|
57119
57295
|
},
|
|
57120
|
-
args:
|
|
57121
|
-
tool: async (client,
|
|
57122
|
-
const [result] = await annotationTasksList(client,
|
|
57296
|
+
args: args25,
|
|
57297
|
+
tool: async (client, args26, ctx) => {
|
|
57298
|
+
const [result] = await annotationTasksList(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57123
57299
|
if (!result.ok) {
|
|
57124
57300
|
return {
|
|
57125
57301
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57173,9 +57349,9 @@ var init_settaskevaluatorsannotationtaskstaskuuidevaluatorsputop = __esm(() => {
|
|
|
57173
57349
|
|
|
57174
57350
|
// src/funcs/annotationTasksSetEvaluators.ts
|
|
57175
57351
|
function annotationTasksSetEvaluators(client$, request, options) {
|
|
57176
|
-
return new APIPromise($
|
|
57352
|
+
return new APIPromise($do26(client$, request, options));
|
|
57177
57353
|
}
|
|
57178
|
-
async function $
|
|
57354
|
+
async function $do26(client$, request, options) {
|
|
57179
57355
|
const parsed$ = safeParse4(request, (value$) => SetTaskEvaluatorsAnnotationTasksTaskUuidEvaluatorsPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57180
57356
|
if (!parsed$.ok) {
|
|
57181
57357
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57255,12 +57431,12 @@ var init_annotationTasksSetEvaluators = __esm(() => {
|
|
|
57255
57431
|
});
|
|
57256
57432
|
|
|
57257
57433
|
// src/mcp-server/tools/annotationTasksSetEvaluators.ts
|
|
57258
|
-
var
|
|
57434
|
+
var args26, tool$annotationTasksSetEvaluators;
|
|
57259
57435
|
var init_annotationTasksSetEvaluators2 = __esm(() => {
|
|
57260
57436
|
init_annotationTasksSetEvaluators();
|
|
57261
57437
|
init_settaskevaluatorsannotationtaskstaskuuidevaluatorsputop();
|
|
57262
57438
|
init_tools();
|
|
57263
|
-
|
|
57439
|
+
args26 = {
|
|
57264
57440
|
request: SetTaskEvaluatorsAnnotationTasksTaskUuidEvaluatorsPutRequest$zodSchema
|
|
57265
57441
|
};
|
|
57266
57442
|
tool$annotationTasksSetEvaluators = {
|
|
@@ -57279,9 +57455,9 @@ must be in your workspace.
|
|
|
57279
57455
|
openWorldHint: true,
|
|
57280
57456
|
readOnlyHint: false
|
|
57281
57457
|
},
|
|
57282
|
-
args:
|
|
57283
|
-
tool: async (client,
|
|
57284
|
-
const [result] = await annotationTasksSetEvaluators(client,
|
|
57458
|
+
args: args26,
|
|
57459
|
+
tool: async (client, args27, ctx) => {
|
|
57460
|
+
const [result] = await annotationTasksSetEvaluators(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57285
57461
|
if (!result.ok) {
|
|
57286
57462
|
return {
|
|
57287
57463
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57342,9 +57518,9 @@ var init_bulkupdateitemsannotationtaskstaskuuiditemsputop = __esm(() => {
|
|
|
57342
57518
|
|
|
57343
57519
|
// src/funcs/annotationTasksUpdateItems.ts
|
|
57344
57520
|
function annotationTasksUpdateItems(client$, request, options) {
|
|
57345
|
-
return new APIPromise($
|
|
57521
|
+
return new APIPromise($do27(client$, request, options));
|
|
57346
57522
|
}
|
|
57347
|
-
async function $
|
|
57523
|
+
async function $do27(client$, request, options) {
|
|
57348
57524
|
const parsed$ = safeParse4(request, (value$) => BulkUpdateItemsAnnotationTasksTaskUuidItemsPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57349
57525
|
if (!parsed$.ok) {
|
|
57350
57526
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57424,12 +57600,12 @@ var init_annotationTasksUpdateItems = __esm(() => {
|
|
|
57424
57600
|
});
|
|
57425
57601
|
|
|
57426
57602
|
// src/mcp-server/tools/annotationTasksUpdateItems.ts
|
|
57427
|
-
var
|
|
57603
|
+
var args27, tool$annotationTasksUpdateItems;
|
|
57428
57604
|
var init_annotationTasksUpdateItems2 = __esm(() => {
|
|
57429
57605
|
init_annotationTasksUpdateItems();
|
|
57430
57606
|
init_bulkupdateitemsannotationtaskstaskuuiditemsputop();
|
|
57431
57607
|
init_tools();
|
|
57432
|
-
|
|
57608
|
+
args27 = {
|
|
57433
57609
|
request: BulkUpdateItemsAnnotationTasksTaskUuidItemsPutRequest$zodSchema
|
|
57434
57610
|
};
|
|
57435
57611
|
tool$annotationTasksUpdateItems = {
|
|
@@ -57444,9 +57620,9 @@ var init_annotationTasksUpdateItems2 = __esm(() => {
|
|
|
57444
57620
|
openWorldHint: true,
|
|
57445
57621
|
readOnlyHint: false
|
|
57446
57622
|
},
|
|
57447
|
-
args:
|
|
57448
|
-
tool: async (client,
|
|
57449
|
-
const [result] = await annotationTasksUpdateItems(client,
|
|
57623
|
+
args: args27,
|
|
57624
|
+
tool: async (client, args28, ctx) => {
|
|
57625
|
+
const [result] = await annotationTasksUpdateItems(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57450
57626
|
if (!result.ok) {
|
|
57451
57627
|
return {
|
|
57452
57628
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57496,9 +57672,9 @@ var init_createannotatorendpointannotatorspostop = __esm(() => {
|
|
|
57496
57672
|
|
|
57497
57673
|
// src/funcs/annotatorsCreate.ts
|
|
57498
57674
|
function annotatorsCreate(client$, request, options) {
|
|
57499
|
-
return new APIPromise($
|
|
57675
|
+
return new APIPromise($do28(client$, request, options));
|
|
57500
57676
|
}
|
|
57501
|
-
async function $
|
|
57677
|
+
async function $do28(client$, request, options) {
|
|
57502
57678
|
const parsed$ = safeParse4(request, (value$) => CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57503
57679
|
if (!parsed$.ok) {
|
|
57504
57680
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57572,12 +57748,12 @@ var init_annotatorsCreate = __esm(() => {
|
|
|
57572
57748
|
});
|
|
57573
57749
|
|
|
57574
57750
|
// src/mcp-server/tools/annotatorsCreate.ts
|
|
57575
|
-
var
|
|
57751
|
+
var args28, tool$annotatorsCreate;
|
|
57576
57752
|
var init_annotatorsCreate2 = __esm(() => {
|
|
57577
57753
|
init_annotatorsCreate();
|
|
57578
57754
|
init_createannotatorendpointannotatorspostop();
|
|
57579
57755
|
init_tools();
|
|
57580
|
-
|
|
57756
|
+
args28 = {
|
|
57581
57757
|
request: CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema
|
|
57582
57758
|
};
|
|
57583
57759
|
tool$annotatorsCreate = {
|
|
@@ -57592,9 +57768,9 @@ var init_annotatorsCreate2 = __esm(() => {
|
|
|
57592
57768
|
openWorldHint: true,
|
|
57593
57769
|
readOnlyHint: false
|
|
57594
57770
|
},
|
|
57595
|
-
args:
|
|
57596
|
-
tool: async (client,
|
|
57597
|
-
const [result] = await annotatorsCreate(client,
|
|
57771
|
+
args: args28,
|
|
57772
|
+
tool: async (client, args29, ctx) => {
|
|
57773
|
+
const [result] = await annotatorsCreate(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57598
57774
|
if (!result.ok) {
|
|
57599
57775
|
return {
|
|
57600
57776
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57638,9 +57814,9 @@ var init_listannotatorsannotatorsgetop = __esm(() => {
|
|
|
57638
57814
|
|
|
57639
57815
|
// src/funcs/annotatorsList.ts
|
|
57640
57816
|
function annotatorsList(client$, request, options) {
|
|
57641
|
-
return new APIPromise($
|
|
57817
|
+
return new APIPromise($do29(client$, request, options));
|
|
57642
57818
|
}
|
|
57643
|
-
async function $
|
|
57819
|
+
async function $do29(client$, request, options) {
|
|
57644
57820
|
const parsed$ = safeParse4(request, (value$) => ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57645
57821
|
if (!parsed$.ok) {
|
|
57646
57822
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57713,12 +57889,12 @@ var init_annotatorsList = __esm(() => {
|
|
|
57713
57889
|
});
|
|
57714
57890
|
|
|
57715
57891
|
// src/mcp-server/tools/annotatorsList.ts
|
|
57716
|
-
var
|
|
57892
|
+
var args29, tool$annotatorsList;
|
|
57717
57893
|
var init_annotatorsList2 = __esm(() => {
|
|
57718
57894
|
init_annotatorsList();
|
|
57719
57895
|
init_listannotatorsannotatorsgetop();
|
|
57720
57896
|
init_tools();
|
|
57721
|
-
|
|
57897
|
+
args29 = {
|
|
57722
57898
|
request: ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional()
|
|
57723
57899
|
};
|
|
57724
57900
|
tool$annotatorsList = {
|
|
@@ -57733,9 +57909,9 @@ var init_annotatorsList2 = __esm(() => {
|
|
|
57733
57909
|
openWorldHint: true,
|
|
57734
57910
|
readOnlyHint: true
|
|
57735
57911
|
},
|
|
57736
|
-
args:
|
|
57737
|
-
tool: async (client,
|
|
57738
|
-
const [result] = await annotatorsList(client,
|
|
57912
|
+
args: args29,
|
|
57913
|
+
tool: async (client, args30, ctx) => {
|
|
57914
|
+
const [result] = await annotatorsList(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57739
57915
|
if (!result.ok) {
|
|
57740
57916
|
return {
|
|
57741
57917
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57776,9 +57952,9 @@ var init_updateannotatorendpointannotatorsannotatoruuidputop = __esm(() => {
|
|
|
57776
57952
|
|
|
57777
57953
|
// src/funcs/annotatorsUpdate.ts
|
|
57778
57954
|
function annotatorsUpdate(client$, request, options) {
|
|
57779
|
-
return new APIPromise($
|
|
57955
|
+
return new APIPromise($do30(client$, request, options));
|
|
57780
57956
|
}
|
|
57781
|
-
async function $
|
|
57957
|
+
async function $do30(client$, request, options) {
|
|
57782
57958
|
const parsed$ = safeParse4(request, (value$) => UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57783
57959
|
if (!parsed$.ok) {
|
|
57784
57960
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57858,12 +58034,12 @@ var init_annotatorsUpdate = __esm(() => {
|
|
|
57858
58034
|
});
|
|
57859
58035
|
|
|
57860
58036
|
// src/mcp-server/tools/annotatorsUpdate.ts
|
|
57861
|
-
var
|
|
58037
|
+
var args30, tool$annotatorsUpdate;
|
|
57862
58038
|
var init_annotatorsUpdate2 = __esm(() => {
|
|
57863
58039
|
init_annotatorsUpdate();
|
|
57864
58040
|
init_updateannotatorendpointannotatorsannotatoruuidputop();
|
|
57865
58041
|
init_tools();
|
|
57866
|
-
|
|
58042
|
+
args30 = {
|
|
57867
58043
|
request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema
|
|
57868
58044
|
};
|
|
57869
58045
|
tool$annotatorsUpdate = {
|
|
@@ -57878,9 +58054,9 @@ var init_annotatorsUpdate2 = __esm(() => {
|
|
|
57878
58054
|
openWorldHint: true,
|
|
57879
58055
|
readOnlyHint: false
|
|
57880
58056
|
},
|
|
57881
|
-
args:
|
|
57882
|
-
tool: async (client,
|
|
57883
|
-
const [result] = await annotatorsUpdate(client,
|
|
58057
|
+
args: args30,
|
|
58058
|
+
tool: async (client, args31, ctx) => {
|
|
58059
|
+
const [result] = await annotatorsUpdate(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57884
58060
|
if (!result.ok) {
|
|
57885
58061
|
return {
|
|
57886
58062
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57987,9 +58163,9 @@ var init_createevaluatorendpointevaluatorspostop = __esm(() => {
|
|
|
57987
58163
|
|
|
57988
58164
|
// src/funcs/evaluatorsCreate.ts
|
|
57989
58165
|
function evaluatorsCreate(client$, request, options) {
|
|
57990
|
-
return new APIPromise($
|
|
58166
|
+
return new APIPromise($do31(client$, request, options));
|
|
57991
58167
|
}
|
|
57992
|
-
async function $
|
|
58168
|
+
async function $do31(client$, request, options) {
|
|
57993
58169
|
const parsed$ = safeParse4(request, (value$) => CreateEvaluatorEndpointEvaluatorsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57994
58170
|
if (!parsed$.ok) {
|
|
57995
58171
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58063,12 +58239,12 @@ var init_evaluatorsCreate = __esm(() => {
|
|
|
58063
58239
|
});
|
|
58064
58240
|
|
|
58065
58241
|
// src/mcp-server/tools/evaluatorsCreate.ts
|
|
58066
|
-
var
|
|
58242
|
+
var args31, tool$evaluatorsCreate;
|
|
58067
58243
|
var init_evaluatorsCreate2 = __esm(() => {
|
|
58068
58244
|
init_evaluatorsCreate();
|
|
58069
58245
|
init_createevaluatorendpointevaluatorspostop();
|
|
58070
58246
|
init_tools();
|
|
58071
|
-
|
|
58247
|
+
args31 = {
|
|
58072
58248
|
request: CreateEvaluatorEndpointEvaluatorsPostRequest$zodSchema
|
|
58073
58249
|
};
|
|
58074
58250
|
tool$evaluatorsCreate = {
|
|
@@ -58083,9 +58259,9 @@ var init_evaluatorsCreate2 = __esm(() => {
|
|
|
58083
58259
|
openWorldHint: true,
|
|
58084
58260
|
readOnlyHint: false
|
|
58085
58261
|
},
|
|
58086
|
-
args:
|
|
58087
|
-
tool: async (client,
|
|
58088
|
-
const [result] = await evaluatorsCreate(client,
|
|
58262
|
+
args: args31,
|
|
58263
|
+
tool: async (client, args32, ctx) => {
|
|
58264
|
+
const [result] = await evaluatorsCreate(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58089
58265
|
if (!result.ok) {
|
|
58090
58266
|
return {
|
|
58091
58267
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58142,9 +58318,9 @@ var init_createversionevaluatorsevaluatoruuidversionspostop = __esm(() => {
|
|
|
58142
58318
|
|
|
58143
58319
|
// src/funcs/evaluatorsCreateVersion.ts
|
|
58144
58320
|
function evaluatorsCreateVersion(client$, request, options) {
|
|
58145
|
-
return new APIPromise($
|
|
58321
|
+
return new APIPromise($do32(client$, request, options));
|
|
58146
58322
|
}
|
|
58147
|
-
async function $
|
|
58323
|
+
async function $do32(client$, request, options) {
|
|
58148
58324
|
const parsed$ = safeParse4(request, (value$) => CreateVersionEvaluatorsEvaluatorUuidVersionsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58149
58325
|
if (!parsed$.ok) {
|
|
58150
58326
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58224,12 +58400,12 @@ var init_evaluatorsCreateVersion = __esm(() => {
|
|
|
58224
58400
|
});
|
|
58225
58401
|
|
|
58226
58402
|
// src/mcp-server/tools/evaluatorsCreateVersion.ts
|
|
58227
|
-
var
|
|
58403
|
+
var args32, tool$evaluatorsCreateVersion;
|
|
58228
58404
|
var init_evaluatorsCreateVersion2 = __esm(() => {
|
|
58229
58405
|
init_evaluatorsCreateVersion();
|
|
58230
58406
|
init_createversionevaluatorsevaluatoruuidversionspostop();
|
|
58231
58407
|
init_tools();
|
|
58232
|
-
|
|
58408
|
+
args32 = {
|
|
58233
58409
|
request: CreateVersionEvaluatorsEvaluatorUuidVersionsPostRequest$zodSchema
|
|
58234
58410
|
};
|
|
58235
58411
|
tool$evaluatorsCreateVersion = {
|
|
@@ -58244,9 +58420,9 @@ var init_evaluatorsCreateVersion2 = __esm(() => {
|
|
|
58244
58420
|
openWorldHint: true,
|
|
58245
58421
|
readOnlyHint: false
|
|
58246
58422
|
},
|
|
58247
|
-
args:
|
|
58248
|
-
tool: async (client,
|
|
58249
|
-
const [result] = await evaluatorsCreateVersion(client,
|
|
58423
|
+
args: args32,
|
|
58424
|
+
tool: async (client, args33, ctx) => {
|
|
58425
|
+
const [result] = await evaluatorsCreateVersion(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58250
58426
|
if (!result.ok) {
|
|
58251
58427
|
return {
|
|
58252
58428
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58331,9 +58507,9 @@ var init_getevaluatorendpointevaluatorsevaluatoruuidgetop = __esm(() => {
|
|
|
58331
58507
|
|
|
58332
58508
|
// src/funcs/evaluatorsGet.ts
|
|
58333
58509
|
function evaluatorsGet(client$, request, options) {
|
|
58334
|
-
return new APIPromise($
|
|
58510
|
+
return new APIPromise($do33(client$, request, options));
|
|
58335
58511
|
}
|
|
58336
|
-
async function $
|
|
58512
|
+
async function $do33(client$, request, options) {
|
|
58337
58513
|
const parsed$ = safeParse4(request, (value$) => GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58338
58514
|
if (!parsed$.ok) {
|
|
58339
58515
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58416,12 +58592,12 @@ var init_evaluatorsGet = __esm(() => {
|
|
|
58416
58592
|
});
|
|
58417
58593
|
|
|
58418
58594
|
// src/mcp-server/tools/evaluatorsGet.ts
|
|
58419
|
-
var
|
|
58595
|
+
var args33, tool$evaluatorsGet;
|
|
58420
58596
|
var init_evaluatorsGet2 = __esm(() => {
|
|
58421
58597
|
init_evaluatorsGet();
|
|
58422
58598
|
init_getevaluatorendpointevaluatorsevaluatoruuidgetop();
|
|
58423
58599
|
init_tools();
|
|
58424
|
-
|
|
58600
|
+
args33 = {
|
|
58425
58601
|
request: GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetRequest$zodSchema
|
|
58426
58602
|
};
|
|
58427
58603
|
tool$evaluatorsGet = {
|
|
@@ -58436,9 +58612,9 @@ var init_evaluatorsGet2 = __esm(() => {
|
|
|
58436
58612
|
openWorldHint: true,
|
|
58437
58613
|
readOnlyHint: true
|
|
58438
58614
|
},
|
|
58439
|
-
args:
|
|
58440
|
-
tool: async (client,
|
|
58441
|
-
const [result] = await evaluatorsGet(client,
|
|
58615
|
+
args: args33,
|
|
58616
|
+
tool: async (client, args34, ctx) => {
|
|
58617
|
+
const [result] = await evaluatorsGet(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58442
58618
|
if (!result.ok) {
|
|
58443
58619
|
return {
|
|
58444
58620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58484,9 +58660,9 @@ var init_listevaluatorsevaluatorsgetop = __esm(() => {
|
|
|
58484
58660
|
|
|
58485
58661
|
// src/funcs/evaluatorsList.ts
|
|
58486
58662
|
function evaluatorsList(client$, request, options) {
|
|
58487
|
-
return new APIPromise($
|
|
58663
|
+
return new APIPromise($do34(client$, request, options));
|
|
58488
58664
|
}
|
|
58489
|
-
async function $
|
|
58665
|
+
async function $do34(client$, request, options) {
|
|
58490
58666
|
const parsed$ = safeParse4(request, (value$) => ListEvaluatorsEvaluatorsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58491
58667
|
if (!parsed$.ok) {
|
|
58492
58668
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58568,12 +58744,12 @@ var init_evaluatorsList = __esm(() => {
|
|
|
58568
58744
|
});
|
|
58569
58745
|
|
|
58570
58746
|
// src/mcp-server/tools/evaluatorsList.ts
|
|
58571
|
-
var
|
|
58747
|
+
var args34, tool$evaluatorsList;
|
|
58572
58748
|
var init_evaluatorsList2 = __esm(() => {
|
|
58573
58749
|
init_evaluatorsList();
|
|
58574
58750
|
init_listevaluatorsevaluatorsgetop();
|
|
58575
58751
|
init_tools();
|
|
58576
|
-
|
|
58752
|
+
args34 = {
|
|
58577
58753
|
request: ListEvaluatorsEvaluatorsGetRequest$zodSchema.optional()
|
|
58578
58754
|
};
|
|
58579
58755
|
tool$evaluatorsList = {
|
|
@@ -58588,9 +58764,9 @@ var init_evaluatorsList2 = __esm(() => {
|
|
|
58588
58764
|
openWorldHint: true,
|
|
58589
58765
|
readOnlyHint: true
|
|
58590
58766
|
},
|
|
58591
|
-
args:
|
|
58592
|
-
tool: async (client,
|
|
58593
|
-
const [result] = await evaluatorsList(client,
|
|
58767
|
+
args: args34,
|
|
58768
|
+
tool: async (client, args35, ctx) => {
|
|
58769
|
+
const [result] = await evaluatorsList(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58594
58770
|
if (!result.ok) {
|
|
58595
58771
|
return {
|
|
58596
58772
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58720,9 +58896,9 @@ var init_bulkuploadteststestsbulkpostop = __esm(() => {
|
|
|
58720
58896
|
|
|
58721
58897
|
// src/funcs/testsBulkCreate.ts
|
|
58722
58898
|
function testsBulkCreate(client$, request, options) {
|
|
58723
|
-
return new APIPromise($
|
|
58899
|
+
return new APIPromise($do35(client$, request, options));
|
|
58724
58900
|
}
|
|
58725
|
-
async function $
|
|
58901
|
+
async function $do35(client$, request, options) {
|
|
58726
58902
|
const parsed$ = safeParse4(request, (value$) => BulkUploadTestsTestsBulkPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58727
58903
|
if (!parsed$.ok) {
|
|
58728
58904
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58796,12 +58972,12 @@ var init_testsBulkCreate = __esm(() => {
|
|
|
58796
58972
|
});
|
|
58797
58973
|
|
|
58798
58974
|
// src/mcp-server/tools/testsBulkCreate.ts
|
|
58799
|
-
var
|
|
58975
|
+
var args35, tool$testsBulkCreate;
|
|
58800
58976
|
var init_testsBulkCreate2 = __esm(() => {
|
|
58801
58977
|
init_testsBulkCreate();
|
|
58802
58978
|
init_bulkuploadteststestsbulkpostop();
|
|
58803
58979
|
init_tools();
|
|
58804
|
-
|
|
58980
|
+
args35 = {
|
|
58805
58981
|
request: BulkUploadTestsTestsBulkPostRequest$zodSchema
|
|
58806
58982
|
};
|
|
58807
58983
|
tool$testsBulkCreate = {
|
|
@@ -58818,9 +58994,9 @@ tests including their UUIDs.
|
|
|
58818
58994
|
openWorldHint: true,
|
|
58819
58995
|
readOnlyHint: false
|
|
58820
58996
|
},
|
|
58821
|
-
args:
|
|
58822
|
-
tool: async (client,
|
|
58823
|
-
const [result] = await testsBulkCreate(client,
|
|
58997
|
+
args: args35,
|
|
58998
|
+
tool: async (client, args36, ctx) => {
|
|
58999
|
+
const [result] = await testsBulkCreate(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58824
59000
|
if (!result.ok) {
|
|
58825
59001
|
return {
|
|
58826
59002
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58879,9 +59055,9 @@ var init_createtestendpointtestspostop = __esm(() => {
|
|
|
58879
59055
|
|
|
58880
59056
|
// src/funcs/testsCreate.ts
|
|
58881
59057
|
function testsCreate(client$, request, options) {
|
|
58882
|
-
return new APIPromise($
|
|
59058
|
+
return new APIPromise($do36(client$, request, options));
|
|
58883
59059
|
}
|
|
58884
|
-
async function $
|
|
59060
|
+
async function $do36(client$, request, options) {
|
|
58885
59061
|
const parsed$ = safeParse4(request, (value$) => CreateTestEndpointTestsPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58886
59062
|
if (!parsed$.ok) {
|
|
58887
59063
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58955,12 +59131,12 @@ var init_testsCreate = __esm(() => {
|
|
|
58955
59131
|
});
|
|
58956
59132
|
|
|
58957
59133
|
// src/mcp-server/tools/testsCreate.ts
|
|
58958
|
-
var
|
|
59134
|
+
var args36, tool$testsCreate;
|
|
58959
59135
|
var init_testsCreate2 = __esm(() => {
|
|
58960
59136
|
init_testsCreate();
|
|
58961
59137
|
init_createtestendpointtestspostop();
|
|
58962
59138
|
init_tools();
|
|
58963
|
-
|
|
59139
|
+
args36 = {
|
|
58964
59140
|
request: CreateTestEndpointTestsPostRequest$zodSchema
|
|
58965
59141
|
};
|
|
58966
59142
|
tool$testsCreate = {
|
|
@@ -58977,9 +59153,9 @@ Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
|
58977
59153
|
openWorldHint: true,
|
|
58978
59154
|
readOnlyHint: false
|
|
58979
59155
|
},
|
|
58980
|
-
args:
|
|
58981
|
-
tool: async (client,
|
|
58982
|
-
const [result] = await testsCreate(client,
|
|
59156
|
+
args: args36,
|
|
59157
|
+
tool: async (client, args37, ctx) => {
|
|
59158
|
+
const [result] = await testsCreate(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58983
59159
|
if (!result.ok) {
|
|
58984
59160
|
return {
|
|
58985
59161
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59029,9 +59205,9 @@ var init_gettestendpointteststestuuidgetop = __esm(() => {
|
|
|
59029
59205
|
|
|
59030
59206
|
// src/funcs/testsGet.ts
|
|
59031
59207
|
function testsGet(client$, request, options) {
|
|
59032
|
-
return new APIPromise($
|
|
59208
|
+
return new APIPromise($do37(client$, request, options));
|
|
59033
59209
|
}
|
|
59034
|
-
async function $
|
|
59210
|
+
async function $do37(client$, request, options) {
|
|
59035
59211
|
const parsed$ = safeParse4(request, (value$) => GetTestEndpointTestsTestUuidGetRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59036
59212
|
if (!parsed$.ok) {
|
|
59037
59213
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59110,12 +59286,12 @@ var init_testsGet = __esm(() => {
|
|
|
59110
59286
|
});
|
|
59111
59287
|
|
|
59112
59288
|
// src/mcp-server/tools/testsGet.ts
|
|
59113
|
-
var
|
|
59289
|
+
var args37, tool$testsGet;
|
|
59114
59290
|
var init_testsGet2 = __esm(() => {
|
|
59115
59291
|
init_testsGet();
|
|
59116
59292
|
init_gettestendpointteststestuuidgetop();
|
|
59117
59293
|
init_tools();
|
|
59118
|
-
|
|
59294
|
+
args37 = {
|
|
59119
59295
|
request: GetTestEndpointTestsTestUuidGetRequest$zodSchema
|
|
59120
59296
|
};
|
|
59121
59297
|
tool$testsGet = {
|
|
@@ -59132,9 +59308,9 @@ exist or belongs to another org.
|
|
|
59132
59308
|
openWorldHint: true,
|
|
59133
59309
|
readOnlyHint: true
|
|
59134
59310
|
},
|
|
59135
|
-
args:
|
|
59136
|
-
tool: async (client,
|
|
59137
|
-
const [result] = await testsGet(client,
|
|
59311
|
+
args: args37,
|
|
59312
|
+
tool: async (client, args38, ctx) => {
|
|
59313
|
+
const [result] = await testsGet(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59138
59314
|
if (!result.ok) {
|
|
59139
59315
|
return {
|
|
59140
59316
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59166,9 +59342,9 @@ var init_listteststestsgetop = __esm(() => {
|
|
|
59166
59342
|
|
|
59167
59343
|
// src/funcs/testsList.ts
|
|
59168
59344
|
function testsList(client$, request, options) {
|
|
59169
|
-
return new APIPromise($
|
|
59345
|
+
return new APIPromise($do38(client$, request, options));
|
|
59170
59346
|
}
|
|
59171
|
-
async function $
|
|
59347
|
+
async function $do38(client$, request, options) {
|
|
59172
59348
|
const parsed$ = safeParse4(request, (value$) => ListTestsTestsGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
59173
59349
|
if (!parsed$.ok) {
|
|
59174
59350
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59247,12 +59423,12 @@ var init_testsList = __esm(() => {
|
|
|
59247
59423
|
});
|
|
59248
59424
|
|
|
59249
59425
|
// src/mcp-server/tools/testsList.ts
|
|
59250
|
-
var
|
|
59426
|
+
var args38, tool$testsList;
|
|
59251
59427
|
var init_testsList2 = __esm(() => {
|
|
59252
59428
|
init_testsList();
|
|
59253
59429
|
init_listteststestsgetop();
|
|
59254
59430
|
init_tools();
|
|
59255
|
-
|
|
59431
|
+
args38 = {
|
|
59256
59432
|
request: ListTestsTestsGetRequest$zodSchema.optional()
|
|
59257
59433
|
};
|
|
59258
59434
|
tool$testsList = {
|
|
@@ -59269,9 +59445,9 @@ before creating runs.
|
|
|
59269
59445
|
openWorldHint: true,
|
|
59270
59446
|
readOnlyHint: true
|
|
59271
59447
|
},
|
|
59272
|
-
args:
|
|
59273
|
-
tool: async (client,
|
|
59274
|
-
const [result] = await testsList(client,
|
|
59448
|
+
args: args38,
|
|
59449
|
+
tool: async (client, args39, ctx) => {
|
|
59450
|
+
const [result] = await testsList(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59275
59451
|
if (!result.ok) {
|
|
59276
59452
|
return {
|
|
59277
59453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59328,9 +59504,9 @@ var init_updatetestendpointteststestuuidputop = __esm(() => {
|
|
|
59328
59504
|
|
|
59329
59505
|
// src/funcs/testsUpdate.ts
|
|
59330
59506
|
function testsUpdate(client$, request, options) {
|
|
59331
|
-
return new APIPromise($
|
|
59507
|
+
return new APIPromise($do39(client$, request, options));
|
|
59332
59508
|
}
|
|
59333
|
-
async function $
|
|
59509
|
+
async function $do39(client$, request, options) {
|
|
59334
59510
|
const parsed$ = safeParse4(request, (value$) => UpdateTestEndpointTestsTestUuidPutRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59335
59511
|
if (!parsed$.ok) {
|
|
59336
59512
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59410,12 +59586,12 @@ var init_testsUpdate = __esm(() => {
|
|
|
59410
59586
|
});
|
|
59411
59587
|
|
|
59412
59588
|
// src/mcp-server/tools/testsUpdate.ts
|
|
59413
|
-
var
|
|
59589
|
+
var args39, tool$testsUpdate;
|
|
59414
59590
|
var init_testsUpdate2 = __esm(() => {
|
|
59415
59591
|
init_testsUpdate();
|
|
59416
59592
|
init_updatetestendpointteststestuuidputop();
|
|
59417
59593
|
init_tools();
|
|
59418
|
-
|
|
59594
|
+
args39 = {
|
|
59419
59595
|
request: UpdateTestEndpointTestsTestUuidPutRequest$zodSchema
|
|
59420
59596
|
};
|
|
59421
59597
|
tool$testsUpdate = {
|
|
@@ -59432,9 +59608,9 @@ fields to change (name, config). Returns the updated test. Fails with
|
|
|
59432
59608
|
openWorldHint: true,
|
|
59433
59609
|
readOnlyHint: false
|
|
59434
59610
|
},
|
|
59435
|
-
args:
|
|
59436
|
-
tool: async (client,
|
|
59437
|
-
const [result] = await testsUpdate(client,
|
|
59611
|
+
args: args39,
|
|
59612
|
+
tool: async (client, args40, ctx) => {
|
|
59613
|
+
const [result] = await testsUpdate(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59438
59614
|
if (!result.ok) {
|
|
59439
59615
|
return {
|
|
59440
59616
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59547,9 +59723,9 @@ var init_ingesttracetracespostop = __esm(() => {
|
|
|
59547
59723
|
|
|
59548
59724
|
// src/funcs/tracesCreate.ts
|
|
59549
59725
|
function tracesCreate(client$, request, options) {
|
|
59550
|
-
return new APIPromise($
|
|
59726
|
+
return new APIPromise($do40(client$, request, options));
|
|
59551
59727
|
}
|
|
59552
|
-
async function $
|
|
59728
|
+
async function $do40(client$, request, options) {
|
|
59553
59729
|
const parsed$ = safeParse4(request, (value$) => IngestTraceTracesPostRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59554
59730
|
if (!parsed$.ok) {
|
|
59555
59731
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59623,12 +59799,12 @@ var init_tracesCreate = __esm(() => {
|
|
|
59623
59799
|
});
|
|
59624
59800
|
|
|
59625
59801
|
// src/mcp-server/tools/tracesCreate.ts
|
|
59626
|
-
var
|
|
59802
|
+
var args40, tool$tracesCreate;
|
|
59627
59803
|
var init_tracesCreate2 = __esm(() => {
|
|
59628
59804
|
init_tracesCreate();
|
|
59629
59805
|
init_ingesttracetracespostop();
|
|
59630
59806
|
init_tools();
|
|
59631
|
-
|
|
59807
|
+
args40 = {
|
|
59632
59808
|
request: IngestTraceTracesPostRequest$zodSchema
|
|
59633
59809
|
};
|
|
59634
59810
|
tool$tracesCreate = {
|
|
@@ -59647,9 +59823,9 @@ hits its trace limit.
|
|
|
59647
59823
|
openWorldHint: true,
|
|
59648
59824
|
readOnlyHint: false
|
|
59649
59825
|
},
|
|
59650
|
-
args:
|
|
59651
|
-
tool: async (client,
|
|
59652
|
-
const [result] = await tracesCreate(client,
|
|
59826
|
+
args: args40,
|
|
59827
|
+
tool: async (client, args41, ctx) => {
|
|
59828
|
+
const [result] = await tracesCreate(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59653
59829
|
if (!result.ok) {
|
|
59654
59830
|
return {
|
|
59655
59831
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -59665,16 +59841,16 @@ hits its trace limit.
|
|
|
59665
59841
|
function createMCPServer(deps) {
|
|
59666
59842
|
const server = new McpServer({
|
|
59667
59843
|
name: "CalibrateMcp",
|
|
59668
|
-
version: "0.0.
|
|
59844
|
+
version: "0.0.38"
|
|
59669
59845
|
});
|
|
59670
59846
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
59671
59847
|
security: deps.security,
|
|
59672
59848
|
serverURL: deps.serverURL,
|
|
59673
59849
|
serverIdx: deps.serverIdx,
|
|
59674
59850
|
debugLogger: deps.logger.level === "debug" ? {
|
|
59675
|
-
log: (...
|
|
59676
|
-
group: (...
|
|
59677
|
-
groupEnd: (...
|
|
59851
|
+
log: (...args41) => console.log(...args41),
|
|
59852
|
+
group: (...args41) => console.group(...args41),
|
|
59853
|
+
groupEnd: (...args41) => console.groupEnd(...args41)
|
|
59678
59854
|
} : undefined
|
|
59679
59855
|
}));
|
|
59680
59856
|
const scopes = new Set(deps.scopes);
|
|
@@ -59715,6 +59891,7 @@ function createMCPServer(deps) {
|
|
|
59715
59891
|
tool(tool$annotationTasksSetEvaluators);
|
|
59716
59892
|
tool(tool$annotationTasksAddItems);
|
|
59717
59893
|
tool(tool$annotationTasksUpdateItems);
|
|
59894
|
+
tool(tool$annotationTasksCreateLabellingJobs);
|
|
59718
59895
|
tool(tool$annotationTasksCreateEvaluatorRun);
|
|
59719
59896
|
tool(tool$annotationTasksGetEvaluatorRun);
|
|
59720
59897
|
tool(tool$annotationTasksGetAgreement);
|
|
@@ -59752,6 +59929,7 @@ var init_server2 = __esm(() => {
|
|
|
59752
59929
|
init_annotationTasksAddItems2();
|
|
59753
59930
|
init_annotationTasksCreate2();
|
|
59754
59931
|
init_annotationTasksCreateEvaluatorRun2();
|
|
59932
|
+
init_annotationTasksCreateLabellingJobs2();
|
|
59755
59933
|
init_annotationTasksGet2();
|
|
59756
59934
|
init_annotationTasksGetAgreement2();
|
|
59757
59935
|
init_annotationTasksGetEvaluatorRun2();
|
|
@@ -59972,6 +60150,11 @@ must be in your workspace.
|
|
|
59972
60150
|
{
|
|
59973
60151
|
name: "update-annotation-items",
|
|
59974
60152
|
description: `Bulk-update item payloads in an annotation task.
|
|
60153
|
+
`
|
|
60154
|
+
},
|
|
60155
|
+
{
|
|
60156
|
+
name: "create-labelling-jobs",
|
|
60157
|
+
description: `Assign items to annotators, creating one labelling job per annotator. Each job comes back with a public_token for the annotator's labelling link.
|
|
59975
60158
|
`
|
|
59976
60159
|
},
|
|
59977
60160
|
{
|
|
@@ -60924,7 +61107,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
60924
61107
|
<h1>Instructions</h1>
|
|
60925
61108
|
<p>One-click installation for Claude Desktop users</p>
|
|
60926
61109
|
<div class="instruction-item">
|
|
60927
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
61110
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.38/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
60928
61111
|
\uD83D\uDCE5 Download MCP Bundle
|
|
60929
61112
|
</a>
|
|
60930
61113
|
</div>
|
|
@@ -63811,7 +63994,7 @@ var routes = buildRouteMap({
|
|
|
63811
63994
|
var app = buildApplication(routes, {
|
|
63812
63995
|
name: "mcp",
|
|
63813
63996
|
versionInfo: {
|
|
63814
|
-
currentVersion: "0.0.
|
|
63997
|
+
currentVersion: "0.0.38"
|
|
63815
63998
|
}
|
|
63816
63999
|
});
|
|
63817
64000
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -63819,5 +64002,5 @@ export {
|
|
|
63819
64002
|
app
|
|
63820
64003
|
};
|
|
63821
64004
|
|
|
63822
|
-
//# debugId=
|
|
64005
|
+
//# debugId=28E0ADC055A4C93564756E2164756E21
|
|
63823
64006
|
//# sourceMappingURL=mcp-server.js.map
|