@avallon-labs/mcp 17.3.0-staging.405 → 17.4.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
|
@@ -1003,24 +1003,6 @@ var getExtractorJob = async (id, options) => {
|
|
|
1003
1003
|
headers: res.headers
|
|
1004
1004
|
};
|
|
1005
1005
|
};
|
|
1006
|
-
var getUpdateExtractorJobScopeUrl = (id) => {
|
|
1007
|
-
return `/v1/extractor-jobs/${id}/scope`;
|
|
1008
|
-
};
|
|
1009
|
-
var updateExtractorJobScope = async (id, updateExtractorJobScopeBody, options) => {
|
|
1010
|
-
const res = await fetch(getUpdateExtractorJobScopeUrl(id), {
|
|
1011
|
-
...options,
|
|
1012
|
-
method: "PATCH",
|
|
1013
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1014
|
-
body: JSON.stringify(updateExtractorJobScopeBody)
|
|
1015
|
-
});
|
|
1016
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1017
|
-
const data = body ? JSON.parse(body) : {};
|
|
1018
|
-
return {
|
|
1019
|
-
data,
|
|
1020
|
-
status: res.status,
|
|
1021
|
-
headers: res.headers
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
1006
|
var getListWorkerRunsUrl = (params) => {
|
|
1025
1007
|
const normalizedParams = new URLSearchParams();
|
|
1026
1008
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -1113,6 +1095,24 @@ var listWorkerRunMessages = async (workerRunId, params, options) => {
|
|
|
1113
1095
|
headers: res.headers
|
|
1114
1096
|
};
|
|
1115
1097
|
};
|
|
1098
|
+
var getUpdateWorkerRunScopeUrl = (workerRunId) => {
|
|
1099
|
+
return `/v1/worker-runs/${workerRunId}/scope`;
|
|
1100
|
+
};
|
|
1101
|
+
var updateWorkerRunScope = async (workerRunId, updateWorkerRunScopeBody, options) => {
|
|
1102
|
+
const res = await fetch(getUpdateWorkerRunScopeUrl(workerRunId), {
|
|
1103
|
+
...options,
|
|
1104
|
+
method: "PATCH",
|
|
1105
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1106
|
+
body: JSON.stringify(updateWorkerRunScopeBody)
|
|
1107
|
+
});
|
|
1108
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1109
|
+
const data = body ? JSON.parse(body) : {};
|
|
1110
|
+
return {
|
|
1111
|
+
data,
|
|
1112
|
+
status: res.status,
|
|
1113
|
+
headers: res.headers
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
1116
|
var getCreateExtractorUrl = () => {
|
|
1117
1117
|
return `/v1/extractors`;
|
|
1118
1118
|
};
|
|
@@ -2208,20 +2208,6 @@ var getExtractorJobHandler = async (args) => {
|
|
|
2208
2208
|
]
|
|
2209
2209
|
};
|
|
2210
2210
|
};
|
|
2211
|
-
var updateExtractorJobScopeHandler = async (args) => {
|
|
2212
|
-
const res = await updateExtractorJobScope(
|
|
2213
|
-
args.pathParams.id,
|
|
2214
|
-
args.bodyParams
|
|
2215
|
-
);
|
|
2216
|
-
return {
|
|
2217
|
-
content: [
|
|
2218
|
-
{
|
|
2219
|
-
type: "text",
|
|
2220
|
-
text: JSON.stringify(res)
|
|
2221
|
-
}
|
|
2222
|
-
]
|
|
2223
|
-
};
|
|
2224
|
-
};
|
|
2225
2211
|
var listWorkerRunsHandler = async (args) => {
|
|
2226
2212
|
const res = await listWorkerRuns(args.queryParams);
|
|
2227
2213
|
return {
|
|
@@ -2269,6 +2255,20 @@ var listWorkerRunMessagesHandler = async (args) => {
|
|
|
2269
2255
|
]
|
|
2270
2256
|
};
|
|
2271
2257
|
};
|
|
2258
|
+
var updateWorkerRunScopeHandler = async (args) => {
|
|
2259
|
+
const res = await updateWorkerRunScope(
|
|
2260
|
+
args.pathParams.workerRunId,
|
|
2261
|
+
args.bodyParams
|
|
2262
|
+
);
|
|
2263
|
+
return {
|
|
2264
|
+
content: [
|
|
2265
|
+
{
|
|
2266
|
+
type: "text",
|
|
2267
|
+
text: JSON.stringify(res)
|
|
2268
|
+
}
|
|
2269
|
+
]
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
2272
|
var createExtractorHandler = async (args) => {
|
|
2273
2273
|
const res = await createExtractor(args.bodyParams);
|
|
2274
2274
|
return {
|
|
@@ -3964,26 +3964,6 @@ var GetExtractorJobResponse = zod.object({
|
|
|
3964
3964
|
error: zod.union([zod.string(), zod.null()])
|
|
3965
3965
|
})
|
|
3966
3966
|
});
|
|
3967
|
-
var UpdateExtractorJobScopeParams = zod.object({
|
|
3968
|
-
id: zod.string().uuid()
|
|
3969
|
-
});
|
|
3970
|
-
var UpdateExtractorJobScopeBody = zod.object({
|
|
3971
|
-
scope: zod.record(zod.string(), zod.unknown())
|
|
3972
|
-
});
|
|
3973
|
-
var UpdateExtractorJobScopeResponse = zod.object({
|
|
3974
|
-
id: zod.string(),
|
|
3975
|
-
extractor_id: zod.string(),
|
|
3976
|
-
extractor_version: zod.number(),
|
|
3977
|
-
extractor_name: zod.string(),
|
|
3978
|
-
status: zod.string(),
|
|
3979
|
-
scope: zod.record(zod.string(), zod.unknown()),
|
|
3980
|
-
created_at: zod.string().datetime({}),
|
|
3981
|
-
started_at: zod.union([zod.string().datetime({}), zod.null()]),
|
|
3982
|
-
completed_at: zod.union([zod.string(), zod.null()]),
|
|
3983
|
-
processing_duration_ms: zod.union([zod.number(), zod.null()]),
|
|
3984
|
-
extract_id: zod.union([zod.string(), zod.null()]),
|
|
3985
|
-
error: zod.union([zod.string(), zod.null()])
|
|
3986
|
-
});
|
|
3987
3967
|
var listWorkerRunsQueryCountDefault = 50;
|
|
3988
3968
|
var listWorkerRunsQueryCountMax = 100;
|
|
3989
3969
|
var listWorkerRunsQueryOffsetDefault = 0;
|
|
@@ -4067,6 +4047,30 @@ var ListWorkerRunMessagesResponseItem = zod.object({
|
|
|
4067
4047
|
var ListWorkerRunMessagesResponse = zod.array(
|
|
4068
4048
|
ListWorkerRunMessagesResponseItem
|
|
4069
4049
|
);
|
|
4050
|
+
var UpdateWorkerRunScopeParams = zod.object({
|
|
4051
|
+
workerRunId: zod.string().uuid()
|
|
4052
|
+
});
|
|
4053
|
+
var UpdateWorkerRunScopeBody = zod.object({
|
|
4054
|
+
scope: zod.record(zod.string(), zod.unknown())
|
|
4055
|
+
});
|
|
4056
|
+
var updateWorkerRunScopeResponseWorkerVersionMin = -9007199254740991;
|
|
4057
|
+
var updateWorkerRunScopeResponseWorkerVersionMax = 9007199254740991;
|
|
4058
|
+
var UpdateWorkerRunScopeResponse = zod.object({
|
|
4059
|
+
id: zod.string().describe("Unique run identifier"),
|
|
4060
|
+
worker_id: zod.string().describe("ID of the worker"),
|
|
4061
|
+
worker_version: zod.number().min(updateWorkerRunScopeResponseWorkerVersionMin).max(updateWorkerRunScopeResponseWorkerVersionMax).describe("Version of the worker at run creation time"),
|
|
4062
|
+
worker_name: zod.string().describe("Name of the worker"),
|
|
4063
|
+
status: zod.string().describe("Current run status"),
|
|
4064
|
+
scope: zod.record(zod.string(), zod.unknown()).describe("Run scope metadata (e.g. claim_id, email_id)"),
|
|
4065
|
+
created_at: zod.string().datetime({}).describe("ISO 8601 timestamp when the run was created"),
|
|
4066
|
+
started_at: zod.union([zod.string().datetime({}), zod.null()]).describe("ISO 8601 timestamp when processing started"),
|
|
4067
|
+
completed_at: zod.union([zod.string().datetime({}), zod.null()]).describe("ISO 8601 timestamp when processing finished"),
|
|
4068
|
+
processing_duration_ms: zod.union([zod.number(), zod.null()]).describe("Processing duration in milliseconds"),
|
|
4069
|
+
extract_id: zod.union([zod.string().uuid(), zod.null()]).describe(
|
|
4070
|
+
"Optional extract ID, set only if the worker run created an extract."
|
|
4071
|
+
),
|
|
4072
|
+
error: zod.union([zod.string(), zod.null()])
|
|
4073
|
+
});
|
|
4070
4074
|
var CreateExtractorBody = zod.object({
|
|
4071
4075
|
name: zod.string().min(1),
|
|
4072
4076
|
schema: zod.record(zod.string(), zod.unknown())
|
|
@@ -5145,15 +5149,6 @@ server.tool(
|
|
|
5145
5149
|
},
|
|
5146
5150
|
getExtractorJobHandler
|
|
5147
5151
|
);
|
|
5148
|
-
server.tool(
|
|
5149
|
-
"updateExtractorJobScope",
|
|
5150
|
-
"Update extractor job scope (deprecated)",
|
|
5151
|
-
{
|
|
5152
|
-
pathParams: UpdateExtractorJobScopeParams,
|
|
5153
|
-
bodyParams: UpdateExtractorJobScopeBody
|
|
5154
|
-
},
|
|
5155
|
-
updateExtractorJobScopeHandler
|
|
5156
|
-
);
|
|
5157
5152
|
server.tool(
|
|
5158
5153
|
"listWorkerRuns",
|
|
5159
5154
|
"List worker runs",
|
|
@@ -5187,6 +5182,15 @@ server.tool(
|
|
|
5187
5182
|
},
|
|
5188
5183
|
listWorkerRunMessagesHandler
|
|
5189
5184
|
);
|
|
5185
|
+
server.tool(
|
|
5186
|
+
"updateWorkerRunScope",
|
|
5187
|
+
"Update worker run scope",
|
|
5188
|
+
{
|
|
5189
|
+
pathParams: UpdateWorkerRunScopeParams,
|
|
5190
|
+
bodyParams: UpdateWorkerRunScopeBody
|
|
5191
|
+
},
|
|
5192
|
+
updateWorkerRunScopeHandler
|
|
5193
|
+
);
|
|
5190
5194
|
server.tool(
|
|
5191
5195
|
"createExtractor",
|
|
5192
5196
|
"Create extractor",
|
|
@@ -5424,4 +5428,4 @@ var transport = new StdioServerTransport();
|
|
|
5424
5428
|
server.connect(transport).then(() => {
|
|
5425
5429
|
console.error("MCP server running on stdio");
|
|
5426
5430
|
}).catch(console.error);
|
|
5427
|
-
//# sourceMappingURL=server-
|
|
5431
|
+
//# sourceMappingURL=server-GLLOOWGU.js.map
|