feat(mcp): 增加 mode=skill,把 MCP 工具以技能形式暴露
mode 三态改为 advertise / skill / disable: - skill 不下发到 tools 数组,由 skill 工具的 list/get/run 暴露 - get 返回 MCP 原始的 description + input_schema;run 直接转发,不做路径改写与 required 预检 - 移除 mode: silent(不设专门迁移文案)与 front matter mcp_tool 包装 - 删除 skills/image、skills/video,改由 image_task / video_task 的 mode: skill 提供 - 技能清单改用 listCallableSkills(目录 + MCP,同名时目录胜出);设置页仍只列目录 - init.sh 配了 BIGMODEL_KEY 时给 image_task / video_task 写 mode: skill - image_task / video_task 的 tool description 首行改为自解释的一句话(技能清单取首行)
This commit is contained in:
@@ -336,7 +336,7 @@ function buildServer() {
|
||||
|
||||
server.tool(
|
||||
"video_task",
|
||||
`Manages asynchronous video generation tasks.
|
||||
`AI video generation.
|
||||
|
||||
op=create Submit a new task. Returns a task_id immediately; generation runs asynchronously.
|
||||
Requires at least one of prompt or image_url.
|
||||
|
||||
Reference in New Issue
Block a user