zentao_config
Read and update local ZenTao autofix settings, including ZenTao connection, product-to-repository mappings, and repair policies, so agents can fix assigned defects with the right repository context.
Instructions
读取/修改本机禅道自动修复配置:禅道地址与账号、产品→代码仓库字典、修复策略。action=show 看当前配置(密码打码);action=set 改禅道连接或策略;action=add_repo 加一条「所属产品→仓库」映射;action=remove_repo 删一条;action=init 生成默认配置文件。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "zentao_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | add_repo:仓库说明(可选) | |
| action | Yes | 要做什么 | |
| branch | No | add_repo:期望分支(可选) | |
| policy | No | 策略覆盖,如 {"skipDataChanges":true,"maxBugsPerRun":5,"writeBack":false} | |
| account | No | 禅道登录账号 | |
| baseUrl | No | 禅道地址,如 https://iip.sgai.com.cn/zentao | |
| product | No | add_repo/remove_repo:禅道里的「所属产品」名(支持包含匹配) | |
| insecure | No | 内网自签证书时置 true,关闭 HTTPS 校验 | |
| password | No | 禅道登录密码(只写本机 config.json) | |
| readonly | No | true=只读校验,不写回禅道(默认 true) | |
| repoPath | No | add_repo:本地代码仓库绝对路径 | |
| testCommand | No | add_repo:修复后跑什么验证(可选,如 npm test) | |
| sessionCookie | No | 没有密码时用:浏览器 F12 → Application → Cookies 里复制 zentaosid 的值粘进来(只填值或整行 name=value; … 都行)。留空字符串清除。 |