@avallon-labs/mcp 5.3.0 → 5.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
|
@@ -842,6 +842,29 @@ var cancelExtractorJob = async (id, options) => {
|
|
|
842
842
|
headers: res.headers
|
|
843
843
|
};
|
|
844
844
|
};
|
|
845
|
+
var getListAgenticJobMessagesUrl = (id, params) => {
|
|
846
|
+
const normalizedParams = new URLSearchParams();
|
|
847
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
848
|
+
if (value !== void 0) {
|
|
849
|
+
normalizedParams.append(key, value === null ? "null" : value.toString());
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
const stringifiedParams = normalizedParams.toString();
|
|
853
|
+
return stringifiedParams.length > 0 ? `/v1/extractor-jobs/${id}/messages?${stringifiedParams}` : `/v1/extractor-jobs/${id}/messages`;
|
|
854
|
+
};
|
|
855
|
+
var listAgenticJobMessages = async (id, params, options) => {
|
|
856
|
+
const res = await fetch(getListAgenticJobMessagesUrl(id, params), {
|
|
857
|
+
...options,
|
|
858
|
+
method: "GET"
|
|
859
|
+
});
|
|
860
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
861
|
+
const data = body ? JSON.parse(body) : {};
|
|
862
|
+
return {
|
|
863
|
+
data,
|
|
864
|
+
status: res.status,
|
|
865
|
+
headers: res.headers
|
|
866
|
+
};
|
|
867
|
+
};
|
|
845
868
|
var getUpdateExtractorJobScopeUrl = (id) => {
|
|
846
869
|
return `/v1/extractor-jobs/${id}/scope`;
|
|
847
870
|
};
|
|
@@ -1770,6 +1793,20 @@ var cancelExtractorJobHandler = async (args) => {
|
|
|
1770
1793
|
]
|
|
1771
1794
|
};
|
|
1772
1795
|
};
|
|
1796
|
+
var listAgenticJobMessagesHandler = async (args) => {
|
|
1797
|
+
const res = await listAgenticJobMessages(
|
|
1798
|
+
args.pathParams.id,
|
|
1799
|
+
args.queryParams
|
|
1800
|
+
);
|
|
1801
|
+
return {
|
|
1802
|
+
content: [
|
|
1803
|
+
{
|
|
1804
|
+
type: "text",
|
|
1805
|
+
text: JSON.stringify(res)
|
|
1806
|
+
}
|
|
1807
|
+
]
|
|
1808
|
+
};
|
|
1809
|
+
};
|
|
1773
1810
|
var updateExtractorJobScopeHandler = async (args) => {
|
|
1774
1811
|
const res = await updateExtractorJobScope(
|
|
1775
1812
|
args.pathParams.id,
|
|
@@ -3350,6 +3387,28 @@ var CancelExtractorJobResponse = zod.object({
|
|
|
3350
3387
|
extract_id: zod.union([zod.string(), zod.null()]),
|
|
3351
3388
|
error: zod.union([zod.string(), zod.null()])
|
|
3352
3389
|
});
|
|
3390
|
+
var listAgenticJobMessagesPathIdRegExp = new RegExp(
|
|
3391
|
+
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3392
|
+
);
|
|
3393
|
+
var ListAgenticJobMessagesParams = zod.object({
|
|
3394
|
+
id: zod.string().uuid().regex(listAgenticJobMessagesPathIdRegExp)
|
|
3395
|
+
});
|
|
3396
|
+
var listAgenticJobMessagesQueryCountDefault = 100;
|
|
3397
|
+
var listAgenticJobMessagesQueryCountMax = 500;
|
|
3398
|
+
var ListAgenticJobMessagesQueryParams = zod.object({
|
|
3399
|
+
after: zod.string().datetime({}).optional(),
|
|
3400
|
+
count: zod.number().min(1).max(listAgenticJobMessagesQueryCountMax).default(listAgenticJobMessagesQueryCountDefault)
|
|
3401
|
+
});
|
|
3402
|
+
var ListAgenticJobMessagesResponseItem = zod.object({
|
|
3403
|
+
id: zod.string(),
|
|
3404
|
+
extractor_job_id: zod.string(),
|
|
3405
|
+
message: zod.record(zod.string(), zod.unknown()),
|
|
3406
|
+
emitted_at: zod.string(),
|
|
3407
|
+
created_at: zod.string()
|
|
3408
|
+
});
|
|
3409
|
+
var ListAgenticJobMessagesResponse = zod.array(
|
|
3410
|
+
ListAgenticJobMessagesResponseItem
|
|
3411
|
+
);
|
|
3353
3412
|
var updateExtractorJobScopePathIdRegExp = new RegExp(
|
|
3354
3413
|
"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
3355
3414
|
);
|
|
@@ -4241,6 +4300,15 @@ server.tool(
|
|
|
4241
4300
|
},
|
|
4242
4301
|
cancelExtractorJobHandler
|
|
4243
4302
|
);
|
|
4303
|
+
server.tool(
|
|
4304
|
+
"listAgenticJobMessages",
|
|
4305
|
+
"List agentic job messages",
|
|
4306
|
+
{
|
|
4307
|
+
pathParams: ListAgenticJobMessagesParams,
|
|
4308
|
+
queryParams: ListAgenticJobMessagesQueryParams
|
|
4309
|
+
},
|
|
4310
|
+
listAgenticJobMessagesHandler
|
|
4311
|
+
);
|
|
4244
4312
|
server.tool(
|
|
4245
4313
|
"updateExtractorJobScope",
|
|
4246
4314
|
"Update extractor job scope",
|
|
@@ -4438,4 +4506,4 @@ var transport = new StdioServerTransport();
|
|
|
4438
4506
|
server.connect(transport).then(() => {
|
|
4439
4507
|
console.error("MCP server running on stdio");
|
|
4440
4508
|
}).catch(console.error);
|
|
4441
|
-
//# sourceMappingURL=server-
|
|
4509
|
+
//# sourceMappingURL=server-THRMFUPF.js.map
|