@avallon-labs/mcp 27.3.0-staging.777 → 27.5.0-staging.779
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
|
@@ -1469,6 +1469,22 @@ var updateExtractor = async (id, updateExtractorBody, options) => {
|
|
|
1469
1469
|
headers: res.headers
|
|
1470
1470
|
};
|
|
1471
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
|
+
};
|
|
1472
1488
|
var getCreateWorkerUrl = () => {
|
|
1473
1489
|
return `/v1/workers`;
|
|
1474
1490
|
};
|
|
@@ -3221,6 +3237,17 @@ var updateExtractorHandler = async (args) => {
|
|
|
3221
3237
|
]
|
|
3222
3238
|
};
|
|
3223
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
|
+
};
|
|
3224
3251
|
var createWorkerHandler = async (args) => {
|
|
3225
3252
|
const res = await createWorker(args.bodyParams);
|
|
3226
3253
|
return {
|
|
@@ -5227,7 +5254,10 @@ var GetArtifactResponse = zod.object({
|
|
|
5227
5254
|
created_at: zod.string().datetime({}),
|
|
5228
5255
|
created_at_document: zod.union([zod.string(), zod.null()]),
|
|
5229
5256
|
updated_at: zod.string().datetime({}),
|
|
5230
|
-
content_md: zod.union([zod.string(), zod.null()])
|
|
5257
|
+
content_md: zod.union([zod.string(), zod.null()]),
|
|
5258
|
+
content_with_chunkids_md: zod.union([zod.string(), zod.null()]).describe(
|
|
5259
|
+
"Parsed content annotated with [chunk_id=...] markers, always included when the artifact has parsed chunks. Chunk IDs are stable citation anchors usable to attribute extracted values to their source location. Null when the artifact has no parsed chunks."
|
|
5260
|
+
)
|
|
5231
5261
|
})
|
|
5232
5262
|
});
|
|
5233
5263
|
var getArtifactMetadataKeysQueryLimitDefault = 100;
|
|
@@ -5264,7 +5294,10 @@ var UpdateArtifactMetadataResponse = zod.object({
|
|
|
5264
5294
|
created_at: zod.string().datetime({}),
|
|
5265
5295
|
created_at_document: zod.union([zod.string(), zod.null()]),
|
|
5266
5296
|
updated_at: zod.string().datetime({}),
|
|
5267
|
-
content_md: zod.union([zod.string(), zod.null()])
|
|
5297
|
+
content_md: zod.union([zod.string(), zod.null()]),
|
|
5298
|
+
content_with_chunkids_md: zod.union([zod.string(), zod.null()]).describe(
|
|
5299
|
+
"Parsed content annotated with [chunk_id=...] markers, always included when the artifact has parsed chunks. Chunk IDs are stable citation anchors usable to attribute extracted values to their source location. Null when the artifact has no parsed chunks."
|
|
5300
|
+
)
|
|
5268
5301
|
})
|
|
5269
5302
|
});
|
|
5270
5303
|
var SignUpBody = zod.object({
|
|
@@ -6149,6 +6182,10 @@ var UpdateExtractorResponse = zod.object({
|
|
|
6149
6182
|
schema: zod.record(zod.string(), zod.unknown()),
|
|
6150
6183
|
created_at: zod.string().datetime({})
|
|
6151
6184
|
});
|
|
6185
|
+
var DeleteExtractorParams = zod.object({
|
|
6186
|
+
id: zod.string().uuid()
|
|
6187
|
+
});
|
|
6188
|
+
var DeleteExtractorResponse = zod.object({});
|
|
6152
6189
|
var CreateWorkerBody = zod.object({
|
|
6153
6190
|
name: zod.string().min(1),
|
|
6154
6191
|
prompt: zod.string().min(1).optional(),
|
|
@@ -7696,6 +7733,14 @@ server.tool(
|
|
|
7696
7733
|
},
|
|
7697
7734
|
updateExtractorHandler
|
|
7698
7735
|
);
|
|
7736
|
+
server.tool(
|
|
7737
|
+
"deleteExtractor",
|
|
7738
|
+
"Delete extractor",
|
|
7739
|
+
{
|
|
7740
|
+
pathParams: DeleteExtractorParams
|
|
7741
|
+
},
|
|
7742
|
+
deleteExtractorHandler
|
|
7743
|
+
);
|
|
7699
7744
|
server.tool(
|
|
7700
7745
|
"createWorker",
|
|
7701
7746
|
"Create worker",
|
|
@@ -8094,4 +8139,4 @@ var transport = new StdioServerTransport();
|
|
|
8094
8139
|
server.connect(transport).then(() => {
|
|
8095
8140
|
console.error("MCP server running on stdio");
|
|
8096
8141
|
}).catch(console.error);
|
|
8097
|
-
//# sourceMappingURL=server-
|
|
8142
|
+
//# sourceMappingURL=server-6GQVMXJU.js.map
|