@avallon-labs/mcp 27.2.0 → 27.3.0-staging.777

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-X6AQMCUX.js");
57
+ await import("./server-YQVB6WY3.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -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
  };
@@ -2979,6 +2995,17 @@ var updateInboxHandler = async (args) => {
2979
2995
  ]
2980
2996
  };
2981
2997
  };
2998
+ var deleteInboxHandler = async (args) => {
2999
+ const res = await deleteInbox(args.pathParams.inboxId);
3000
+ return {
3001
+ content: [
3002
+ {
3003
+ type: "text",
3004
+ text: JSON.stringify(res)
3005
+ }
3006
+ ]
3007
+ };
3008
+ };
2982
3009
  var createEmailHandler = async (args) => {
2983
3010
  const res = await createEmail(args.bodyParams);
2984
3011
  return {
@@ -5708,6 +5735,10 @@ var UpdateInboxResponse = zod.object({
5708
5735
  created_at: zod.string().datetime({}),
5709
5736
  updated_at: zod.string().datetime({})
5710
5737
  });
5738
+ var DeleteInboxParams = zod.object({
5739
+ inboxId: zod.string().uuid()
5740
+ });
5741
+ var DeleteInboxResponse = zod.object({});
5711
5742
  var CreateEmailBody = zod.object({
5712
5743
  direction: zod.enum(["inbound", "outbound"]),
5713
5744
  from: zod.string().email(),
@@ -7501,6 +7532,14 @@ server.tool(
7501
7532
  },
7502
7533
  updateInboxHandler
7503
7534
  );
7535
+ server.tool(
7536
+ "deleteInbox",
7537
+ "Delete inbox",
7538
+ {
7539
+ pathParams: DeleteInboxParams
7540
+ },
7541
+ deleteInboxHandler
7542
+ );
7504
7543
  server.tool(
7505
7544
  "createEmail",
7506
7545
  "Create email",
@@ -8055,4 +8094,4 @@ var transport = new StdioServerTransport();
8055
8094
  server.connect(transport).then(() => {
8056
8095
  console.error("MCP server running on stdio");
8057
8096
  }).catch(console.error);
8058
- //# sourceMappingURL=server-X6AQMCUX.js.map
8097
+ //# sourceMappingURL=server-YQVB6WY3.js.map