@avallon-labs/mcp 5.2.0-staging.197 → 5.3.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
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-JV6EXJR7.js");
57
+ await import("./server-UTCMYQ4R.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -842,6 +842,24 @@ var cancelExtractorJob = async (id, options) => {
842
842
  headers: res.headers
843
843
  };
844
844
  };
845
+ var getUpdateExtractorJobScopeUrl = (id) => {
846
+ return `/v1/extractor-jobs/${id}/scope`;
847
+ };
848
+ var updateExtractorJobScope = async (id, updateExtractorJobScopeBody, options) => {
849
+ const res = await fetch(getUpdateExtractorJobScopeUrl(id), {
850
+ ...options,
851
+ method: "PATCH",
852
+ headers: { "Content-Type": "application/json", ...options?.headers },
853
+ body: JSON.stringify(updateExtractorJobScopeBody)
854
+ });
855
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
856
+ const data = body ? JSON.parse(body) : {};
857
+ return {
858
+ data,
859
+ status: res.status,
860
+ headers: res.headers
861
+ };
862
+ };
845
863
  var getCreateExtractorUrl = () => {
846
864
  return `/v1/extractors`;
847
865
  };
@@ -1752,6 +1770,20 @@ var cancelExtractorJobHandler = async (args) => {
1752
1770
  ]
1753
1771
  };
1754
1772
  };
1773
+ var updateExtractorJobScopeHandler = async (args) => {
1774
+ const res = await updateExtractorJobScope(
1775
+ args.pathParams.id,
1776
+ args.bodyParams
1777
+ );
1778
+ return {
1779
+ content: [
1780
+ {
1781
+ type: "text",
1782
+ text: JSON.stringify(res)
1783
+ }
1784
+ ]
1785
+ };
1786
+ };
1755
1787
  var createExtractorHandler = async (args) => {
1756
1788
  const res = await createExtractor(args.bodyParams);
1757
1789
  return {
@@ -3318,6 +3350,29 @@ var CancelExtractorJobResponse = zod.object({
3318
3350
  extract_id: zod.union([zod.string(), zod.null()]),
3319
3351
  error: zod.union([zod.string(), zod.null()])
3320
3352
  });
3353
+ var updateExtractorJobScopePathIdRegExp = new RegExp(
3354
+ "^([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
+ );
3356
+ var UpdateExtractorJobScopeParams = zod.object({
3357
+ id: zod.string().uuid().regex(updateExtractorJobScopePathIdRegExp)
3358
+ });
3359
+ var UpdateExtractorJobScopeBody = zod.object({
3360
+ scope: zod.record(zod.string(), zod.unknown())
3361
+ });
3362
+ var UpdateExtractorJobScopeResponse = zod.object({
3363
+ id: zod.string(),
3364
+ extractor_id: zod.string(),
3365
+ extractor_version: zod.number(),
3366
+ extractor_name: zod.string(),
3367
+ status: zod.string(),
3368
+ scope: zod.record(zod.string(), zod.unknown()),
3369
+ created_at: zod.string().datetime({}),
3370
+ started_at: zod.union([zod.string().datetime({}), zod.null()]),
3371
+ completed_at: zod.union([zod.string(), zod.null()]),
3372
+ processing_duration_ms: zod.union([zod.number(), zod.null()]),
3373
+ extract_id: zod.union([zod.string(), zod.null()]),
3374
+ error: zod.union([zod.string(), zod.null()])
3375
+ });
3321
3376
  var CreateExtractorBody = zod.object({
3322
3377
  name: zod.string().min(1),
3323
3378
  schema: zod.record(zod.string(), zod.unknown())
@@ -4186,6 +4241,15 @@ server.tool(
4186
4241
  },
4187
4242
  cancelExtractorJobHandler
4188
4243
  );
4244
+ server.tool(
4245
+ "updateExtractorJobScope",
4246
+ "Update extractor job scope",
4247
+ {
4248
+ pathParams: UpdateExtractorJobScopeParams,
4249
+ bodyParams: UpdateExtractorJobScopeBody
4250
+ },
4251
+ updateExtractorJobScopeHandler
4252
+ );
4189
4253
  server.tool(
4190
4254
  "createExtractor",
4191
4255
  "Create extractor",
@@ -4374,4 +4438,4 @@ var transport = new StdioServerTransport();
4374
4438
  server.connect(transport).then(() => {
4375
4439
  console.error("MCP server running on stdio");
4376
4440
  }).catch(console.error);
4377
- //# sourceMappingURL=server-JV6EXJR7.js.map
4441
+ //# sourceMappingURL=server-UTCMYQ4R.js.map