@avallon-labs/mcp 27.2.0 → 27.4.0-staging.778
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
|
@@ -1059,6 +1059,22 @@ var updateInbox = async (inboxId, updateInboxBody, options) => {
|
|
|
1059
1059
|
headers: res.headers
|
|
1060
1060
|
};
|
|
1061
1061
|
};
|
|
1062
|
+
var getDeleteInboxUrl = (inboxId) => {
|
|
1063
|
+
return `/v1/inboxes/${inboxId}`;
|
|
1064
|
+
};
|
|
1065
|
+
var deleteInbox = async (inboxId, options) => {
|
|
1066
|
+
const res = await fetch(getDeleteInboxUrl(inboxId), {
|
|
1067
|
+
...options,
|
|
1068
|
+
method: "DELETE"
|
|
1069
|
+
});
|
|
1070
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1071
|
+
const data = body ? JSON.parse(body) : {};
|
|
1072
|
+
return {
|
|
1073
|
+
data,
|
|
1074
|
+
status: res.status,
|
|
1075
|
+
headers: res.headers
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1062
1078
|
var getCreateEmailUrl = () => {
|
|
1063
1079
|
return `/v1/emails`;
|
|
1064
1080
|
};
|
|
@@ -1453,6 +1469,22 @@ var updateExtractor = async (id, updateExtractorBody, options) => {
|
|
|
1453
1469
|
headers: res.headers
|
|
1454
1470
|
};
|
|
1455
1471
|
};
|
|
1472
|
+
var getDeleteExtractorUrl = (id) => {
|
|
1473
|
+
return `/v1/extractors/${id}`;
|
|
1474
|
+
};
|
|
1475
|
+
var deleteExtractor = async (id, options) => {
|
|
1476
|
+
const res = await fetch(getDeleteExtractorUrl(id), {
|
|
1477
|
+
...options,
|
|
1478
|
+
method: "DELETE"
|
|
1479
|
+
});
|
|
1480
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1481
|
+
const data = body ? JSON.parse(body) : {};
|
|
1482
|
+
return {
|
|
1483
|
+
data,
|
|
1484
|
+
status: res.status,
|
|
1485
|
+
headers: res.headers
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1456
1488
|
var getCreateWorkerUrl = () => {
|
|
1457
1489
|
return `/v1/workers`;
|
|
1458
1490
|
};
|
|
@@ -2979,6 +3011,17 @@ var updateInboxHandler = async (args) => {
|
|
|
2979
3011
|
]
|
|
2980
3012
|
};
|
|
2981
3013
|
};
|
|
3014
|
+
var deleteInboxHandler = async (args) => {
|
|
3015
|
+
const res = await deleteInbox(args.pathParams.inboxId);
|
|
3016
|
+
return {
|
|
3017
|
+
content: [
|
|
3018
|
+
{
|
|
3019
|
+
type: "text",
|
|
3020
|
+
text: JSON.stringify(res)
|
|
3021
|
+
}
|
|
3022
|
+
]
|
|
3023
|
+
};
|
|
3024
|
+
};
|
|
2982
3025
|
var createEmailHandler = async (args) => {
|
|
2983
3026
|
const res = await createEmail(args.bodyParams);
|
|
2984
3027
|
return {
|
|
@@ -3194,6 +3237,17 @@ var updateExtractorHandler = async (args) => {
|
|
|
3194
3237
|
]
|
|
3195
3238
|
};
|
|
3196
3239
|
};
|
|
3240
|
+
var deleteExtractorHandler = async (args) => {
|
|
3241
|
+
const res = await deleteExtractor(args.pathParams.id);
|
|
3242
|
+
return {
|
|
3243
|
+
content: [
|
|
3244
|
+
{
|
|
3245
|
+
type: "text",
|
|
3246
|
+
text: JSON.stringify(res)
|
|
3247
|
+
}
|
|
3248
|
+
]
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3197
3251
|
var createWorkerHandler = async (args) => {
|
|
3198
3252
|
const res = await createWorker(args.bodyParams);
|
|
3199
3253
|
return {
|
|
@@ -5708,6 +5762,10 @@ var UpdateInboxResponse = zod.object({
|
|
|
5708
5762
|
created_at: zod.string().datetime({}),
|
|
5709
5763
|
updated_at: zod.string().datetime({})
|
|
5710
5764
|
});
|
|
5765
|
+
var DeleteInboxParams = zod.object({
|
|
5766
|
+
inboxId: zod.string().uuid()
|
|
5767
|
+
});
|
|
5768
|
+
var DeleteInboxResponse = zod.object({});
|
|
5711
5769
|
var CreateEmailBody = zod.object({
|
|
5712
5770
|
direction: zod.enum(["inbound", "outbound"]),
|
|
5713
5771
|
from: zod.string().email(),
|
|
@@ -6118,6 +6176,10 @@ var UpdateExtractorResponse = zod.object({
|
|
|
6118
6176
|
schema: zod.record(zod.string(), zod.unknown()),
|
|
6119
6177
|
created_at: zod.string().datetime({})
|
|
6120
6178
|
});
|
|
6179
|
+
var DeleteExtractorParams = zod.object({
|
|
6180
|
+
id: zod.string().uuid()
|
|
6181
|
+
});
|
|
6182
|
+
var DeleteExtractorResponse = zod.object({});
|
|
6121
6183
|
var CreateWorkerBody = zod.object({
|
|
6122
6184
|
name: zod.string().min(1),
|
|
6123
6185
|
prompt: zod.string().min(1).optional(),
|
|
@@ -7501,6 +7563,14 @@ server.tool(
|
|
|
7501
7563
|
},
|
|
7502
7564
|
updateInboxHandler
|
|
7503
7565
|
);
|
|
7566
|
+
server.tool(
|
|
7567
|
+
"deleteInbox",
|
|
7568
|
+
"Delete inbox",
|
|
7569
|
+
{
|
|
7570
|
+
pathParams: DeleteInboxParams
|
|
7571
|
+
},
|
|
7572
|
+
deleteInboxHandler
|
|
7573
|
+
);
|
|
7504
7574
|
server.tool(
|
|
7505
7575
|
"createEmail",
|
|
7506
7576
|
"Create email",
|
|
@@ -7657,6 +7727,14 @@ server.tool(
|
|
|
7657
7727
|
},
|
|
7658
7728
|
updateExtractorHandler
|
|
7659
7729
|
);
|
|
7730
|
+
server.tool(
|
|
7731
|
+
"deleteExtractor",
|
|
7732
|
+
"Delete extractor",
|
|
7733
|
+
{
|
|
7734
|
+
pathParams: DeleteExtractorParams
|
|
7735
|
+
},
|
|
7736
|
+
deleteExtractorHandler
|
|
7737
|
+
);
|
|
7660
7738
|
server.tool(
|
|
7661
7739
|
"createWorker",
|
|
7662
7740
|
"Create worker",
|
|
@@ -8055,4 +8133,4 @@ var transport = new StdioServerTransport();
|
|
|
8055
8133
|
server.connect(transport).then(() => {
|
|
8056
8134
|
console.error("MCP server running on stdio");
|
|
8057
8135
|
}).catch(console.error);
|
|
8058
|
-
//# sourceMappingURL=server-
|
|
8136
|
+
//# sourceMappingURL=server-2UWMZTRK.js.map
|