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-server-mcp

v1.0.0

Published

ZenTao Bug MCP server — manage bug lifecycle (list/create/resolve/close/activate/assign) via AI

Readme

zentao-bug-server-mcp

禅道 Bug MCP 服务器 — 让 AI 编程助手直接管理禅道 Bug 全生命周期(查看/创建/解决/关闭/激活/指派)。

English documentation: README.en.md

安装

npx -y zentao-bug-server-mcp

前置条件

  1. 可访问的禅道实例(支持 REST API /api.php/v1,禅道 15.x+)
  2. 具备 Bug 读写权限的账号

环境变量

| 变量 | 必填 | 说明 | |------|------|------| | ZENTAO_URL | 是 | 禅道地址,如 http://zentao.example.com(兼容 ZENTAO_BASE_URL) | | ZENTAO_ACCOUNT | 二选一 | 登录账号(与密码配合;Token 过期时自动重登) | | ZENTAO_PASSWORD | 二选一 | 登录密码 | | ZENTAO_TOKEN | 二选一 | 已有 Token;未提供时用账号密码自动登录获取 |

配置

Cursor

在 ~/.cursor/mcp.json 中添加:

{
  "mcpServers": {
    "zentao-bug": {
      "command": "npx",
      "args": ["-y", "zentao-bug-server-mcp"],
      "env": {
        "ZENTAO_URL": "http://your-zentao.example.com",
        "ZENTAO_ACCOUNT": "your-account",
        "ZENTAO_PASSWORD": "your-password"
      },
      "description": "禅道 Bug 管理(9 tools)"
    }
  }
}

Claude Code

claude mcp add --transport stdio --scope user zentao-bug \
  --env ZENTAO_URL=http://your-zentao.example.com \
  --env ZENTAO_ACCOUNT=your-account \
  --env ZENTAO_PASSWORD=your-password \
  -- npx -y zentao-bug-server-mcp

可用工具

| 工具 | 说明 | |------|------| | zentao_list_products | 列出所有产品 | | zentao_list_bugs | 查询 Bug 列表(支持过滤/翻页) | | zentao_get_bug | 获取 Bug 详情 | | zentao_create_bug | 创建 Bug | | zentao_resolve_bug | 解决 Bug(active→resolved) | | zentao_close_bug | 关闭 Bug(resolved→closed) | | zentao_activate_bug | 激活 Bug(重新打开) | | zentao_assign_bug | 指派 Bug | | zentao_delete_bug | 删除 Bug(危险操作) |

状态流转

active → resolved → closed
   ↑                    |
   +---- activate <-----+

不能从 active 直接 close,必须先 resolve。

常用字段

| 字段 | 值 | |------|-----| | severity | 1=致命, 2=严重, 3=一般, 4=轻微 | | pri | 1=最高, 2=较高, 3=中, 4=低 | | type | codeerror / ui / compatibility / security / performance / other | | resolution | fixed / bydesign / duplicate / notrepro / willnotfix / postponed |

本地开发

cd zentao-bug-server-mcp
npm install
# Windows PowerShell
$env:ZENTAO_URL='http://your-zentao.example.com'
$env:ZENTAO_ACCOUNT='your-account'
$env:ZENTAO_PASSWORD='your-password'
node index.js

测试

# 仅协议测试(dummy 凭据)
npm test

# 含真实 API
$env:ZENTAO_URL='...'
$env:ZENTAO_ACCOUNT='...'
$env:ZENTAO_PASSWORD='...'
npm test

License

MIT