@avallon-labs/mcp 52.4.0 → 52.5.0

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/dist/index.js CHANGED
@@ -46,5 +46,5 @@ function setupFetch() {
46
46
 
47
47
  // src/index.ts
48
48
  setupFetch();
49
- await import("./server-NVJQ24I5.js");
49
+ await import("./server-CYDJES42.js");
50
50
  //# sourceMappingURL=index.js.map
@@ -8591,23 +8591,25 @@ var GetCallAnalyticsResponse = zod.object({
8591
8591
  var getAnalyticsTimeSeriesQueryGranularityDefault = `day`;
8592
8592
  var getAnalyticsTimeSeriesQueryTimezoneDefault = `UTC`;
8593
8593
  var GetAnalyticsTimeSeriesQueryParams = zod.object({
8594
- "metric": zod.enum(["worker_runs", "documents", "pages"]),
8594
+ "metric": zod.enum(["worker_runs", "documents", "pages", "finished_worker_runs", "avg_worker_run_duration_ms", "avg_worker_run_artifacts"]),
8595
8595
  "from": zod.string(),
8596
8596
  "to": zod.string(),
8597
8597
  "granularity": zod.enum(["day", "week", "month"]).default(getAnalyticsTimeSeriesQueryGranularityDefault),
8598
- "group_by": zod.enum(["worker_id"]).optional(),
8598
+ "group_by": zod.enum(["worker_id", "outcome"]).optional(),
8599
+ "worker_id": zod.string().uuid().optional().describe("Filter by worker. Omit to include all workers."),
8600
+ "environment": zod.enum(["live", "test"]).optional().describe("Filter by environment. Omit to include both. Inside a worker run or tool call, defaults to the run's environment; any other value is rejected."),
8599
8601
  "timezone": zod.string().default(getAnalyticsTimeSeriesQueryTimezoneDefault)
8600
8602
  });
8601
8603
  var GetAnalyticsTimeSeriesResponse = zod.object({
8602
8604
  "data": zod.array(zod.object({
8603
- "metric": zod.enum(["worker_runs", "documents", "pages"]),
8605
+ "metric": zod.enum(["worker_runs", "documents", "pages", "finished_worker_runs", "avg_worker_run_duration_ms", "avg_worker_run_artifacts"]),
8604
8606
  "granularity": zod.enum(["day", "week", "month"]),
8605
- "group_by": zod.union([zod.enum(["worker_id"]), zod.null()]),
8606
- "total": zod.number(),
8607
+ "group_by": zod.union([zod.enum(["worker_id", "outcome"]), zod.null()]),
8608
+ "total": zod.number().describe("The metric over the whole window: for `avg_*` metrics the average across all runs in the window (not the mean of `points`), otherwise the sum of `points`. 0 when there is no data; an empty `points` array distinguishes this from a real zero average."),
8607
8609
  "points": zod.array(zod.object({
8608
8610
  "date": zod.string(),
8609
- "group_key": zod.union([zod.string(), zod.null()]),
8610
- "group_label": zod.union([zod.string(), zod.null()]),
8611
+ "group_key": zod.union([zod.string(), zod.null()]).describe("The group value: a worker ID for `group_by=worker_id`, an outcome for `group_by=outcome`. Null when ungrouped."),
8612
+ "group_label": zod.union([zod.string(), zod.null()]).describe("Display name of the group (the worker name for `group_by=worker_id`). Null when ungrouped or grouped by `outcome`."),
8611
8613
  "value": zod.number()
8612
8614
  }))
8613
8615
  })),
@@ -12971,7 +12973,7 @@ var createMcpServer = (options) => {
12971
12973
  "getAnalyticsTimeSeries",
12972
12974
  {
12973
12975
  title: "Get analytics time series",
12974
- description: "Retrieve a tenant-scoped time series for a single processing-volume metric.\n\nPick a `metric` (worker runs, documents, or pages), a date range, a bucket `granularity` (day/week/month), and optionally a `group_by` dimension (e.g. worker runs grouped by worker). The series is sparse (only buckets with data) over the half-open window `[from, to)`.\n\n`data` is an array of per-metric results; today it always contains exactly one entry (the requested metric).",
12976
+ description: "Retrieve a tenant-scoped time series for a single metric.\n\nPick a `metric`, a date range, a bucket `granularity` (day/week/month), and optionally a `group_by` dimension and filters. The series is sparse (only buckets with data) over the half-open window `[from, to)`.\n\n- `worker_runs`, `documents`, `pages`: processing volume, bucketed by creation time. `worker_runs` can be grouped by `worker_id` and filtered by `worker_id` and `environment`. Documents are shared across environments and cannot be filtered by them.\n- `finished_worker_runs`, `avg_worker_run_duration_ms`, `avg_worker_run_artifacts`: worker runs that ended as completed, failed or canceled, windowed and bucketed by completion time. Runs created by worker evals and benchmarks are excluded. These can be filtered by `worker_id` and `environment`.\n - `finished_worker_runs`: number of finished runs. Can be grouped by `outcome` (`goal_reached`, `goal_not_reached`, `failed`, `canceled`); a completed run without a reported outcome counts as `goal_reached`.\n - `avg_worker_run_duration_ms`: average time from start to completion, in milliseconds. Runs that never started are excluded.\n - `avg_worker_run_artifacts`: average number of input artifacts resolved from the run's scope. Runs without a recorded artifact resolution are excluded.\n\n`data` is an array of per-metric results; today it always contains exactly one entry (the requested metric).",
12975
12977
  inputSchema: {
12976
12978
  queryParams: GetAnalyticsTimeSeriesQueryParams
12977
12979
  },
@@ -15103,4 +15105,4 @@ var transport = new StdioServerTransport();
15103
15105
  server.connect(transport).then(() => {
15104
15106
  console.error("MCP server running on stdio");
15105
15107
  }).catch(console.error);
15106
- //# sourceMappingURL=server-NVJQ24I5.js.map
15108
+ //# sourceMappingURL=server-CYDJES42.js.map