@avallon-labs/mcp 44.4.0 → 46.0.0-staging.1054

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
@@ -46,5 +46,5 @@ function setupFetch() {
46
46
 
47
47
  // src/index.ts
48
48
  setupFetch();
49
- await import("./server-A6PKBDNO.js");
49
+ await import("./server-NM73MW7C.js");
50
50
  //# sourceMappingURL=index.js.map
@@ -2785,56 +2785,6 @@ var executeCode = async (id, executeCodeBody, options) => {
2785
2785
  headers: res.headers
2786
2786
  };
2787
2787
  };
2788
- var getWorkerListToolsUrl = () => {
2789
- return `/worker/v1/tools`;
2790
- };
2791
- var workerListTools = async (options) => {
2792
- const res = await fetch(getWorkerListToolsUrl(), {
2793
- ...options,
2794
- method: "GET"
2795
- });
2796
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2797
- const data = body ? JSON.parse(body) : {};
2798
- return {
2799
- data,
2800
- status: res.status,
2801
- headers: res.headers
2802
- };
2803
- };
2804
- var getWorkerGetToolUrl = (id) => {
2805
- return `/worker/v1/tools/${id}`;
2806
- };
2807
- var workerGetTool = async (id, options) => {
2808
- const res = await fetch(getWorkerGetToolUrl(id), {
2809
- ...options,
2810
- method: "GET"
2811
- });
2812
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2813
- const data = body ? JSON.parse(body) : {};
2814
- return {
2815
- data,
2816
- status: res.status,
2817
- headers: res.headers
2818
- };
2819
- };
2820
- var getWorkerExecuteToolUrl = (id) => {
2821
- return `/worker/v1/tools/${id}/execute`;
2822
- };
2823
- var workerExecuteTool = async (id, workerExecuteToolBody, options) => {
2824
- const res = await fetch(getWorkerExecuteToolUrl(id), {
2825
- ...options,
2826
- method: "POST",
2827
- headers: { "Content-Type": "application/json", ...options?.headers },
2828
- body: JSON.stringify(workerExecuteToolBody)
2829
- });
2830
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2831
- const data = body ? JSON.parse(body) : {};
2832
- return {
2833
- data,
2834
- status: res.status,
2835
- headers: res.headers
2836
- };
2837
- };
2838
2788
  var getNotifyAdminUrl = () => {
2839
2789
  return `/worker/v1/notifications`;
2840
2790
  };
@@ -4693,39 +4643,6 @@ var executeCodeHandler = async (args) => {
4693
4643
  ]
4694
4644
  };
4695
4645
  };
4696
- var workerListToolsHandler = async () => {
4697
- const res = await workerListTools();
4698
- return {
4699
- content: [
4700
- {
4701
- type: "text",
4702
- text: JSON.stringify(res)
4703
- }
4704
- ]
4705
- };
4706
- };
4707
- var workerGetToolHandler = async (args) => {
4708
- const res = await workerGetTool(args.pathParams.id);
4709
- return {
4710
- content: [
4711
- {
4712
- type: "text",
4713
- text: JSON.stringify(res)
4714
- }
4715
- ]
4716
- };
4717
- };
4718
- var workerExecuteToolHandler = async (args) => {
4719
- const res = await workerExecuteTool(args.pathParams.id, args.bodyParams);
4720
- return {
4721
- content: [
4722
- {
4723
- type: "text",
4724
- text: JSON.stringify(res)
4725
- }
4726
- ]
4727
- };
4728
- };
4729
4646
  var notifyAdminHandler = async (args) => {
4730
4647
  const res = await notifyAdmin(args.bodyParams);
4731
4648
  return {
@@ -9601,8 +9518,7 @@ var ListNotificationsResponse = zod.object({
9601
9518
  var CreateToolBody = zod.object({
9602
9519
  name: zod.string().min(1),
9603
9520
  code: zod.string().min(1),
9604
- description: zod.string().min(1),
9605
- api_key: zod.string().min(1).optional()
9521
+ description: zod.string().min(1)
9606
9522
  });
9607
9523
  var CreateToolResponse = zod.object({
9608
9524
  data: zod.object({
@@ -9611,8 +9527,7 @@ var CreateToolResponse = zod.object({
9611
9527
  name: zod.string(),
9612
9528
  schema: zod.record(zod.string(), zod.unknown()).optional(),
9613
9529
  description: zod.string().optional(),
9614
- code: zod.string().optional(),
9615
- has_api_key: zod.boolean()
9530
+ code: zod.string().optional()
9616
9531
  })
9617
9532
  }),
9618
9533
  message: zod.string()
@@ -9630,7 +9545,7 @@ var ListToolsResponse = zod.object({
9630
9545
  zod.object({
9631
9546
  id: zod.string(),
9632
9547
  name: zod.string(),
9633
- description: zod.string()
9548
+ description: zod.string().optional()
9634
9549
  })
9635
9550
  )
9636
9551
  }),
@@ -9651,10 +9566,9 @@ var GetToolResponse = zod.object({
9651
9566
  tool: zod.object({
9652
9567
  id: zod.string(),
9653
9568
  name: zod.string(),
9654
- description: zod.string(),
9569
+ description: zod.string().optional(),
9655
9570
  code: zod.string(),
9656
9571
  schema: zod.record(zod.string(), zod.unknown()),
9657
- has_api_key: zod.boolean(),
9658
9572
  secret_ids: zod.array(zod.string()).describe(
9659
9573
  "Secrets attached to the tool. A tool with attached secrets takes its execution environment exclusively from the secret store, each secret arriving under its own env key."
9660
9574
  )
@@ -9667,7 +9581,6 @@ var UpdateToolParams = zod.object({
9667
9581
  });
9668
9582
  var UpdateToolBody = zod.object({
9669
9583
  name: zod.string().min(1).optional(),
9670
- api_key: zod.union([zod.string().min(1), zod.null()]).optional(),
9671
9584
  code: zod.string().min(1).optional(),
9672
9585
  description: zod.string().min(1).optional(),
9673
9586
  secret_ids: zod.array(zod.string().uuid()).optional().describe(
@@ -9679,10 +9592,9 @@ var UpdateToolResponse = zod.object({
9679
9592
  tool: zod.object({
9680
9593
  id: zod.string(),
9681
9594
  name: zod.string(),
9682
- description: zod.string(),
9595
+ description: zod.string().optional(),
9683
9596
  code: zod.string(),
9684
9597
  schema: zod.record(zod.string(), zod.unknown()),
9685
- has_api_key: zod.boolean(),
9686
9598
  secret_ids: zod.array(zod.string()).describe(
9687
9599
  "Secrets attached to the tool. A tool with attached secrets takes its execution environment exclusively from the secret store, each secret arriving under its own env key."
9688
9600
  )
@@ -9713,49 +9625,6 @@ var ExecuteCodeResponse = zod.object({
9713
9625
  }),
9714
9626
  message: zod.string()
9715
9627
  });
9716
- var WorkerListToolsResponse = zod.object({
9717
- data: zod.object({
9718
- tools: zod.array(
9719
- zod.object({
9720
- id: zod.string(),
9721
- name: zod.string(),
9722
- description: zod.string()
9723
- })
9724
- )
9725
- }),
9726
- message: zod.string()
9727
- });
9728
- var WorkerGetToolParams = zod.object({
9729
- id: zod.string().uuid()
9730
- });
9731
- var WorkerGetToolResponse = zod.object({
9732
- data: zod.object({
9733
- tool: zod.object({
9734
- id: zod.string(),
9735
- name: zod.string(),
9736
- description: zod.string(),
9737
- schema: zod.record(zod.string(), zod.unknown())
9738
- })
9739
- }),
9740
- message: zod.string()
9741
- });
9742
- var WorkerExecuteToolParams = zod.object({
9743
- id: zod.string().uuid()
9744
- });
9745
- var workerExecuteToolBodyParamsDefault = {};
9746
- var WorkerExecuteToolBody = zod.object({
9747
- params: zod.record(zod.string(), zod.unknown()).default(workerExecuteToolBodyParamsDefault)
9748
- });
9749
- var WorkerExecuteToolResponse = zod.object({
9750
- data: zod.object({
9751
- result: zod.string().optional(),
9752
- error: zod.object({
9753
- name: zod.string(),
9754
- message: zod.string()
9755
- }).optional()
9756
- }),
9757
- message: zod.string()
9758
- });
9759
9628
  var notifyAdminBodyMessageMax = 2e3;
9760
9629
  var NotifyAdminBody = zod.object({
9761
9630
  message: zod.string().min(1).max(notifyAdminBodyMessageMax).describe(
@@ -11289,24 +11158,6 @@ server.tool(
11289
11158
  },
11290
11159
  executeCodeHandler
11291
11160
  );
11292
- server.tool("workerListTools", "List worker tools", workerListToolsHandler);
11293
- server.tool(
11294
- "workerGetTool",
11295
- "Get worker tool",
11296
- {
11297
- pathParams: WorkerGetToolParams
11298
- },
11299
- workerGetToolHandler
11300
- );
11301
- server.tool(
11302
- "workerExecuteTool",
11303
- "Execute a worker-attached tool",
11304
- {
11305
- pathParams: WorkerExecuteToolParams,
11306
- bodyParams: WorkerExecuteToolBody
11307
- },
11308
- workerExecuteToolHandler
11309
- );
11310
11161
  server.tool(
11311
11162
  "notifyAdmin",
11312
11163
  "Notify an admin",
@@ -11424,4 +11275,4 @@ var transport = new StdioServerTransport();
11424
11275
  server.connect(transport).then(() => {
11425
11276
  console.error("MCP server running on stdio");
11426
11277
  }).catch(console.error);
11427
- //# sourceMappingURL=server-A6PKBDNO.js.map
11278
+ //# sourceMappingURL=server-NM73MW7C.js.map