From 334152417b50ca3b837d04ecdf8be9bda7c79e23 Mon Sep 17 00:00:00 2001 From: TaskPool Date: Mon, 27 Jul 2026 02:25:48 +0800 Subject: [PATCH] feat(ui): show both stdio and HTTP mode MCP config in settings --- web/src/pages/Settings.tsx | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index 020f7c4..e997a71 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -290,24 +290,45 @@ export default function Settings() {
-
MCP Server(Hermes / OpenClaw)
+
MCP Server(AI Agent 接入)

- OpenAPI 是 REST 接口;AI Agent 请使用 taskpool mcp 作为 MCP - Server 完整接管任务/脚本/日志。 + OpenAPI 是 REST 接口;AI Agent 请使用 MCP Server 完整接管任务/脚本/日志。支持两种模式:

-
{`{
+              
+
+
stdio 模式
+

本地 Agent 使用,需要安装 taskpool 二进制(Claude Desktop / Cursor)

+
{`{
   "mcpServers": {
     "taskpool": {
       "command": "taskpool",
       "args": ["mcp"],
       "env": {
         "TASKPOOL_URL": "${window.location.origin}",
-        "TASKPOOL_TOKEN": "${siteForm.openapi_token || '在设置页生成 OpenAPI Token'}"
+        "TASKPOOL_TOKEN": "${siteForm.openapi_token || '在设置页生成 Token'}"
       }
     }
   }
 }`}
-

详细说明见仓库 docs/guide/mcp.md 与 skills/taskpool/SKILL.md

+
+
+
HTTP 模式
+

远程 Agent 使用,通过 URL 访问(Hermes / OpenClaw)

+
1. 启动 MCP HTTP 服务:
+
{`TASKPOOL_URL=${window.location.origin} \\
+TASKPOOL_TOKEN=${siteForm.openapi_token || '你的Token'} \\
+taskpool mcp --http :8053`}
+
2. Agent 配置:
+
{`{
+  "mcpServers": {
+    "taskpool": {
+      "url": "http://你的服务器:8053/mcp"
+    }
+  }
+}`}
+
+
+

详细说明见仓库 docs/guide/mcp.md 与 skills/taskpool/SKILL.md

日志保留

设置各类日志的保留天数和最大条数限制,超出后自动清理最旧记录