npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@michael_py001/zendao-mcp

v1.3.4

Published

MCP 服务器,用于让 LLM 操作禅道项目管理系统的 API;自带一键安装到多种 AI agent 的 CLI

Readme

ZenTao MCP Server

让 AI 客户端(Claude / Cursor / WorkBuddy 等)通过 MCP 读写禅道的项目、任务、Bug 和工时。

如果觉得好用,欢迎去 GitHub 点个 Star,让更多人看到。

Release Node.js API License Downloads Stars

  • 传输:stdio|API:禅道 API 2.0(可回落 v1)|认证:账号密码自动换 Token,401 自动重换
  • 16 个工具:通用层 3 个由官方 [email protected] 注册表驱动(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 条目。

从源码运行

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_list_bugs(含全库合并)· zendao_get_bug · zendao_get_bug_attachments · zendao_list_my_bugs | | 我的地盘 | zendao_list_my_work(任务/需求/待办/Bug)· zendao_list_my_efforts(工时日志) | | 任务 / 人员 | zendao_get_task · zendao_list_users · zendao_batch_create_tasks | | 附件 / 链接 | zendao_read_attachment(任意对象附件)· zendao_link(生成 / 解析页面 URL) | | 工时写入 | zendao_fill_efforts · zendao_delete_effort |

⚠️ 写操作: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 | init 时自动把 Skill 装到各 agent 的 skills 目录(已存在不覆盖,--dry-run 可预览) | | 1.3.1 | 随包附送 skills/zendao-mcp/SKILL.md(Agent 工具选择、写操作铁律、实例踩坑) | | 1.3.0 | 升级 zentao-api 至 0.9.3:官方动作 229 → 365、模块 26 → 43;新增 zendao_link(页面链接生成/解析)和 zendao_read_attachment(从 URL / HTML / fileID 读取任意对象附件),工具总数 16 个 | | 1.2.0 | 配置形态改为 mcp 子命令 + 凭证明文写入各 agent 的 env;serve 保留为兼容别名 | | 1.1.0 | 安装器支持 82 个 agent(25 个自动写入 + 57 个手工指引),写配置时保留 JSONC 注释与尾随逗号 | | 1.0.0 | 首次发布:init 一键安装、mcp 启动,凭证明文写入 agent 配置 |

文档

安全与许可

不要提交 .env(已在 .gitignore)。许可:MIT。