GitHub Action 2 месяцев назад
Родитель
Сommit
4b6575999d
2 измененных файлов с 30 добавлено и 0 удалено
  1. 8 0
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 22 0
      packages/sdk/openapi.json

+ 8 - 0
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -592,6 +592,13 @@ export type EventTuiToastShow = {
   }
 }
 
+export type EventMcpToolsChanged = {
+  type: "mcp.tools.changed"
+  properties: {
+    server: string
+  }
+}
+
 export type EventCommandExecuted = {
   type: "command.executed"
   properties: {
@@ -758,6 +765,7 @@ export type Event =
   | EventTuiPromptAppend
   | EventTuiCommandExecute
   | EventTuiToastShow
+  | EventMcpToolsChanged
   | EventCommandExecuted
   | EventSessionCreated
   | EventSessionUpdated

+ 22 - 0
packages/sdk/openapi.json

@@ -6635,6 +6635,25 @@
         },
         "required": ["type", "properties"]
       },
+      "Event.mcp.tools.changed": {
+        "type": "object",
+        "properties": {
+          "type": {
+            "type": "string",
+            "const": "mcp.tools.changed"
+          },
+          "properties": {
+            "type": "object",
+            "properties": {
+              "server": {
+                "type": "string"
+              }
+            },
+            "required": ["server"]
+          }
+        },
+        "required": ["type", "properties"]
+      },
       "Event.command.executed": {
         "type": "object",
         "properties": {
@@ -7132,6 +7151,9 @@
           {
             "$ref": "#/components/schemas/Event.tui.toast.show"
           },
+          {
+            "$ref": "#/components/schemas/Event.mcp.tools.changed"
+          },
           {
             "$ref": "#/components/schemas/Event.command.executed"
           },