diff --git a/packages/mcp/src/generated/catalog.json b/packages/mcp/src/generated/catalog.json index bcd33830..5d55e7c8 100644 --- a/packages/mcp/src/generated/catalog.json +++ b/packages/mcp/src/generated/catalog.json @@ -62,6 +62,7 @@ "name": "_get_group_notice", "aliases": [], "summary": "获取群公告", + "returns": "普通公告与新成员公告的合并数组;send_to_new_members 标识后者", "readOnly": true, "params": [ { @@ -169,7 +170,7 @@ { "name": "_send_group_notice", "aliases": [], - "summary": "发送群公告", + "summary": "发送群公告(支持置顶、弹窗、新成员、群昵称引导与确认)", "readOnly": false, "params": [ { @@ -190,7 +191,8 @@ "schema": { "type": "string", "minLength": 1 - } + }, + "desc": "公告正文" }, { "name": "image", @@ -200,28 +202,80 @@ "type": "string" }, "default": "", - "role": "image" + "role": "image", + "desc": "可选公告图片(本地路径、URL 或 base64)" }, { "name": "pinned", - "type": "raw", + "type": "int", "required": false, - "schema": {} + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 0, + "desc": "是否置顶:1=置顶,0=不置顶" }, { "name": "type", - "type": "raw", + "type": "int", "required": false, - "schema": {} + "schema": { + "type": "integer" + }, + "desc": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members" + }, + { + "name": "send_to_new_members", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "desc": "是否在成员新加入群时发送(与 type=20 等价)" + }, + { + "name": "is_show_edit_card", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 1, + "desc": "是否引导群成员修改群昵称:1=是,0=否" + }, + { + "name": "tip_window_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 1, + "desc": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)" }, { "name": "confirm_required", - "type": "raw", + "type": "int", "required": false, - "schema": {} + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 1, + "desc": "是否需要群成员确认收到:1=是,0=否" } ], - "invariants": [], + "invariants": [ + "type must be 1 (regular) or 20 (new members)", + "send_to_new_members conflicts with type" + ], "inputSchema": { "type": "object", "properties": { @@ -233,16 +287,51 @@ }, "content": { "type": "string", - "minLength": 1 + "minLength": 1, + "description": "公告正文" }, "image": { "type": "string", + "description": "可选公告图片(本地路径、URL 或 base64)", "default": "", "x-role": "image" }, - "pinned": {}, - "type": {}, - "confirm_required": {} + "pinned": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "是否置顶:1=置顶,0=不置顶", + "default": 0 + }, + "type": { + "type": "integer", + "description": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members" + }, + "send_to_new_members": { + "type": "boolean", + "description": "是否在成员新加入群时发送(与 type=20 等价)" + }, + "is_show_edit_card": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "是否引导群成员修改群昵称:1=是,0=否", + "default": 1 + }, + "tip_window_type": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)", + "default": 1 + }, + "confirm_required": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "是否需要群成员确认收到:1=是,0=否", + "default": 1 + } }, "required": [ "group_id", diff --git a/packages/mcp/src/generated/catalog.ts b/packages/mcp/src/generated/catalog.ts index a73285aa..daa649f0 100644 --- a/packages/mcp/src/generated/catalog.ts +++ b/packages/mcp/src/generated/catalog.ts @@ -65,6 +65,7 @@ export const ACTIONS: CatalogAction[] = [ "name": "_get_group_notice", "aliases": [], "summary": "获取群公告", + "returns": "普通公告与新成员公告的合并数组;send_to_new_members 标识后者", "readOnly": true, "params": [ { @@ -172,7 +173,7 @@ export const ACTIONS: CatalogAction[] = [ { "name": "_send_group_notice", "aliases": [], - "summary": "发送群公告", + "summary": "发送群公告(支持置顶、弹窗、新成员、群昵称引导与确认)", "readOnly": false, "params": [ { @@ -193,7 +194,8 @@ export const ACTIONS: CatalogAction[] = [ "schema": { "type": "string", "minLength": 1 - } + }, + "desc": "公告正文" }, { "name": "image", @@ -203,28 +205,80 @@ export const ACTIONS: CatalogAction[] = [ "type": "string" }, "default": "", - "role": "image" + "role": "image", + "desc": "可选公告图片(本地路径、URL 或 base64)" }, { "name": "pinned", - "type": "raw", + "type": "int", "required": false, - "schema": {} + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 0, + "desc": "是否置顶:1=置顶,0=不置顶" }, { "name": "type", - "type": "raw", + "type": "int", "required": false, - "schema": {} + "schema": { + "type": "integer" + }, + "desc": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members" + }, + { + "name": "send_to_new_members", + "type": "bool", + "required": false, + "schema": { + "type": "boolean" + }, + "desc": "是否在成员新加入群时发送(与 type=20 等价)" + }, + { + "name": "is_show_edit_card", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 1, + "desc": "是否引导群成员修改群昵称:1=是,0=否" + }, + { + "name": "tip_window_type", + "type": "int", + "required": false, + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 1, + "desc": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)" }, { "name": "confirm_required", - "type": "raw", + "type": "int", "required": false, - "schema": {} + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 1 + }, + "default": 1, + "desc": "是否需要群成员确认收到:1=是,0=否" } ], - "invariants": [], + "invariants": [ + "type must be 1 (regular) or 20 (new members)", + "send_to_new_members conflicts with type" + ], "inputSchema": { "type": "object", "properties": { @@ -236,16 +290,51 @@ export const ACTIONS: CatalogAction[] = [ }, "content": { "type": "string", - "minLength": 1 + "minLength": 1, + "description": "公告正文" }, "image": { "type": "string", + "description": "可选公告图片(本地路径、URL 或 base64)", "default": "", "x-role": "image" }, - "pinned": {}, - "type": {}, - "confirm_required": {} + "pinned": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "是否置顶:1=置顶,0=不置顶", + "default": 0 + }, + "type": { + "type": "integer", + "description": "发布类型:1=普通公告,20=新成员公告;建议使用 send_to_new_members" + }, + "send_to_new_members": { + "type": "boolean", + "description": "是否在成员新加入群时发送(与 type=20 等价)" + }, + "is_show_edit_card": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "是否引导群成员修改群昵称:1=是,0=否", + "default": 1 + }, + "tip_window_type": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "弹窗展示:0=开启弹窗,1=关闭弹窗(QQ 原始字段为反向语义)", + "default": 1 + }, + "confirm_required": { + "type": "integer", + "minimum": 0, + "maximum": 1, + "description": "是否需要群成员确认收到:1=是,0=否", + "default": 1 + } }, "required": [ "group_id",