@avallon-labs/mcp 27.6.0-staging.780 → 27.7.0-staging.781

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-U62TTJ4P.js");
57
+ await import("./server-EBZUU63J.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -1817,6 +1817,22 @@ var updateChatAgent = async (chatAgentId, updateChatAgentRequest, options) => {
1817
1817
  headers: res.headers
1818
1818
  };
1819
1819
  };
1820
+ var getDeleteChatAgentUrl = (chatAgentId) => {
1821
+ return `/v1/chat-agents/${chatAgentId}`;
1822
+ };
1823
+ var deleteChatAgent = async (chatAgentId, options) => {
1824
+ const res = await fetch(getDeleteChatAgentUrl(chatAgentId), {
1825
+ ...options,
1826
+ method: "DELETE"
1827
+ });
1828
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
1829
+ const data = body ? JSON.parse(body) : {};
1830
+ return {
1831
+ data,
1832
+ status: res.status,
1833
+ headers: res.headers
1834
+ };
1835
+ };
1820
1836
  var getGetChatAgentPromptUrl = (chatAgentId) => {
1821
1837
  return `/v1/chat-agents/${chatAgentId}/prompt`;
1822
1838
  };
@@ -3460,6 +3476,17 @@ var updateChatAgentHandler = async (args) => {
3460
3476
  ]
3461
3477
  };
3462
3478
  };
3479
+ var deleteChatAgentHandler = async (args) => {
3480
+ const res = await deleteChatAgent(args.pathParams.chatAgentId);
3481
+ return {
3482
+ content: [
3483
+ {
3484
+ type: "text",
3485
+ text: JSON.stringify(res)
3486
+ }
3487
+ ]
3488
+ };
3489
+ };
3463
3490
  var getChatAgentPromptHandler = async (args) => {
3464
3491
  const res = await getChatAgentPrompt(args.pathParams.chatAgentId);
3465
3492
  return {
@@ -6518,6 +6545,10 @@ var UpdateChatAgentResponse = zod.object({
6518
6545
  created_at: zod.string().datetime({}),
6519
6546
  updated_at: zod.string().datetime({})
6520
6547
  });
6548
+ var DeleteChatAgentParams = zod.object({
6549
+ chatAgentId: zod.string().uuid()
6550
+ });
6551
+ var DeleteChatAgentResponse = zod.object({});
6521
6552
  var GetChatAgentPromptParams = zod.object({
6522
6553
  chatAgentId: zod.string().uuid()
6523
6554
  });
@@ -7912,6 +7943,14 @@ server.tool(
7912
7943
  },
7913
7944
  updateChatAgentHandler
7914
7945
  );
7946
+ server.tool(
7947
+ "deleteChatAgent",
7948
+ "Delete chat agent",
7949
+ {
7950
+ pathParams: DeleteChatAgentParams
7951
+ },
7952
+ deleteChatAgentHandler
7953
+ );
7915
7954
  server.tool(
7916
7955
  "getChatAgentPrompt",
7917
7956
  "Get chat agent prompt",
@@ -8178,4 +8217,4 @@ var transport = new StdioServerTransport();
8178
8217
  server.connect(transport).then(() => {
8179
8218
  console.error("MCP server running on stdio");
8180
8219
  }).catch(console.error);
8181
- //# sourceMappingURL=server-U62TTJ4P.js.map
8220
+ //# sourceMappingURL=server-EBZUU63J.js.map