@avallon-labs/mcp 56.0.0 → 57.0.0-staging.1288
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
|
@@ -12058,11 +12058,14 @@ var createScheduleBodyRuleTwoPatternsItemWeekdaysDefault = null;
|
|
|
12058
12058
|
var createScheduleBodyRuleTwoPatternsMax = 10;
|
|
12059
12059
|
var createScheduleBodyNameMax = 200;
|
|
12060
12060
|
var CreateScheduleBody = zod.object({
|
|
12061
|
-
"action": zod.object({
|
|
12061
|
+
"action": zod.union([zod.object({
|
|
12062
12062
|
"type": zod.literal("trigger_worker"),
|
|
12063
12063
|
"worker_id": zod.string().uuid(),
|
|
12064
12064
|
"scope": zod.union([zod.record(zod.string(), zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])), zod.null()]).optional().describe("Scope of the runs this schedule creates. Omit or send null to run without artifacts.")
|
|
12065
|
-
}).
|
|
12065
|
+
}), zod.object({
|
|
12066
|
+
"type": zod.literal("execute_tool"),
|
|
12067
|
+
"tool_id": zod.string().uuid()
|
|
12068
|
+
})]).describe("What the schedule does every time it fires"),
|
|
12066
12069
|
"rule": zod.union([zod.object({
|
|
12067
12070
|
"type": zod.literal("once"),
|
|
12068
12071
|
"at": zod.string().datetime({ "offset": true }).describe('The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z"')
|
|
@@ -12075,7 +12078,7 @@ var CreateScheduleBody = zod.object({
|
|
|
12075
12078
|
"weekdays": zod.union([zod.array(zod.number().int().min(1).max(createScheduleBodyRuleTwoPatternsItemWeekdaysOneItemMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday")).min(1).max(createScheduleBodyRuleTwoPatternsItemWeekdaysOneMax), zod.null()]).default(createScheduleBodyRuleTwoPatternsItemWeekdaysDefault).describe("Local ISO-8601 weekdays the pattern may fire on. Omit or send null to fire every day.")
|
|
12076
12079
|
}).describe("One set of local times a schedule fires at")).min(1).max(createScheduleBodyRuleTwoPatternsMax).describe("The schedule fires whenever any of these patterns comes round, all read in the rule's time zone.")
|
|
12077
12080
|
})]).describe("When the schedule fires"),
|
|
12078
|
-
"environments": zod.array(zod.enum(["live", "test"])).optional().describe("Environments the schedule fires in. `live` resolves the worker at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version."),
|
|
12081
|
+
"environments": zod.array(zod.enum(["live", "test"])).optional().describe("Environments the schedule fires in. `live` resolves the worker or tool at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version."),
|
|
12079
12082
|
"name": zod.string().min(1).max(createScheduleBodyNameMax).optional().describe('Human-readable name, e.g. "Nightly claim sweep"'),
|
|
12080
12083
|
"enabled": zod.boolean().optional().describe("Whether the schedule starts firing right away. Defaults to true. Must be omitted or true for `once` rules.")
|
|
12081
12084
|
});
|
|
@@ -12093,11 +12096,14 @@ var CreateScheduleResponse = zod.object({
|
|
|
12093
12096
|
"data": zod.object({
|
|
12094
12097
|
"id": zod.string().describe("Unique identifier for the schedule"),
|
|
12095
12098
|
"name": zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
|
|
12096
|
-
"action": zod.object({
|
|
12099
|
+
"action": zod.union([zod.object({
|
|
12097
12100
|
"type": zod.literal("trigger_worker"),
|
|
12098
12101
|
"worker_id": zod.string().uuid(),
|
|
12099
12102
|
"scope": zod.union([zod.record(zod.string(), zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])), zod.null()]).optional().describe("Scope of the runs this schedule creates. Omit or send null to run without artifacts.")
|
|
12100
|
-
}).
|
|
12103
|
+
}), zod.object({
|
|
12104
|
+
"type": zod.literal("execute_tool"),
|
|
12105
|
+
"tool_id": zod.string().uuid()
|
|
12106
|
+
})]).describe("What the schedule does every time it fires"),
|
|
12101
12107
|
"rule": zod.union([zod.object({
|
|
12102
12108
|
"type": zod.literal("once"),
|
|
12103
12109
|
"at": zod.string().datetime({ "offset": true }).describe('The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z"')
|
|
@@ -12149,11 +12155,14 @@ var ListSchedulesResponse = zod.object({
|
|
|
12149
12155
|
"data": zod.array(zod.object({
|
|
12150
12156
|
"id": zod.string().describe("Unique identifier for the schedule"),
|
|
12151
12157
|
"name": zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
|
|
12152
|
-
"action": zod.object({
|
|
12158
|
+
"action": zod.union([zod.object({
|
|
12153
12159
|
"type": zod.literal("trigger_worker"),
|
|
12154
12160
|
"worker_id": zod.string().uuid(),
|
|
12155
12161
|
"scope": zod.union([zod.record(zod.string(), zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])), zod.null()]).optional().describe("Scope of the runs this schedule creates. Omit or send null to run without artifacts.")
|
|
12156
|
-
}).
|
|
12162
|
+
}), zod.object({
|
|
12163
|
+
"type": zod.literal("execute_tool"),
|
|
12164
|
+
"tool_id": zod.string().uuid()
|
|
12165
|
+
})]).describe("What the schedule does every time it fires"),
|
|
12157
12166
|
"rule": zod.union([zod.object({
|
|
12158
12167
|
"type": zod.literal("once"),
|
|
12159
12168
|
"at": zod.string().datetime({ "offset": true }).describe('The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z"')
|
|
@@ -12195,11 +12204,14 @@ var GetScheduleResponse = zod.object({
|
|
|
12195
12204
|
"data": zod.object({
|
|
12196
12205
|
"id": zod.string().describe("Unique identifier for the schedule"),
|
|
12197
12206
|
"name": zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
|
|
12198
|
-
"action": zod.object({
|
|
12207
|
+
"action": zod.union([zod.object({
|
|
12199
12208
|
"type": zod.literal("trigger_worker"),
|
|
12200
12209
|
"worker_id": zod.string().uuid(),
|
|
12201
12210
|
"scope": zod.union([zod.record(zod.string(), zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])), zod.null()]).optional().describe("Scope of the runs this schedule creates. Omit or send null to run without artifacts.")
|
|
12202
|
-
}).
|
|
12211
|
+
}), zod.object({
|
|
12212
|
+
"type": zod.literal("execute_tool"),
|
|
12213
|
+
"tool_id": zod.string().uuid()
|
|
12214
|
+
})]).describe("What the schedule does every time it fires"),
|
|
12203
12215
|
"rule": zod.union([zod.object({
|
|
12204
12216
|
"type": zod.literal("once"),
|
|
12205
12217
|
"at": zod.string().datetime({ "offset": true }).describe('The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z"')
|
|
@@ -12248,7 +12260,7 @@ var UpdateScheduleBody = zod.object({
|
|
|
12248
12260
|
"weekdays": zod.union([zod.array(zod.number().int().min(1).max(updateScheduleBodyRuleTwoPatternsItemWeekdaysOneItemMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday")).min(1).max(updateScheduleBodyRuleTwoPatternsItemWeekdaysOneMax), zod.null()]).default(updateScheduleBodyRuleTwoPatternsItemWeekdaysDefault).describe("Local ISO-8601 weekdays the pattern may fire on. Omit or send null to fire every day.")
|
|
12249
12261
|
}).describe("One set of local times a schedule fires at")).min(1).max(updateScheduleBodyRuleTwoPatternsMax).describe("The schedule fires whenever any of these patterns comes round, all read in the rule's time zone.")
|
|
12250
12262
|
})]).optional().describe("When the schedule fires"),
|
|
12251
|
-
"environments": zod.array(zod.enum(["live", "test"])).optional().describe("Environments the schedule fires in. `live` resolves the worker at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version."),
|
|
12263
|
+
"environments": zod.array(zod.enum(["live", "test"])).optional().describe("Environments the schedule fires in. `live` resolves the worker or tool at its live version, `test` at its test version. Listing both fires every occurrence twice, once per version."),
|
|
12252
12264
|
"name": zod.union([zod.string().min(1).max(updateScheduleBodyNameOneMax), zod.null()]).optional().describe("Human-readable name. Send null to clear it."),
|
|
12253
12265
|
"enabled": zod.boolean().optional().describe("Whether the schedule fires. Disabled never fires. Must be omitted or true for `once` rules.")
|
|
12254
12266
|
});
|
|
@@ -12266,11 +12278,14 @@ var UpdateScheduleResponse = zod.object({
|
|
|
12266
12278
|
"data": zod.object({
|
|
12267
12279
|
"id": zod.string().describe("Unique identifier for the schedule"),
|
|
12268
12280
|
"name": zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
|
|
12269
|
-
"action": zod.object({
|
|
12281
|
+
"action": zod.union([zod.object({
|
|
12270
12282
|
"type": zod.literal("trigger_worker"),
|
|
12271
12283
|
"worker_id": zod.string().uuid(),
|
|
12272
12284
|
"scope": zod.union([zod.record(zod.string(), zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])), zod.null()]).optional().describe("Scope of the runs this schedule creates. Omit or send null to run without artifacts.")
|
|
12273
|
-
}).
|
|
12285
|
+
}), zod.object({
|
|
12286
|
+
"type": zod.literal("execute_tool"),
|
|
12287
|
+
"tool_id": zod.string().uuid()
|
|
12288
|
+
})]).describe("What the schedule does every time it fires"),
|
|
12274
12289
|
"rule": zod.union([zod.object({
|
|
12275
12290
|
"type": zod.literal("once"),
|
|
12276
12291
|
"at": zod.string().datetime({ "offset": true }).describe('The moment it fires, in UTC, e.g. "2026-09-01T14:00:00Z"')
|
|
@@ -12323,7 +12338,7 @@ var ListDispatchesResponse = zod.object({
|
|
|
12323
12338
|
"id": zod.string()
|
|
12324
12339
|
}),
|
|
12325
12340
|
"target": zod.union([zod.object({
|
|
12326
|
-
"type": zod.enum(["worker_run", "extractor_job"]),
|
|
12341
|
+
"type": zod.enum(["worker_run", "extractor_job", "tool_call"]),
|
|
12327
12342
|
"id": zod.string()
|
|
12328
12343
|
}), zod.null()]),
|
|
12329
12344
|
"due_at": zod.string().datetime({ "offset": true }),
|
|
@@ -16029,7 +16044,7 @@ var createMcpServer = (options) => {
|
|
|
16029
16044
|
"createSchedule",
|
|
16030
16045
|
{
|
|
16031
16046
|
title: "Create a schedule",
|
|
16032
|
-
description: "Create a schedule that performs an action, either repeatedly or once.\n\n`action` describes **what** happens
|
|
16047
|
+
description: "Create a schedule that performs an action, either repeatedly or once.\n\n`action` describes **what** happens: `trigger_worker` starts a worker run with the given scope, and `execute_tool` executes a tool without parameters. `rule` describes **when**: `recurring` carries one or more `patterns`, and fires whenever any of them comes round. A pattern fires every hour at `minute`, narrowed by `hours` and `weekdays` \u2014 so `hours: [9]` is daily at 09:00, `hours: [12], weekdays: [1]` is Mondays at noon, and `hours: [9, 13, 17], weekdays: [1, 2, 3, 4, 5]` is three times a day on weekdays. Give a second pattern to mix cadences: hourly on weekdays plus 09:00, 11:00 and 18:00 at weekends is two patterns on one schedule. Patterns overlap harmlessly \u2014 two that land on the same minute fire once. Every set is read in the schedule's own time zone \u2014 an IANA identifier such as `America/Chicago`, resolved across DST transitions. `once` fires a single time at a UTC instant.\n\n`environments` says **which version** of the worker or tool each occurrence runs: `live` resolves it at its live version, `test` at its test version. Give both to soak a candidate version on the same cadence as production \u2014 every occurrence then fires twice, once per environment. Omit it to fire in `live` only.\n\nThe response's `next_run_at` is the first occurrence strictly after the moment of creation; a rule that resolves to no such occurrence is rejected. Create with `enabled: false` to stage a recurring schedule without letting it fire. A one-off is always enabled: delete it to cancel it, and its `next_run_at` becomes null once it has fired.\n\nRequires the `schedules:write` permission, and `tools:execute` for an `execute_tool` action.",
|
|
16033
16048
|
inputSchema: {
|
|
16034
16049
|
bodyParams: CreateScheduleBody.optional()
|
|
16035
16050
|
},
|
|
@@ -16110,7 +16125,7 @@ var createMcpServer = (options) => {
|
|
|
16110
16125
|
"listDispatches",
|
|
16111
16126
|
{
|
|
16112
16127
|
title: "List dispatches",
|
|
16113
|
-
description: "List the organization's dispatches, newest occurrence first.\n\nA dispatch is one occurrence of a trigger in one environment, carried out on its own: a schedule produces one per environment it runs in every time it fires, an inbound email produces one for the environment its inbox received it in, a resolved information request produces one that restarts the worker that asked, an ended call produces one that runs its voice agent's post-call processor once its transcript is ready, and creating a worker run through the API produces a `manual` one, carried out before the request returns. Listing them shows what a trigger has actually done, including occurrences that never produced anything.\n\n- `pending` \u2014 not carried out yet: waiting to be picked up, in flight, or waiting on a retry after an earlier pickup did not complete.\n- `dispatched` \u2014 carried out.\n- `abandoned` \u2014 gave up, because the occurrence passed its `expires_at` deadline before it could be carried out, or, for a `manual` dispatch, because the request that created it failed.\n\n`attempts` counts how many times the occurrence has been picked up, not how many times it failed: a dispatch carried out on the first pickup ends at `attempts: 1`, and a higher count means earlier pickups did not complete.\n\n`target` is what the occurrence produced
|
|
16128
|
+
description: "List the organization's dispatches, newest occurrence first.\n\nA dispatch is one occurrence of a trigger in one environment, carried out on its own: a schedule produces one per environment it runs in every time it fires, an inbound email produces one for the environment its inbox received it in, a resolved information request produces one that restarts the worker that asked, an ended call produces one that runs its voice agent's post-call processor once its transcript is ready, and creating a worker run through the API produces a `manual` one, carried out before the request returns. Listing them shows what a trigger has actually done, including occurrences that never produced anything.\n\n- `pending` \u2014 not carried out yet: waiting to be picked up, in flight, or waiting on a retry after an earlier pickup did not complete.\n- `dispatched` \u2014 carried out.\n- `abandoned` \u2014 gave up, because the occurrence passed its `expires_at` deadline before it could be carried out, or, for a `manual` dispatch, because the request that created it failed.\n\n`attempts` counts how many times the occurrence has been picked up, not how many times it failed: a dispatch carried out on the first pickup ends at `attempts: 1`, and a higher count means earlier pickups did not complete.\n\n`target` is what the occurrence produced: a worker run, an extractor job (for an email whose inbox extracts or a call whose voice agent extracts), or a tool call (for an `execute_tool` schedule). It is null until the dispatch is carried out, and for a tool call until the tool has run.\n\nNarrow to one trigger with `trigger_type` and `trigger_id` \u2014 the schedule's ID for a schedule, the email's ID for an email, the request's ID for an information request, the call's ID for a call. `trigger_id` requires `trigger_type`.",
|
|
16114
16129
|
inputSchema: {
|
|
16115
16130
|
queryParams: ListDispatchesQueryParams
|
|
16116
16131
|
},
|
|
@@ -16819,4 +16834,4 @@ var transport = new StdioServerTransport();
|
|
|
16819
16834
|
server.connect(transport).then(() => {
|
|
16820
16835
|
console.error("MCP server running on stdio");
|
|
16821
16836
|
}).catch(console.error);
|
|
16822
|
-
//# sourceMappingURL=server-
|
|
16837
|
+
//# sourceMappingURL=server-4SR55G26.js.map
|