ZenTao MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ZenTao MCP Server
让 AI 客户端(Claude / Cursor / WorkBuddy 等)通过 MCP 读写禅道的项目、任务、Bug 和工时。
传输:stdio|API:禅道 API 2.0(可回落 v1)|认证:账号密码自动换 Token,401 自动重换
16 个工具:通用层 3 个由官方
zentao-api@0.9.3注册表驱动(43 模块 × 365 动作,按实例版本自动过滤);手写 13 个补官方给不了的实例能力
安装
在自己的电脑上运行(不用 clone 仓库、不用预装依赖):
npx -y @michael_py001/zendao-mcp init交互式填站点地址 / 账号 / 密码,自动检测本机 agent 并写入配置,形如:
{
"mcpServers": {
"zentao-cli": {
"command": "npx",
"args": ["-y", "@michael_py001/zendao-mcp", "mcp"],
"env": {
"ZENTAO_URL": "http://zen.example.com/zentaomax",
"ZENTAO_ACCOUNT": "your-account",
"ZENTAO_PASSWORD": "your-password"
}
}
}
}⚠️ 凭证明文写进 agent 配置,别把含密码的配置提交到 git。安装器会另存一份到 ~/.zendao-mcp/.env(权限 600)供下次复用;写配置前自动备份、原子替换,JSONC 注释原样保留。
自动写入配置(25 个):WorkBuddy、Claude Code、Claude Desktop、Cursor、Codex、OpenCode、Gemini CLI、VS Code、Windsurf、Cline、Roo Code、Kilo Code、Zed、GitHub Copilot CLI、Kiro、Continue、Qwen Code、Antigravity、Trae、CodeBuddy、Droid、Augment、Qoder、Devin、Amp
另支持 57 个手工配置:
-a <id>选中后打印可复制的命令,不猜路径写文件;--list-agents看全部 ID
npx -y @michael_py001/zendao-mcp init --dry-run # 只看计划
npx -y @michael_py001/zendao-mcp init -a cursor -y # 非交互
npx -y @michael_py001/zendao-mcp doctor # 检查安装状态启动命令是 npx -y @michael_py001/zendao-mcp mcp(serve 兼容)。WorkBuddy 需在连接器中心点「信任」。从 1.1.x 升级:重跑 init 写新条目,删掉旧的 zendao 条目。
Related MCP server: @maxenlin/mcp-zentao-11-3
从源码运行
Node.js ≥ 18:npm install && npm run build,复制 .env.example 为 .env 填凭证,npm run verify 自检。
Skill(随 init 自动安装)
MCP 工具连上后 agent 能自动发现工具,但工作流和铁律(填日志前出清单确认、dryRun 不是确认、实例踩坑)需要一份 Skill 才能可靠传递。
init 在写 MCP 配置的同时,把 Skill 自动装到选中 agent 的 skills 目录,无需手动操作。已存在则跳过、不覆盖你改过的内容;--dry-run 只打印计划不写文件。结果里会单列 Skill: 段,显示每个 agent 的安装路径。
自动安装的 agent(有公开可靠的 skills 路径):Claude Code、Cursor、Codex、OpenCode、Gemini CLI、VS Code / Copilot、Antigravity、Cherry Studio、WorkBuddy。其余只提供手工配置的 agent 不会被装 Skill。
手工补装(上面名单之外的 agent,或想覆盖已装的):
# 从 npm 包解出(在任意空目录执行)
npm pack @michael_py001/zendao-mcp
tar -xzf michael_py001-zendao-mcp-1.3.1.tgz # Windows 自带 tar 亦可
# 把 package/skills/zendao-mcp/ 整个目录复制到该 agent 的 skills 目录下
# clone 了仓库时,直接复制仓库里的 skills/zendao-mcp/ 即可常见 skills 目录:Claude Code ~/.claude/skills/、Cursor ~/.cursor/skills/、Codex ~/.agents/skills/、OpenCode ~/.config/opencode/skills/、Gemini CLI ~/.gemini/skills/、WorkBuddy ~/.workbuddy/skills/(项目级用工作区 .workbuddy/skills/)。
装好后 agent 会在相关任务(操作禅道数据、查我的待办、填工时、读附件)时自动加载它。
能做什么
通用层(3 个):zendao_modules 看有哪些动作 → zendao_help { module, action } 查参数 → zendao_call { module, action, params } 执行。覆盖官方全部 43 模块 / 365 动作,按实例版本自动过滤,不需要编译期适配。
手写层(13 个):
场景 | 工具 |
Bug |
|
我的地盘 |
|
任务 / 人员 |
|
附件 / 链接 |
|
工时写入 |
|
⚠️ 写操作:zendao_call(写类动作)、zendao_batch_create_tasks、zendao_fill_efforts、zendao_delete_effort 会真往禅道写数据;其余只读。填日志默认只预览,dryRun: false 才真写。
禅道有两条分层线:任务挂「执行」下(要 executionID),Bug 挂「产品」下(要 productID);没有全局任务列表,全库 Bug 靠逐产品合并。详见 MCP-SETUP.md。
多站点 / 多版本
改 ZENTAO_BASE_URL 即可换站点,同一份构建通用;版本适配在运行时按官方注册表的 minVersion 判定,不满足会给人话提示。凭证三源优先级:账号密码 → ZENTAO_TOKEN → 官方 CLI 登录态(后者只有 Token、有寿命,不宜长期无人值守)。全部变量见 .env.example。
版本更新
版本 | 更新内容 |
1.3.2 |
|
1.3.1 | 随包附送 |
1.3.0 | 升级 |
1.2.0 | 配置形态改为 |
1.1.0 | 安装器支持 82 个 agent(25 个自动写入 + 57 个手工指引),写配置时保留 JSONC 注释与尾随逗号 |
1.0.0 | 首次发布: |
文档
MCP-SETUP.md — 接入配置、认证、参数、典型坑与实例行为
MCP_TESTING_GUIDE.md — 验证与测试
docs/official-module-parity.md — 官方模块 / 动作对照表
docs/instance-compatibility-matrix.md — 实例兼容性矩阵
skills/zendao-mcp/SKILL.md — Agent 使用指南(工具选择、写操作铁律、实例踩坑),随包分发,可复制到 agent 的 skills 目录
安全与许可
不要提交 .env(已在 .gitignore)。许可:MIT。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Run your Zenning AI employees and act across 2,000+ connected apps from any MCP client.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables query and management of Zentao bugs, tasks, projects, and iterations directly from MCP-compatible IDEs like Cursor or Claude Desktop.-
- AlicenseDqualityCmaintenanceEnables AI-powered interaction with ZenTao 11.3 legacy systems, supporting task, bug, requirement, and test case management via MCP protocol.4831 npm5MIT
- AlicenseDqualityDmaintenanceAn MCP server that enables reading and managing Zentao tasks, bugs, requirements, test cases, and test suites via the ZenTao 11.3 Legacy Session API. It integrates with MCP clients like Codex, Claude Desktop, and Cursor.487 npmMIT
- FlicenseAqualityDmaintenanceExposes Zentao REST API as MCP tools for listing/searching bugs, reading details with screenshots, and resolving bugs after explicit confirmation. Includes a setup wizard to configure Codex, Claude, Cursor and other clients.5-