@sanmu2018/zentao-mcp
v0.5.18
Published
ZenTao CLI for products + bugs
Downloads
592
Maintainers
Readme
zentao-mcp
ZenTao CLI for products + bugs.
Installation
Global install (recommended):
pnpm i -g @sanmu2018/zentao-mcpIf you don't have pnpm:
npm i -g pnpm
pnpm i -g @sanmu2018/zentao-mcpOr use without installing:
npx -y @sanmu2018/zentao-mcp --helpThis installs the zentao command (and keeps zentao-mcp as a compatibility alias).
Configuration
Required Parameters
You can configure the CLI using CLI arguments or environment variables:
CLI arguments:
--zentao-url(e.g.https://zentao.example.com/zentao)--zentao-account--zentao-password
Environment variables:
ZENTAO_URLZENTAO_ACCOUNTZENTAO_PASSWORD
Tip: ZENTAO_URL should include the ZenTao base path (often /zentao).
Example:
https://zentao.example.com/zentao(common)
If you see 404 Not Found when logging in, your base path is likely missing /zentao.
Commands
Most commands support --json for raw output.
Products
List all products:
zentao products listExecutions (Sprints)
List executions:
zentao executions list [--project <id>] [--status all|undone|done|closed]Stories
List stories for an execution:
zentao stories list --execution <id>Tasks
List tasks for an execution:
zentao tasks list --execution <id>Create a task:
zentao tasks create --execution <id> --name "Task name" [--assignedTo account] [--estimate 2] [--desc "Details"] [--estStarted YYYY-MM-DD] [--deadline YYYY-MM-DD]Update a task:
zentao tasks update --id <id> [--name "New task name"] [--assignedTo account] [--status doing] [--estimate 3] [--left 1] [--deadline YYYY-MM-DD]Get task details:
zentao tasks get --id <id>List my tasks:
zentao tasks mine [--status <status>] [--account <account>] [--include-details]Manage tasks:
# Start a task
zentao tasks start --id <id> [--consumed <hours>] [--left <hours>] [--comment <text>]
# Finish a task
zentao tasks finish --id <id> [--currentConsumed <hours>] [--comment <text>]Bugs
List bugs for a product:
zentao bugs list --product <id>Get bug details:
zentao bug get --id <id>List my bugs:
# Basic summary
zentao bugs mine
# Detailed list with status filtering
zentao bugs mine --status active --include-detailsSupported flags for bugs mine:
--scope:assigned,opened,resolved,all--status:active,resolved,closed,all--include-details: Show full bug list table
System & Auth
Check current user:
zentao whoamiSelf-test connection:
zentao self-testLogin
Save credentials locally (stored as plaintext TOML under your user config directory):
zentao login --zentao-url=https://zentao.example.com/zentao --zentao-account=leo --zentao-password=***Config file:
~/.config/zentao/config.toml(or$XDG_CONFIG_HOME/zentao/config.toml)
Then commands can omit auth flags:
zentao whoami
zentao products listTroubleshooting login:
- If
Token response parse failed: <html>...404 Not Found..., try:https://your-host/zentaoinstead ofhttps://your-host/
Release (maintainers)
GitHub Actions (recommended)
This repo supports npm Trusted Publisher (OIDC) via GitHub Actions.
- Create a tag matching
package.jsonversion:
git tag v0.5.1
git push origin v0.5.1- The workflow
.github/workflows/publish-npm.ymlwill run tests and publish to npm.
In npm Trusted Publisher settings, set the workflow filename to publish-npm.yml.
Local release (fallback)
Requires git, npm, and gh.
zentao release patch --dry-runIf you are using GitHub Actions publishing, prefer tagging + pushing, or run local release with:
zentao release patch --skip-publishLocal Development
pnpm install
pnpm testSecurity
Do not commit credentials. Prefer environment variables in local runs.
Skill
For OpenClaw (AgentSkills-compatible), see skills/zentao/SKILL.md.
