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

zentao-bug-mcp

v0.2.0

Published

ZenTao bug MCP server: paste a bug link, get the title/steps and downloaded screenshots so AI coding agents can fix the bug. 禅道 bug 抓取 MCP,丢链接自动取描述和截图。

Readme

zentao-bug-mcp

禅道(ZenTao)bug 抓取 MCP Server:在 AI 编码助手(Qoder / Cursor / Claude Code 等)里直接丢一个禅道 bug 链接,自动登录禅道、获取 bug 完整标题与重现步骤、把内嵌截图和附件下载到本地,AI 直接看图修 bug。不再需要手动打开网页复制描述、下载截图。

  • 适配禅道开源版 18+(含 22.x),走官方 REST API v1,无需改禅道服务端
  • 只读工具,不会修改禅道上的任何数据
  • 账号密码仅存在于你本机的 MCP 客户端配置中,不落盘、不上传

快速开始

在 MCP 客户端(Qoder 的 MCP 设置 / Cursor 的 .cursor/mcp.json)中添加:

{
  "mcpServers": {
    "zentao": {
      "command": "npx",
      "args": ["-y", "zentao-bug-mcp"],
      "env": {
        "ZENTAO_BASE_URL": "http://your-zentao-host/zentao",
        "ZENTAO_ACCOUNT": "你的禅道账号",
        "ZENTAO_PASSWORD": "你的禅道密码"
      }
    }
  }
}

ZENTAO_BASE_URL 是浏览器访问禅道的根地址(含子路径,如 /zentao),不要带 index.php 或 api.php。

然后在对话里直接说:

帮我修复这个 bug:http://your-zentao-host/zentao/bug-view-12345.html

AI 会调用 zentao_get_bug 拿到标题、步骤和截图本地路径,读图后定位并修复代码。

工具

zentao_get_bug

| 参数 | 类型 | 说明 | |---|---|---| | bug | string,必填 | bug 链接(bug-view-{id}.html 或 index.php?m=bug&f=view&bugID={id})或纯数字 ID | | downloadAttachments | boolean,默认 true | 是否下载附件列表(内嵌截图始终下载) | | includeComments | boolean,默认 true | 是否输出评论与动态时间线(含评论内嵌图片下载) |

返回 Markdown 报告:完整标题、状态/严重程度/优先级/指派人、重现步骤纯文本(图片位置替换为本地路径)、评论与动态时间线(操作人/时间/字段变更/评论及截图——bug 被激活后补充的遗留问题常在这里)、附件清单、本地文件绝对路径列表。图片下载到系统临时目录 zentao-mcp/bug-{id}/,AI 用自身的读文件工具即可查看截图。

配套 Skill

仓库内置 skills/fix-zentao-bug,把修 bug 的最佳实践固化成工作流:取 bug → 逐张查看截图 → 完整保留标题复述 → 最小改动修复 → 验证 → 统一格式汇报,并约束全程只读禅道。

先配好上面的 MCP,然后一行安装(skills CLI,自动识别 Claude Code / Cursor / Codex 等 agent):

npx skills add ikonan/zentao-bug-mcp

或手动复制到 Qoder:

git clone https://github.com/ikonan/zentao-bug-mcp.git
cp -r zentao-bug-mcp/skills/fix-zentao-bug ~/.qoder-cn/skills/

重启会话后直接丢禅道 bug 链接即可自动触发,也可用 /fix-zentao-bug <链接> 手动调用。

环境变量

| 变量 | 必填 | 说明 | |---|---|---| | ZENTAO_BASE_URL | ✅ | 禅道根地址,如 http://192.168.1.100/zentao | | ZENTAO_ACCOUNT | ✅ | 禅道登录账号 | | ZENTAO_PASSWORD | ✅ | 禅道登录密码 | | ZENTAO_DOWNLOAD_DIR | | 图片/附件下载目录,默认系统临时目录下 zentao-mcp/ | | ZENTAO_INSECURE_TLS | | 设为 1 跳过 HTTPS 证书校验(内网自签名证书场景) |

排错

| 报错 | 原因与处理 | |---|---| | 禅道登录失败(账号或密码错误?) | 检查 env 中的账号密码,确认能登录禅道网页版 | | REST API v1 不可用 | ZENTAO_BASE_URL 不对(少了子路径?)或禅道未开启 RESTful API(后台 → 二次开发 → 应用) | | 无法连接禅道服务器 | 确认已连公司内网 / VPN | | HTTPS 证书校验失败 | 内网自签名证书,设置 ZENTAO_INSECURE_TLS: "1" | | 链接主机与 ZENTAO_BASE_URL 不一致 | 安全限制:只向配置的禅道主机发送凭据,换实例请改 env | | 个别图片下载失败 | 报告中会标注原因,不影响其余内容;常见于文件已被删除 |

本地开发

npm install
npm run build   # tsc → dist/
npm test        # 26 个用例,含本地 mock 禅道的端到端测试

本地调试时客户端配置可改为 "command": "node", "args": ["/绝对路径/zentao-mcp/dist/index.js"]。

License

MIT