Alibaba Cloud Yunxiao DevOps command-line tool. Records the non-obvious pitfalls and required field rules of the Yunxiao API, helping you succeed in a single call.
Prerequisites
| Tool | Type | Required | Install |
|---|---|---|---|
| yunxiao MCP | mcp | No | Configure in Claude Code MCP settings (preferred over CLI) |
| aliyun CLI | cli | No | brew install aliyun-cli then aliyun configure — see openapi.md for full setup |
| git | cli | Yes | brew install git or git-scm.com |
| jq | cli | No | brew install jq (for JSON parsing in CLI mode) |
At least one of yunxiao MCP or aliyun CLI is required. MCP is preferred.
Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.
When to Use
- Create/Manage MR: Create merge requests, update descriptions, and view lists on codeup.aliyun.com repositories
- Task management: Query/create/update task status, add comments
- Release management: Create Tags via the Yunxiao API
Tool selection
| Condition | Recommended method |
|---|---|
MCP service is connected (mcp__yunxiao__* tool available) |
Prefer MCP tools(including MR operations) |
| No MCP service | Use aliyun CLI |
| Operations not covered by MCP tools (update MR, edit comments, etc.) | Use aliyun CLI |
⚠️
aliyun devops ListRepositoriesis known to haveSYSTEM_UNAUTHORIZED_ERRORissues; prefer using MCP tools to get the repository ID.
Common operation mapping
| Task | MCP tool | CLI alternative |
|---|---|---|
| Query repository | mcp__yunxiao__list_repositories |
aliyun devops ListRepositories(may report a permission error) |
| Create MR | mcp__yunxiao__create_change_request |
aliyun devops CreateMergeRequest |
| View MR | mcp__yunxiao__get_change_request |
aliyun devops GetMergeRequest |
| Update MR | — | aliyun devops UpdateMergeRequest |
| Query task | mcp__yunxiao__search_workitems |
aliyun devops ListWorkitems |
| Get task details | mcp__yunxiao__get_work_item |
— |
| Update task status | mcp__yunxiao__update_work_item |
REST API (see openapi.md) |
| Query workflow | mcp__yunxiao__get_work_item_workflow |
aliyun devops ListWorkItemWorkFlowStatus |
| Add comment | mcp__yunxiao__create_work_item_comment |
REST API (see openapi.md) |
| Edit comment | — | aliyun devops UpdateWorkitemComment |
| Query field configuration | mcp__yunxiao__get_work_item_type_field_config |
aliyun devops ListWorkItemAllFields |
| Create Tag | — | aliyun devops CreateTag |
Top 5 pitfalls
The most commonly hit pitfalls; for complete rules see cheatsheet.md:
- The repository ID field is
Id(uppercase I) —jqUsing.idwill returnnull - Creating an MR requires providing
sourceProjectId、targetProjectId、createFrom: "WEB" - Updating task status must use the REST API —
aliyun devops POST /organization/.../workitems/updateWorkitemField updateWorkitemPropertyRequestmust be an array[{...}], and the field name usesfieldIdentifier/fieldValue- Before creating a task, you must query the required fields — different projects have different custom required fields
Detailed guide
- Required reading for AI assistants: cheatsheet.md — 13 golden rules + complete error quick-reference table
- Complete API reference: openapi.md — configuration guide, templates for all API operations, complete MR/task/release workflows