@leeguoo/zentao-mcp
v0.4.1
Published
MCP server for ZenTao RESTful APIs
Downloads
729
Maintainers
Readme
zentao-mcp
MCP server for ZenTao RESTful APIs (products + bugs).
Quick Start
Cursor IDE
- Open Cursor Settings (⌘, on Mac or Ctrl+, on Windows/Linux)
- Navigate to Features → Model Context Protocol
- Click Edit Config to open
~/.cursor/mcp.json(or create it) - Add the following configuration:
{
"mcpServers": {
"zentao-mcp": {
"command": "npx",
"args": [
"-y",
"@leeguoo/zentao-mcp",
"--zentao-url=https://zentao.example.com/zentao",
"--zentao-account=leo",
"--zentao-password=***",
"--stdio"
]
}
}
}- Restart Cursor IDE
Other MCP Clients (Claude Desktop, etc.)
For clients using TOML configuration (e.g., Claude Desktop), add to your MCP config file:
[mcp_servers."zentao-mcp"]
command = "npx"
args = [
"-y",
"@leeguoo/zentao-mcp",
"--zentao-url=https://zentao.example.com/zentao",
"--zentao-account=leo",
"--zentao-password=***",
"--stdio"
]Config file locations:
- Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.toml(Mac) or%APPDATA%\Claude\claude_desktop_config.toml(Windows) - Cursor:
~/.cursor/mcp.json(JSON format)
Configuration
Required Parameters
You can configure the server using CLI arguments or environment variables:
CLI Arguments:
--zentao-url(e.g.https://zentao.example.com/zentao)--zentao-account--zentao-password
Environment Variables:
ZENTAO_URL(e.g.https://zentao.example.com/zentao)ZENTAO_ACCOUNTZENTAO_PASSWORD
Using Environment Variables in Cursor
If you prefer to use environment variables instead of CLI args, you can configure them in Cursor:
{
"mcpServers": {
"zentao-mcp": {
"command": "npx",
"args": ["-y", "@leeguoo/zentao-mcp", "--stdio"],
"env": {
"ZENTAO_URL": "https://zentao.example.com/zentao",
"ZENTAO_ACCOUNT": "leo",
"ZENTAO_PASSWORD": "***"
}
}
}
}Tip: ZENTAO_URL should include the ZenTao base path (often /zentao).
Tools
The MCP server provides four tools that can be triggered by natural language in Cursor:
zentao_products_list- List all productszentao_bugs_list- List bugs for a specific productzentao_bug_get- Get bug details by IDzentao_bugs_mine- List my bugs by assignment or creator (status filter supported)
Usage Examples
After configuring the MCP server in Cursor, you can use natural language to interact with ZenTao:
English:
- "Show me all products"
- "List bugs for product 1"
- "Show bug 123"
- "Show me bugs"
- "Show my bugs"
- "List bugs assigned to me"
- "View bugs in product 2"
Chinese (中文):
- "看bug" / "查看bug" / "显示bug"
- "产品1的bug列表"
- "查看bug 123"
- "显示所有产品"
- "查看产品2的问题"
- "我的bug"
- "分配给我的bug"
The AI will automatically:
- Use
zentao_products_listto get product IDs when needed - Use
zentao_bugs_listwhen you ask to see bugs - Use
zentao_bug_getwhen you ask for bug details - Use
zentao_bugs_minewhen you ask for your own bugs
Tool Parameters
zentao_products_list:
{
"page": 1,
"limit": 1000
}zentao_bugs_list:
{
"product": 1,
"page": 1,
"limit": 20
}zentao_bug_get:
{
"id": 123
}zentao_bugs_mine:
{
"status": "active",
"scope": "assigned",
"includeZero": false,
"includeDetails": true,
"maxItems": 50
}Local Development
pnpm install
ZENTAO_URL=https://zentao.example.com/zentao \\
ZENTAO_ACCOUNT=leo \\
ZENTAO_PASSWORD=*** \\
pnpm startSecurity
Do not commit credentials. Prefer environment variables in local runs.
