@avallon-labs/mcp 12.3.0 → 13.0.0-staging.322
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
|
@@ -954,7 +954,7 @@ var cancelExtractorJob = async (id, options) => {
|
|
|
954
954
|
headers: res.headers
|
|
955
955
|
};
|
|
956
956
|
};
|
|
957
|
-
var
|
|
957
|
+
var getListWorkerRunMessagesUrl = (id, params) => {
|
|
958
958
|
const normalizedParams = new URLSearchParams();
|
|
959
959
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
960
960
|
if (value !== void 0) {
|
|
@@ -970,8 +970,8 @@ var getListAgenticJobMessagesUrl = (id, params) => {
|
|
|
970
970
|
const stringifiedParams = normalizedParams.toString();
|
|
971
971
|
return stringifiedParams.length > 0 ? `/v1/extractor-jobs/${id}/messages?${stringifiedParams}` : `/v1/extractor-jobs/${id}/messages`;
|
|
972
972
|
};
|
|
973
|
-
var
|
|
974
|
-
const res = await fetch(
|
|
973
|
+
var listWorkerRunMessages = async (id, params, options) => {
|
|
974
|
+
const res = await fetch(getListWorkerRunMessagesUrl(id, params), {
|
|
975
975
|
...options,
|
|
976
976
|
method: "GET"
|
|
977
977
|
});
|
|
@@ -2071,11 +2071,8 @@ var cancelExtractorJobHandler = async (args) => {
|
|
|
2071
2071
|
]
|
|
2072
2072
|
};
|
|
2073
2073
|
};
|
|
2074
|
-
var
|
|
2075
|
-
const res = await
|
|
2076
|
-
args.pathParams.id,
|
|
2077
|
-
args.queryParams
|
|
2078
|
-
);
|
|
2074
|
+
var listWorkerRunMessagesHandler = async (args) => {
|
|
2075
|
+
const res = await listWorkerRunMessages(args.pathParams.id, args.queryParams);
|
|
2079
2076
|
return {
|
|
2080
2077
|
content: [
|
|
2081
2078
|
{
|
|
@@ -3445,7 +3442,10 @@ var CreateInboxBody = zod.object({
|
|
|
3445
3442
|
zod.null()
|
|
3446
3443
|
]).optional(),
|
|
3447
3444
|
pdf_splitting_enabled: zod.boolean().optional(),
|
|
3448
|
-
username: zod.string().optional().describe("Email username")
|
|
3445
|
+
username: zod.string().optional().describe("Email username"),
|
|
3446
|
+
allowed_sender_domains: zod.union([zod.array(zod.string()).min(1), zod.null()]).describe(
|
|
3447
|
+
"List of allowed sender domain patterns. When null, all senders are accepted. When set to an array, only emails from matching domains are processed. Supports wildcard patterns: '*.example.com' matches 'example.com' and all its subdomains."
|
|
3448
|
+
)
|
|
3449
3449
|
});
|
|
3450
3450
|
var CreateInboxResponse = zod.object({
|
|
3451
3451
|
id: zod.string(),
|
|
@@ -3454,6 +3454,7 @@ var CreateInboxResponse = zod.object({
|
|
|
3454
3454
|
extractor_id: zod.string(),
|
|
3455
3455
|
has_password: zod.boolean(),
|
|
3456
3456
|
pdf_splitting_enabled: zod.boolean(),
|
|
3457
|
+
allowed_sender_domains: zod.union([zod.array(zod.string()), zod.null()]),
|
|
3457
3458
|
created_at: zod.string().datetime({}),
|
|
3458
3459
|
updated_at: zod.string().datetime({})
|
|
3459
3460
|
});
|
|
@@ -3476,6 +3477,7 @@ var ListInboxesResponseItem = zod.object({
|
|
|
3476
3477
|
extractor_id: zod.string(),
|
|
3477
3478
|
has_password: zod.boolean(),
|
|
3478
3479
|
pdf_splitting_enabled: zod.boolean(),
|
|
3480
|
+
allowed_sender_domains: zod.union([zod.array(zod.string()), zod.null()]),
|
|
3479
3481
|
created_at: zod.string().datetime({}),
|
|
3480
3482
|
updated_at: zod.string().datetime({})
|
|
3481
3483
|
});
|
|
@@ -3484,7 +3486,10 @@ var UpdateInboxParams = zod.object({
|
|
|
3484
3486
|
inboxId: zod.string().uuid()
|
|
3485
3487
|
});
|
|
3486
3488
|
var UpdateInboxBody = zod.object({
|
|
3487
|
-
pdf_splitting_enabled: zod.boolean().optional()
|
|
3489
|
+
pdf_splitting_enabled: zod.boolean().optional(),
|
|
3490
|
+
allowed_sender_domains: zod.union([zod.array(zod.string()).min(1), zod.null()]).optional().describe(
|
|
3491
|
+
"List of allowed sender domain patterns. Set to null to accept all senders. Set to an array to only process emails from matching domains. Supports wildcard patterns: '*.example.com' matches 'example.com' and all its subdomains."
|
|
3492
|
+
)
|
|
3488
3493
|
});
|
|
3489
3494
|
var UpdateInboxResponse = zod.object({
|
|
3490
3495
|
id: zod.string(),
|
|
@@ -3493,6 +3498,7 @@ var UpdateInboxResponse = zod.object({
|
|
|
3493
3498
|
extractor_id: zod.string(),
|
|
3494
3499
|
has_password: zod.boolean(),
|
|
3495
3500
|
pdf_splitting_enabled: zod.boolean(),
|
|
3501
|
+
allowed_sender_domains: zod.union([zod.array(zod.string()), zod.null()]),
|
|
3496
3502
|
created_at: zod.string().datetime({}),
|
|
3497
3503
|
updated_at: zod.string().datetime({})
|
|
3498
3504
|
});
|
|
@@ -3661,24 +3667,24 @@ var CancelExtractorJobResponse = zod.object({
|
|
|
3661
3667
|
extract_id: zod.union([zod.string(), zod.null()]),
|
|
3662
3668
|
error: zod.union([zod.string(), zod.null()])
|
|
3663
3669
|
});
|
|
3664
|
-
var
|
|
3670
|
+
var ListWorkerRunMessagesParams = zod.object({
|
|
3665
3671
|
id: zod.string().uuid()
|
|
3666
3672
|
});
|
|
3667
|
-
var
|
|
3668
|
-
var
|
|
3669
|
-
var
|
|
3673
|
+
var listWorkerRunMessagesQueryCountDefault = 100;
|
|
3674
|
+
var listWorkerRunMessagesQueryCountMax = 500;
|
|
3675
|
+
var ListWorkerRunMessagesQueryParams = zod.object({
|
|
3670
3676
|
after: zod.string().datetime({}).optional(),
|
|
3671
|
-
count: zod.number().min(1).max(
|
|
3677
|
+
count: zod.number().min(1).max(listWorkerRunMessagesQueryCountMax).default(listWorkerRunMessagesQueryCountDefault)
|
|
3672
3678
|
});
|
|
3673
|
-
var
|
|
3679
|
+
var ListWorkerRunMessagesResponseItem = zod.object({
|
|
3674
3680
|
id: zod.string(),
|
|
3675
3681
|
extractor_job_id: zod.string(),
|
|
3676
3682
|
message: zod.record(zod.string(), zod.unknown()),
|
|
3677
3683
|
emitted_at: zod.string(),
|
|
3678
3684
|
created_at: zod.string()
|
|
3679
3685
|
});
|
|
3680
|
-
var
|
|
3681
|
-
|
|
3686
|
+
var ListWorkerRunMessagesResponse = zod.array(
|
|
3687
|
+
ListWorkerRunMessagesResponseItem
|
|
3682
3688
|
);
|
|
3683
3689
|
var UpdateExtractorJobScopeParams = zod.object({
|
|
3684
3690
|
id: zod.string().uuid()
|
|
@@ -4699,13 +4705,13 @@ server.tool(
|
|
|
4699
4705
|
cancelExtractorJobHandler
|
|
4700
4706
|
);
|
|
4701
4707
|
server.tool(
|
|
4702
|
-
"
|
|
4708
|
+
"listWorkerRunMessages",
|
|
4703
4709
|
"List agentic job messages",
|
|
4704
4710
|
{
|
|
4705
|
-
pathParams:
|
|
4706
|
-
queryParams:
|
|
4711
|
+
pathParams: ListWorkerRunMessagesParams,
|
|
4712
|
+
queryParams: ListWorkerRunMessagesQueryParams
|
|
4707
4713
|
},
|
|
4708
|
-
|
|
4714
|
+
listWorkerRunMessagesHandler
|
|
4709
4715
|
);
|
|
4710
4716
|
server.tool(
|
|
4711
4717
|
"updateExtractorJobScope",
|
|
@@ -4953,4 +4959,4 @@ var transport = new StdioServerTransport();
|
|
|
4953
4959
|
server.connect(transport).then(() => {
|
|
4954
4960
|
console.error("MCP server running on stdio");
|
|
4955
4961
|
}).catch(console.error);
|
|
4956
|
-
//# sourceMappingURL=server-
|
|
4962
|
+
//# sourceMappingURL=server-45YYITGJ.js.map
|