@avallon-labs/mcp 27.3.0-staging.777 → 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
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-YQVB6WY3.js");
57
+ await import("./server-2UWMZTRK.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -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 {
@@ -6149,6 +6176,10 @@ var UpdateExtractorResponse = zod.object({
6149
6176
  schema: zod.record(zod.string(), zod.unknown()),
6150
6177
  created_at: zod.string().datetime({})
6151
6178
  });
6179
+ var DeleteExtractorParams = zod.object({
6180
+ id: zod.string().uuid()
6181
+ });
6182
+ var DeleteExtractorResponse = zod.object({});
6152
6183
  var CreateWorkerBody = zod.object({
6153
6184
  name: zod.string().min(1),
6154
6185
  prompt: zod.string().min(1).optional(),
@@ -7696,6 +7727,14 @@ server.tool(
7696
7727
  },
7697
7728
  updateExtractorHandler
7698
7729
  );
7730
+ server.tool(
7731
+ "deleteExtractor",
7732
+ "Delete extractor",
7733
+ {
7734
+ pathParams: DeleteExtractorParams
7735
+ },
7736
+ deleteExtractorHandler
7737
+ );
7699
7738
  server.tool(
7700
7739
  "createWorker",
7701
7740
  "Create worker",
@@ -8094,4 +8133,4 @@ var transport = new StdioServerTransport();
8094
8133
  server.connect(transport).then(() => {
8095
8134
  console.error("MCP server running on stdio");
8096
8135
  }).catch(console.error);
8097
- //# sourceMappingURL=server-YQVB6WY3.js.map
8136
+ //# sourceMappingURL=server-2UWMZTRK.js.map