feat(mcp): add official MCP Server for AI Agent integration
This commit is contained in:
@@ -283,6 +283,26 @@ export default function Settings() {
|
||||
生成 Token
|
||||
</Button>
|
||||
</div>
|
||||
<div className="rounded-md border border-[var(--border)] bg-[var(--bg-secondary)] p-3 text-xs leading-5 text-[var(--text-secondary)]">
|
||||
<div className="mb-1 font-medium text-[var(--text-primary)]">MCP Server(Hermes / OpenClaw)</div>
|
||||
<p className="mb-2">
|
||||
OpenAPI 是 REST 接口;AI Agent 请使用 <code className="rounded bg-[var(--bg-tertiary)] px-1">taskpool mcp</code> 作为 MCP
|
||||
Server 完整接管任务/脚本/日志。
|
||||
</p>
|
||||
<pre className="overflow-x-auto whitespace-pre-wrap rounded-md border border-[var(--border)] bg-[var(--bg-primary)] p-2 font-mono text-[11px] text-[var(--text-primary)]">{`{
|
||||
"mcpServers": {
|
||||
"taskpool": {
|
||||
"command": "taskpool",
|
||||
"args": ["mcp"],
|
||||
"env": {
|
||||
"TASKPOOL_URL": "${window.location.origin}",
|
||||
"TASKPOOL_TOKEN": "${siteForm.openapi_token || '在设置页生成 OpenAPI Token'}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}`}</pre>
|
||||
<p className="mt-2 text-[var(--text-muted)]">详细说明见仓库 docs/guide/mcp.md 与 skills/taskpool/SKILL.md</p>
|
||||
</div>
|
||||
<h3 className="pt-2 text-sm font-medium text-[var(--text-secondary)]">日志保留</h3>
|
||||
<div className="grid gap-3 md:grid-cols-2">
|
||||
<Input placeholder="系统通知保留天" value={siteForm.system_notice_days} onChange={(e) => setSiteForm((f) => ({ ...f, system_notice_days: e.target.value }))} />
|
||||
|
||||
Reference in New Issue
Block a user