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:
Restart Cursor IDE
Other MCP Clients (Claude Desktop, etc.)
For clients using TOML configuration (e.g., Claude Desktop), add to your MCP config file:
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:
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_bugs_stats- Get bug statistics across productszentao_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 me bugs"
"What's the bug statistics?"
"Show my bugs"
"List bugs assigned to me"
"View bugs in product 2"
Chinese (中文):
"看bug" / "查看bug" / "显示bug"
"产品1的bug列表"
"bug统计"
"显示所有产品"
"查看产品2的问题"
"我的bug"
"分配给我的bug"
The AI will automatically:
Use
zentao_products_listto get product IDs when neededUse
zentao_bugs_listwhen you ask to see bugsUse
zentao_bugs_statswhen you ask for statistics or overviewUse
zentao_bugs_minewhen you ask for your own bugs
Tool Parameters
zentao_products_list:
zentao_bugs_list:
zentao_bugs_stats:
zentao_bugs_mine:
Local Development
Security
Do not commit credentials. Prefer environment variables in local runs.