feat(mcp): add official MCP Server for AI Agent integration

This commit is contained in:
2026-07-26 19:30:43 +08:00
parent 7f54256ac0
commit a0a90f558c
11 changed files with 934 additions and 4 deletions
+20
View File
@@ -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 ServerHermes / 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 }))} />