Expand KOC LOOP MCP operations

This commit is contained in:
巫凤萍
2026-08-07 14:12:52 +08:00
parent 1a9a113229
commit 5670a7939b
15 changed files with 2426 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ MCP 使用独立的 `KOC_MCP_API_KEY` 鉴权,请通过请求头发送:
Authorization: Bearer <KOC_MCP_API_KEY>
```
首期只开放 `create_distribution_task`用于读取飞书表格并创建分发任务。参数如下:
创建分发任务使用 `create_distribution_task`,参数如下:
- `feishu_url`:飞书 Wiki 或电子表格链接;多工作表时必须带目标 `sheet` 参数
- `task_name`:任务名称
@@ -73,6 +73,15 @@ Authorization: Bearer <KOC_MCP_API_KEY>
成功后返回任务 ID、笔记数量和 KOC 领取链接。完全相同的任务参数重复调用时,返回已经存在的任务,避免 Agent 重试产生重复任务。
同时开放以下运营工具:
- 任务:`task_list``task_get`
- 数据回收:`recovery_list``recovery_export`
- 数据采集:`collection_plan_set``collection_run_due``collection_collect_now``collection_retry_failed`
- KOC 资源:`resource_search``resource_get``resource_backfill_profile``resource_export`
`recovery_export``resource_export` 返回 15 分钟有效的安全下载链接。链接不包含 MCP 密钥;任务数据导出会继续把笔记原图、发布截图和创作者截图直接嵌入 Excel。
在支持远程 MCP 的 Agent 中添加:
```json