Skip to main content
Glama
README.md
# zentao-legacy-mcp

An MCP (Model Context Protocol) server for self-hosted [ZenTao](https://www.zentao.net/) (禅道) instances using the legacy API. It exposes bugs, tasks, projects and users as tools, so MCP clients such as Cursor, Claude Desktop, Qoder and others can read and update your ZenTao workspace in natural language.

## Tools

| Tool | Purpose |
| --- | --- |
| `zentao_my_bugs` | List bugs assigned to the current user |
| `zentao_bugs_by_product` | List bugs of a product |
| `zentao_bug_detail` | Get full details of a bug |
| `zentao_create_bug` | Create a bug |
| `zentao_edit_bug` | Edit a bug |
| `zentao_assign_bug` | Assign a bug to a user |
| `zentao_resolve_bug` | Resolve a bug with a resolution |
| `zentao_projects` | List projects |
| `zentao_my_projects` | List projects of the current user |
| `zentao_my_tasks` | List tasks assigned to the current user |
| `zentao_task_detail` | Get full details of a task |
| `zentao_start_task` | Start a task |
| `zentao_finish_task` | Finish a task |
| `zentao_assign_task` | Assign a task to a user |
| `zentao_users` | List ZenTao users |

## Requirements

- Node.js 18 or newer
- A ZenTao account with API access to the target instance

## Setup

```bash
git clone https://github.com/Ruandou/zentao-legacy-mcp.git
cd zentao-legacy-mcp
npm install
```

Configure credentials either with environment variables or a `.env` file next to `index.mjs`:

```bash
ZENTAO_URL=https://your-zentao-host/zentao
ZENTAO_ACCOUNT=your_account
ZENTAO_PASSWORD=your_password
```

`.env` is git-ignored. The server also reads `env` from a Cursor-style `mcp.json` entry named `zentao-legacy`.

### MCP client configuration

```json
{
  "mcpServers": {
    "zentao-legacy": {
      "command": "node",
      "args": ["/absolute/path/to/zentao-legacy-mcp/index.mjs"],
      "env": {
        "ZENTAO_URL": "https://your-zentao-host/zentao",
        "ZENTAO_ACCOUNT": "your_account",
        "ZENTAO_PASSWORD": "your_password"
      }
    }
  }
}
```

Or run it directly:

```bash
node index.mjs
```

## Security

- Credentials are read from the process environment or a local `.env` file; nothing is stored or sent anywhere except your own ZenTao instance.
- Keep `.env` out of version control. If your ZenTao is reachable from the public internet, use HTTPS and a dedicated account with the least privileges you need.

## License

MIT — see [LICENSE](LICENSE). This project is not affiliated with ZenTao or EasyCorp.

## 中文说明

禅道(ZenTao)MCP 服务,通过禅道 legacy API 暴露 Bug、任务、项目、用户等查询与操作能力,供 Cursor、Claude Desktop、Qoder 等 MCP 客户端使用。配置 `ZENTAO_URL`、`ZENTAO_ACCOUNT`、`ZENTAO_PASSWORD` 三个环境变量即可,支持读取脚本旁的 `.env` 或 `mcp.json` 中的 `env` 配置。