ZenTao MCP Server
The ZenTao MCP Server provides an MCP interface to interact with a ZenTao (禅道) project management instance, enabling bug and product management through the following tools:
initZentao: Authenticate with a ZenTao instance using a base URL, account, and password or token.getProducts: Retrieve a list of all products from ZenTao.getMyBugs: Fetch bugs assigned to the current user, filterable by status (active,resolved,closed,all) and optionally by product ID.getBugDetail: Get detailed information about a specific bug by its ID.resolveBug: Mark a bug as resolved with a resolution type (fixed,notrepro,duplicate,bydesign,willnotfix,tostory,external), optional comments, and duplicate bug references.activateBug: Reopen a resolved or closed bug, with options to reassign it, specify an opened build, and add a comment.healthCheck: Verify server availability and current session status.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ZenTao MCP Servershow me my active bugs for product ID 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ZenTao MCP Server (API V1.0)
基于 TypeScript + Node.js + @modelcontextprotocol/sdk 的禅道 MCP 服务,支持:
登录初始化(
initZentao)查看产品(
getProducts)查看我的 bug(
getMyBugs)查看 bug 详情(
getBugDetail)解决 bug(
resolveBug)激活 bug(
activateBug,重新打开)
1. 环境准备
npm install
cp .env.example .env请在 .env 中配置禅道地址与鉴权信息(推荐在运行时通过 initZentao 传入账号密码,不在文件中存明文)。
Related MCP server: ZenTao MCP Server
2. 从 npm / npx 运行(其它机器推荐)
npm 包名:@wudidada/zentao-mcp-server(作用域包;可执行命令 zentao-mcp-server)。
要求:Node.js >= 20。Linux/macOS 建议安装系统 curl(默认 HTTP 后端为 curl)。
2.1 命令行试跑
npx -y @wudidada/zentao-mcp-serverHTTP 模式示例:
MCP_TRANSPORT=http npx -y @wudidada/zentao-mcp-server2.2 Cursor mcp.json(stdio + 环境变量)
在项目或用户目录下的 .cursor/mcp.json 中配置,例如:
{
"mcpServers": {
"zentao": {
"command": "npx",
"args": ["-y", "@wudidada/zentao-mcp-server"],
"env": {
"ZENTAO_BASE_URL": "http://your-host/zentao/api.php/v1",
"ZENTAO_ACCOUNT": "your_account",
"ZENTAO_PASSWORD": "your_password",
"ZENTAO_HTTP_BACKEND": "curl",
"LOG_LEVEL": "info"
}
}
}
}修改配置后请完全重启 Cursor。也可将 args 中的包名改为固定版本,例如 @wudidada/zentao-mcp-server@1.0.1。
2.3 维护者:发布到 npm
npm run build
npm test
npm publish --access public首次发布前需 npm login,并确保 package.json 中 version 未被占用。
源码仓库:https://github.com/wudidada/zentao-mcp-server
3. 启动方式
stdio(本地 IDE 首选)
npm run start:stdioHTTP/SSE(远程接入)
npm run start:http默认端口 3000,健康检查:
curl http://localhost:3000/healthz4. 构建与测试
npm run build
npm test5. MCP 工具参数说明
initZentao
baseUrl?: stringaccount: stringpassword?: stringtoken?: string
password与token二选一。
getMyBugs
status?: "active" | "resolved" | "closed" | "all"(默认active)productId?: number
getBugDetail
bugId: number
activateBug
bugId: numberassignedTo?: string(指派给,账号)openedBuild?: string | string[](影响版本,文档为数组;不传则默认["trunk"])comment?: string
resolveBug
bugId: numberresolution.resolution: "fixed" | "notrepro" | "duplicate" | "bydesign" | "willnotfix" | "tostory" | "external"resolution.resolvedBuild?: string(当解决方案为fixed时,服务端固定提交trunk,忽略该字段,避免部分禅道网页端显示异常)resolution.duplicateBug?: number(当resolution=duplicate时必填)resolution.comment?: string
6. 安全与运维基线
日志默认对
password/token/authorization做脱敏处理默认请求超时
10s查询接口(GET)支持指数退避重试
HTTP 模式提供
/healthz健康检查若配置了
ZENTAO_BASE_URL+ZENTAO_ACCOUNT+(ZENTAO_PASSWORD或ZENTAO_TOKEN),进程启动时会自动登录,无需每次先调initZentaoZENTAO_HTTP_BACKEND:axios使用 Node 内置 HTTP;curl调用系统curl。在非 Windows 上默认curl,用于规避部分禅道实例对「Node 客户端 +Token头 + GET」长时间无响应的问题
6.1 环境变量一览
变量 | 说明 |
| 禅道 API V1 根地址,如 |
| 自动登录用(密码与 token 二选一) |
|
|
7. 项目结构
src/
adapters/ # 禅道 API V1.0 适配层
schemas/ # zod 参数校验
server/ # stdio/http 双入口
services/ # 领域服务
tools/ # MCP 工具实现8. 注意事项
当前实现按禅道 API V1.0 常见 REST 路径封装(
/tokens、/bugs、/products)。解决 Bug:官方 v1 接口为
POST /bugs/{id}/resolve(不是 PUT)。若误用 PUT,可能出现 HTTP 成功但禅道未真正更新状态的情况。如果你的禅道实例路径或鉴权字段有差异,可在
src/adapters/zentaoApiV1.ts适配。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wudidada/zentao-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server