@dalmia/calibrate-mcp 0.0.23 → 0.0.25

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.
Files changed (63) hide show
  1. package/bin/mcp-server.js +50 -27
  2. package/bin/mcp-server.js.map +18 -18
  3. package/esm/funcs/agentTestsGetBenchmark.js +6 -1
  4. package/esm/funcs/agentTestsGetBenchmark.js.map +1 -1
  5. package/esm/funcs/agentTestsGetRun.js +6 -1
  6. package/esm/funcs/agentTestsGetRun.js.map +1 -1
  7. package/esm/funcs/annotationTasksGetSummary.js +2 -0
  8. package/esm/funcs/annotationTasksGetSummary.js.map +1 -1
  9. package/esm/funcs/evaluatorsGet.js +5 -1
  10. package/esm/funcs/evaluatorsGet.js.map +1 -1
  11. package/esm/landing-page.js +1 -1
  12. package/esm/lib/config.d.ts +2 -2
  13. package/esm/lib/config.js +2 -2
  14. package/esm/mcp-server/mcp-server.js +1 -1
  15. package/esm/mcp-server/server.js +1 -1
  16. package/esm/models/{evaluatordetailresponse.d.ts → evaluatordetailresponsecompact.d.ts} +17 -17
  17. package/esm/models/evaluatordetailresponsecompact.d.ts.map +1 -0
  18. package/esm/models/{evaluatordetailresponse.js → evaluatordetailresponsecompact.js} +14 -13
  19. package/esm/models/evaluatordetailresponsecompact.js.map +1 -0
  20. package/esm/models/{evaluatorversionresponse.d.ts → evaluatorversioncompact.d.ts} +4 -4
  21. package/esm/models/evaluatorversioncompact.d.ts.map +1 -0
  22. package/esm/models/{evaluatorversionresponse.js → evaluatorversioncompact.js} +3 -3
  23. package/esm/models/evaluatorversioncompact.js.map +1 -0
  24. package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.d.ts +2 -0
  25. package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.d.ts.map +1 -1
  26. package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.js +2 -0
  27. package/esm/models/getagenttestrunstatusagenttestsruntaskidgetop.js.map +1 -1
  28. package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.d.ts +2 -0
  29. package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.d.ts.map +1 -1
  30. package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.js +2 -0
  31. package/esm/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.js.map +1 -1
  32. package/esm/models/getevaluatorendpointevaluatorsevaluatoruuidgetop.d.ts +3 -2
  33. package/esm/models/getevaluatorendpointevaluatorsevaluatoruuidgetop.d.ts.map +1 -1
  34. package/esm/models/getevaluatorendpointevaluatorsevaluatoruuidgetop.js +3 -2
  35. package/esm/models/getevaluatorendpointevaluatorsevaluatoruuidgetop.js.map +1 -1
  36. package/esm/models/tasksummaryannotationtaskstaskuuidsummarygetop.d.ts +2 -0
  37. package/esm/models/tasksummaryannotationtaskstaskuuidsummarygetop.d.ts.map +1 -1
  38. package/esm/models/tasksummaryannotationtaskstaskuuidsummarygetop.js +2 -0
  39. package/esm/models/tasksummaryannotationtaskstaskuuidsummarygetop.js.map +1 -1
  40. package/esm/models/tasksummaryresponse.d.ts +2 -2
  41. package/esm/models/tasksummaryresponse.d.ts.map +1 -1
  42. package/esm/models/tasksummaryresponse.js +3 -2
  43. package/esm/models/tasksummaryresponse.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/funcs/agentTestsGetBenchmark.ts +6 -1
  46. package/src/funcs/agentTestsGetRun.ts +6 -1
  47. package/src/funcs/annotationTasksGetSummary.ts +2 -0
  48. package/src/funcs/evaluatorsGet.ts +5 -1
  49. package/src/landing-page.ts +1 -1
  50. package/src/lib/config.ts +2 -2
  51. package/src/mcp-server/mcp-server.ts +1 -1
  52. package/src/mcp-server/server.ts +1 -1
  53. package/src/models/{evaluatordetailresponse.ts → evaluatordetailresponsecompact.ts} +29 -28
  54. package/src/models/{evaluatorversionresponse.ts → evaluatorversioncompact.ts} +5 -5
  55. package/src/models/getagenttestrunstatusagenttestsruntaskidgetop.ts +8 -0
  56. package/src/models/getbenchmarkstatusagenttestsbenchmarktaskidgetop.ts +8 -0
  57. package/src/models/getevaluatorendpointevaluatorsevaluatoruuidgetop.ts +9 -5
  58. package/src/models/tasksummaryannotationtaskstaskuuidsummarygetop.ts +8 -0
  59. package/src/models/tasksummaryresponse.ts +4 -5
  60. package/esm/models/evaluatordetailresponse.d.ts.map +0 -1
  61. package/esm/models/evaluatordetailresponse.js.map +0 -1
  62. package/esm/models/evaluatorversionresponse.d.ts.map +0 -1
  63. package/esm/models/evaluatorversionresponse.js.map +0 -1
package/bin/mcp-server.js CHANGED
@@ -51392,9 +51392,9 @@ var init_config = __esm(() => {
51392
51392
  SDK_METADATA = {
51393
51393
  language: "typescript",
51394
51394
  openapiDocVersion: "0.1.0",
51395
- sdkVersion: "0.0.23",
51395
+ sdkVersion: "0.0.25",
51396
51396
  genVersion: "2.915.1",
51397
- userAgent: "speakeasy-sdk/mcp-typescript 0.0.23 2.915.1 0.1.0 @dalmia/calibrate-mcp"
51397
+ userAgent: "speakeasy-sdk/mcp-typescript 0.0.25 2.915.1 0.1.0 @dalmia/calibrate-mcp"
51398
51398
  };
51399
51399
  });
51400
51400
 
@@ -54124,6 +54124,8 @@ var init_getbenchmarkstatusagenttestsbenchmarktaskidgetop = __esm(() => {
54124
54124
  init_benchmarkstatusresponse();
54125
54125
  init_httpvalidationerror();
54126
54126
  GetBenchmarkStatusAgentTestsBenchmarkTaskIdGetRequest$zodSchema = object({
54127
+ compact: boolean2().default(false).describe("Return a compact response that omits heavy detail fields (`model_results.test_results`, `evaluators.output_config`), keeping only the lightweight decision fields. Omit for full detail"),
54128
+ only_failed: boolean2().default(false).describe("Return only failing test cases for each model. Omit to return every case"),
54127
54129
  task_id: string2().describe("Benchmark run to poll for status and results"),
54128
54130
  xAPIKey: string2().nullable().optional()
54129
54131
  });
@@ -54151,6 +54153,10 @@ async function $do8(client$, request, options) {
54151
54153
  })
54152
54154
  };
54153
54155
  const path$ = pathToFunc("/agent-tests/benchmark/{task_id}")(pathParams$);
54156
+ const query$ = encodeFormQuery({
54157
+ compact: payload$.compact,
54158
+ only_failed: payload$.only_failed
54159
+ });
54154
54160
  const headers$ = new Headers(compactMap({
54155
54161
  Accept: "application/json",
54156
54162
  "X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
@@ -54182,6 +54188,7 @@ async function $do8(client$, request, options) {
54182
54188
  baseURL: options?.serverURL,
54183
54189
  path: path$,
54184
54190
  headers: headers$,
54191
+ query: query$,
54185
54192
  body: body$,
54186
54193
  userAgent: client$._options.userAgent,
54187
54194
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
@@ -54281,6 +54288,8 @@ var init_getagenttestrunstatusagenttestsruntaskidgetop = __esm(() => {
54281
54288
  init_httpvalidationerror();
54282
54289
  init_testrunstatusresponse();
54283
54290
  GetAgentTestRunStatusAgentTestsRunTaskIdGetRequest$zodSchema = object({
54291
+ compact: boolean2().default(false).describe("Return a compact response that omits heavy detail fields (`results.output`, `results.test_case`, `results.judge_results`, `results.reasoning`, `evaluators.output_config`), keeping only the lightweight decision fields. Omit for full detail"),
54292
+ only_failed: boolean2().default(false).describe("Return only failing test cases. Omit to return every case"),
54284
54293
  task_id: string2().describe("Test run to poll for status and results"),
54285
54294
  xAPIKey: string2().nullable().optional()
54286
54295
  });
@@ -54308,6 +54317,10 @@ async function $do9(client$, request, options) {
54308
54317
  })
54309
54318
  };
54310
54319
  const path$ = pathToFunc("/agent-tests/run/{task_id}")(pathParams$);
54320
+ const query$ = encodeFormQuery({
54321
+ compact: payload$.compact,
54322
+ only_failed: payload$.only_failed
54323
+ });
54311
54324
  const headers$ = new Headers(compactMap({
54312
54325
  Accept: "application/json",
54313
54326
  "X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
@@ -54339,6 +54352,7 @@ async function $do9(client$, request, options) {
54339
54352
  baseURL: options?.serverURL,
54340
54353
  path: path$,
54341
54354
  headers: headers$,
54355
+ query: query$,
54342
54356
  body: body$,
54343
54357
  userAgent: client$._options.userAgent,
54344
54358
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
@@ -56367,7 +56381,7 @@ var init_tasksummaryresponse = __esm(() => {
56367
56381
  TaskSummaryResponse$zodSchema = collectExtraKeys(object({
56368
56382
  annotators: array(record(string2(), any())).describe("The annotators who labelled or commented on items in the task, stable across pages"),
56369
56383
  evaluators: array(record(string2(), any())).describe("The task's evaluators, stable across pages, each with its live rubric"),
56370
- item_comments: record(string2(), any()).describe("Annotator comments, keyed by item ID"),
56384
+ item_comments: record(string2(), any()).nullable().optional().describe("Annotator comments, keyed by item ID"),
56371
56385
  pagination: PaginationMeta$zodSchema,
56372
56386
  rows: array(record(string2(), any())).describe("One row per item, evaluator, and version on this page, with the evaluator's value and each annotator's label"),
56373
56387
  task_id: string2().describe("ID of the task"),
@@ -56377,7 +56391,7 @@ var init_tasksummaryresponse = __esm(() => {
56377
56391
  AdditionalProperties: record(string2(), any()).optional(),
56378
56392
  annotators: array(record(string2(), any())),
56379
56393
  evaluators: array(record(string2(), any())),
56380
- item_comments: record(string2(), any()),
56394
+ item_comments: nullable(record(string2(), any())).optional(),
56381
56395
  pagination: PaginationMeta$zodSchema,
56382
56396
  rows: array(record(string2(), any())),
56383
56397
  task_id: string2(),
@@ -56402,6 +56416,8 @@ var init_tasksummaryannotationtaskstaskuuidsummarygetop = __esm(() => {
56402
56416
  "desc"
56403
56417
  ]).describe("Sort direction");
56404
56418
  TaskSummaryAnnotationTasksTaskUuidSummaryGetRequest$zodSchema = object({
56419
+ compact: boolean2().default(false).describe("Return a compact response that omits heavy detail fields (`rows.payload`, `rows.evaluator_reasoning`, `rows.annotations.reasoning`, `evaluators.versions.system_prompt`, `evaluators.versions.output_config`, `evaluators.versions.variables`, `item_comments`), keeping only the lightweight decision fields. Omit for full detail"),
56420
+ disagreement_only: boolean2().default(false).describe("When true, keep only rows where the evaluator disagreed with at least one annotator"),
56405
56421
  item_id: string2().describe("Filter rows to a single item. The full task-wide annotator union is still returned in `annotators`").nullable().optional(),
56406
56422
  limit: int().default(50).describe("Maximum number of items to return"),
56407
56423
  live_only: boolean2().default(false).describe("When true, emit only one row for each (item, evaluator) pair using the evaluator's live version. Versions other than the live one that have runs are excluded"),
@@ -56437,6 +56453,8 @@ async function $do21(client$, request, options) {
56437
56453
  };
56438
56454
  const path$ = pathToFunc("/annotation-tasks/{task_uuid}/summary")(pathParams$);
56439
56455
  const query$ = encodeFormQuery({
56456
+ compact: payload$.compact,
56457
+ disagreement_only: payload$.disagreement_only,
56440
56458
  item_id: payload$.item_id,
56441
56459
  limit: payload$.limit,
56442
56460
  live_only: payload$.live_only,
@@ -57389,56 +57407,56 @@ var init_evaluatorsCreateVersion2 = __esm(() => {
57389
57407
  };
57390
57408
  });
57391
57409
 
57392
- // src/models/evaluatorversionresponse.ts
57393
- var EvaluatorVersionResponse$zodSchema;
57394
- var init_evaluatorversionresponse = __esm(() => {
57410
+ // src/models/evaluatorversioncompact.ts
57411
+ var EvaluatorVersionCompact$zodSchema;
57412
+ var init_evaluatorversioncompact = __esm(() => {
57395
57413
  init_zod();
57396
57414
  init_outputconfig();
57397
57415
  init_variablespec();
57398
- EvaluatorVersionResponse$zodSchema = object({
57416
+ EvaluatorVersionCompact$zodSchema = object({
57399
57417
  created_at: string2().describe("When the version was created (ISO 8601 UTC)"),
57400
57418
  judge_model: string2().describe("The model that runs the judge, named the way its provider does, for example `openai/gpt-4.1` or `anthropic/claude-sonnet-4`"),
57401
57419
  output_config: OutputConfig$zodSchema.nullable().optional().describe("The scale points and their labels. Required for a `rating` evaluator. A `binary` evaluator uses the default Correct/Wrong labels unless you set your own"),
57402
- system_prompt: string2().describe('Judge system prompt, with `{{"{{"}}variable}}` placeholders unrendered'),
57420
+ system_prompt: string2().nullable().optional().describe('Judge system prompt, with `{{"{{"}}variable}}` placeholders unrendered'),
57403
57421
  uuid: string2().describe("Version ID"),
57404
57422
  variables: array(VariableSpec$zodSchema).nullable().optional().describe("Declared prompt variables"),
57405
57423
  version_number: int().describe("The version's number. The first version is 1, and it goes up by one for each new version of the evaluator")
57406
57424
  });
57407
57425
  });
57408
57426
 
57409
- // src/models/evaluatordetailresponse.ts
57410
- var EvaluatorDetailResponseEvaluatorType$zodSchema, EvaluatorDetailResponseDataType$zodSchema, EvaluatorDetailResponseOutputType$zodSchema, EvaluatorDetailResponse$zodSchema;
57411
- var init_evaluatordetailresponse = __esm(() => {
57427
+ // src/models/evaluatordetailresponsecompact.ts
57428
+ var EvaluatorDetailResponseCompactEvaluatorType$zodSchema, EvaluatorDetailResponseCompactDataType$zodSchema, EvaluatorDetailResponseCompactOutputType$zodSchema, EvaluatorDetailResponseCompact$zodSchema;
57429
+ var init_evaluatordetailresponsecompact = __esm(() => {
57412
57430
  init_zod();
57413
- init_evaluatorversionresponse();
57414
- EvaluatorDetailResponseEvaluatorType$zodSchema = _enum([
57431
+ init_evaluatorversioncompact();
57432
+ EvaluatorDetailResponseCompactEvaluatorType$zodSchema = _enum([
57415
57433
  "tts",
57416
57434
  "stt",
57417
57435
  "llm",
57418
57436
  "llm-general",
57419
57437
  "conversation"
57420
57438
  ]).describe("What the evaluator judges:\n\n- `tts`: TTS audio\n- `stt`: one transcript\n- `llm`: a reply with its conversation history\n- `llm-general`: a standalone input and output pair\n- `conversation`: a full conversation\n");
57421
- EvaluatorDetailResponseDataType$zodSchema = _enum([
57439
+ EvaluatorDetailResponseCompactDataType$zodSchema = _enum([
57422
57440
  "text",
57423
57441
  "audio"
57424
57442
  ]).describe("The modality the judge reads:\n\n- `text`\n- `audio`\n");
57425
- EvaluatorDetailResponseOutputType$zodSchema = _enum([
57443
+ EvaluatorDetailResponseCompactOutputType$zodSchema = _enum([
57426
57444
  "binary",
57427
57445
  "rating"
57428
57446
  ]).describe("How the evaluator scores:\n\n- `binary`: pass or fail\n- `rating`: a numeric score, using the scale in `output_config`\n");
57429
- EvaluatorDetailResponse$zodSchema = object({
57447
+ EvaluatorDetailResponseCompact$zodSchema = object({
57430
57448
  created_at: string2().describe("When the evaluator was created (ISO 8601 UTC)"),
57431
- data_type: EvaluatorDetailResponseDataType$zodSchema.describe("The modality the judge reads:\n\n- `text`\n- `audio`\n"),
57449
+ data_type: EvaluatorDetailResponseCompactDataType$zodSchema.describe("The modality the judge reads:\n\n- `text`\n- `audio`\n"),
57432
57450
  description: string2().nullable().optional().describe("What the evaluator checks"),
57433
- evaluator_type: EvaluatorDetailResponseEvaluatorType$zodSchema.describe("What the evaluator judges:\n\n- `tts`: TTS audio\n- `stt`: one transcript\n- `llm`: a reply with its conversation history\n- `llm-general`: a standalone input and output pair\n- `conversation`: a full conversation\n"),
57451
+ evaluator_type: EvaluatorDetailResponseCompactEvaluatorType$zodSchema.describe("What the evaluator judges:\n\n- `tts`: TTS audio\n- `stt`: one transcript\n- `llm`: a reply with its conversation history\n- `llm-general`: a standalone input and output pair\n- `conversation`: a full conversation\n"),
57434
57452
  is_default: boolean2().describe("True for a built-in default evaluator, which you can't edit. False for an evaluator you created, which you can edit and add versions to"),
57435
57453
  live_version_id: string2().nullable().optional().describe("ID of the version that is currently live"),
57436
57454
  name: string2().describe("Evaluator name"),
57437
- output_type: EvaluatorDetailResponseOutputType$zodSchema.describe("How the evaluator scores:\n\n- `binary`: pass or fail\n- `rating`: a numeric score, using the scale in `output_config`\n"),
57455
+ output_type: EvaluatorDetailResponseCompactOutputType$zodSchema.describe("How the evaluator scores:\n\n- `binary`: pass or fail\n- `rating`: a numeric score, using the scale in `output_config`\n"),
57438
57456
  slug: string2().nullable().optional().describe("Stable slug for a built-in default evaluator"),
57439
57457
  updated_at: string2().describe("When the evaluator was last updated (ISO 8601 UTC)"),
57440
57458
  uuid: string2().describe("Evaluator ID"),
57441
- versions: array(EvaluatorVersionResponse$zodSchema).describe("Full version history, oldest first")
57459
+ versions: array(EvaluatorVersionCompact$zodSchema).describe("Full version history, oldest first")
57442
57460
  });
57443
57461
  });
57444
57462
 
@@ -57446,14 +57464,15 @@ var init_evaluatordetailresponse = __esm(() => {
57446
57464
  var GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetRequest$zodSchema, GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetResponse$zodSchema;
57447
57465
  var init_getevaluatorendpointevaluatorsevaluatoruuidgetop = __esm(() => {
57448
57466
  init_zod();
57449
- init_evaluatordetailresponse();
57467
+ init_evaluatordetailresponsecompact();
57450
57468
  init_httpvalidationerror();
57451
57469
  GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetRequest$zodSchema = object({
57470
+ compact: boolean2().default(false).describe("Return a compact response that omits heavy detail fields (`versions.system_prompt`, `versions.output_config`, `versions.variables`), keeping only the lightweight decision fields. Omit for full detail"),
57452
57471
  evaluator_uuid: string2().describe("Evaluator to retrieve"),
57453
57472
  xAPIKey: string2().nullable().optional()
57454
57473
  });
57455
57474
  GetEvaluatorEndpointEvaluatorsEvaluatorUuidGetResponse$zodSchema = union([
57456
- EvaluatorDetailResponse$zodSchema,
57475
+ EvaluatorDetailResponseCompact$zodSchema,
57457
57476
  HTTPValidationError$zodSchema
57458
57477
  ]);
57459
57478
  });
@@ -57476,6 +57495,9 @@ async function $do27(client$, request, options) {
57476
57495
  })
57477
57496
  };
57478
57497
  const path$ = pathToFunc("/evaluators/{evaluator_uuid}")(pathParams$);
57498
+ const query$ = encodeFormQuery({
57499
+ compact: payload$.compact
57500
+ });
57479
57501
  const headers$ = new Headers(compactMap({
57480
57502
  Accept: "application/json",
57481
57503
  "X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
@@ -57507,6 +57529,7 @@ async function $do27(client$, request, options) {
57507
57529
  baseURL: options?.serverURL,
57508
57530
  path: path$,
57509
57531
  headers: headers$,
57532
+ query: query$,
57510
57533
  body: body$,
57511
57534
  userAgent: client$._options.userAgent,
57512
57535
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
@@ -58636,7 +58659,7 @@ fields to change (name, config). Returns the updated test. Fails with
58636
58659
  function createMCPServer(deps) {
58637
58660
  const server = new McpServer({
58638
58661
  name: "CalibrateMcp",
58639
- version: "0.0.23"
58662
+ version: "0.0.25"
58640
58663
  });
58641
58664
  const getClient = deps.getSDK || (() => new CalibrateMcpCore({
58642
58665
  security: deps.security,
@@ -59842,7 +59865,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
59842
59865
  <h1>Instructions</h1>
59843
59866
  <p>One-click installation for Claude Desktop users</p>
59844
59867
  <div class="instruction-item">
59845
- <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.23/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
59868
+ <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.25/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
59846
59869
  \uD83D\uDCE5 Download MCP Bundle
59847
59870
  </a>
59848
59871
  </div>
@@ -62494,7 +62517,7 @@ var routes = buildRouteMap({
62494
62517
  var app = buildApplication(routes, {
62495
62518
  name: "mcp",
62496
62519
  versionInfo: {
62497
- currentVersion: "0.0.23"
62520
+ currentVersion: "0.0.25"
62498
62521
  }
62499
62522
  });
62500
62523
  run(app, process4.argv.slice(2), buildContext(process4));
@@ -62502,5 +62525,5 @@ export {
62502
62525
  app
62503
62526
  };
62504
62527
 
62505
- //# debugId=C650F485386E271664756E2164756E21
62528
+ //# debugId=4F09830EB4B94F2464756E2164756E21
62506
62529
  //# sourceMappingURL=mcp-server.js.map