feat: add MCP tool and web UI management

This commit is contained in:
lpf
2026-03-07 22:09:52 +08:00
parent cff379809c
commit fb5a228e7d
16 changed files with 1836 additions and 4 deletions

View File

@@ -200,6 +200,16 @@ user -> main -> worker -> main -> user
完整示例见 [config.example.json](/Users/lpf/Desktop/project/clawgo/config.example.json)。
## MCP 服务支持
ClawGo 现在支持通过 `tools.mcp` 接入 `stdio` 型 MCP server。
- 先在 `config.json -> tools.mcp.servers` 里声明 server
- 当前支持 `list_servers``list_tools``call_tool``list_resources``read_resource``list_prompts``get_prompt`
- 启动时会自动发现远端 MCP tools并注册为本地工具命名格式为 `mcp__<server>__<tool>`
示例配置可直接参考 [config.example.json](/Users/lpf/Desktop/project/clawgo/config.example.json) 中的 `tools.mcp` 段落。
## Prompt 文件约定
推荐把 agent prompt 独立为文件: