For the full product and tool catalog (MCP tools and CLI commands by product), see references/tool-catalog.md.
2. Prerequisites
2.1 Alibaba Cloud CLI Environment Check
The Alibaba Cloud CLI (aliyun devops) is one of three invocation channels alongside MCP Server and mcporter. Full configuration guide: references/aliyun-cli-setup.md.
Not available → Skip CLI checks, proceed to 2.2 (use MCP Server or mcporter)
Available → Continue to Step 2
Step 2: Identify authentication configuration
Cloud DevOps (Yunxiao) uses Personal Access Token for authentication, not AK/SK profiles. Two configuration methods are supported:
Method A: Environment variables (recommended)
Environment variable
Description
Required (Central)
Required (Region)
ALIBABA_CLOUD_YUNXIAO_ACCESS_TOKEN
Yunxiao Personal Access Token
Yes
Yes
ALIBABA_CLOUD_YUNXIAO_API_BASE_URL
API base URL
No
Yes
ALIBABA_CLOUD_YUNXIAO_ORGANIZATION_ID
Organization ID
Yes
No
bash
# Region site
export ALIBABA_CLOUD_YUNXIAO_ACCESS_TOKEN=<your-personal-access-token>
export ALIBABA_CLOUD_YUNXIAO_API_BASE_URL=<your-api-base-url>
# Central site
export ALIBABA_CLOUD_YUNXIAO_ACCESS_TOKEN=<your-personal-access-token>
export ALIBABA_CLOUD_YUNXIAO_ORGANIZATION_ID=<your-organization-id>
Method B: Command-line parameters
Parameter
Description
Required (Central)
Required (Region)
--yunxiao-access-token
Yunxiao Personal Access Token
Yes
Yes
--api-base-url
API base URL
No
Yes
--organization-id
Organization ID
Yes
No
Step 3: Confirm final invocation format
All commands must include --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-devops/{session-id}" (see Section 7: Observability). Shown as --user-agent <UA> below for brevity:
Central site (env vars): aliyun devops <cmd> --user-agent <UA>
Central site (params): aliyun devops <cmd> --yunxiao-access-token=<token> --organization-id=<ID> --user-agent <UA>
Region site (env vars): aliyun devops <cmd> --user-agent <UA>
Region site (params): aliyun devops <cmd> --yunxiao-access-token=<token> --api-base-url=<url> --user-agent <UA>
Decision point: If Steps 1–3 all pass, CLI channel is ready — skip to Section 3. If CLI is unavailable, proceed to 2.2–2.4.
2.2 Pre-check: Node.js/Docker Runtime
This skill invokes alibabacloud-devops-mcp-server@0.3.38 via npx or docker. Verify:
IMPORTANT — Before executing any tool call, all user-defined parameters (organizationId, projectId, repositoryId, pipelineId, branch names, work item subject, sprint dates, app/env names, etc.) must be confirmed with the user. Never call based on defaults or guesses.
All aliyun devops commands must include --user-agent with the session-scoped UA value (see Section 7: Observability). When using environment variables for authentication, no additional auth parameters are needed. When using command-line parameters, append --yunxiao-access-token and --organization-id (central) or --api-base-url (region) to each command.
For command discovery by product prefix, use scripts/discover-commands.sh or see references/tool-catalog.md.
MUST always use --no-coerce to prevent auto type conversion of string enums.
Parameter rules: Use key:"value" format, space-separated. Do not pass JSON strings. Omit parameters for no-argument tools. Use scripts/mcporter-call.sh for convenience.
Get available tools:
bash
npx -y mcporter@0.11.1 list --stdio "npx -y alibabacloud-devops-mcp-server@0.3.38" --schema
[MUST] Tool selection must be based on dynamic discovery: Select from registered tool list, never fabricate tool names. Use mcporter list or references/tool-catalog.md.
[MUST] Never fabricate results: All tool calls must be actually executed with real return values.
Pre-execution checklist (mandatory):
Obtain organizationId via get_current_organization_info
[Mandatory] Verify target resource exists via list_* / search_* / get_* — even if ID is provided
All required parameters confirmed with user (Section 4)
Delete operations require confirmation
[Mandatory] Dynamic schema validation before first call to any unfamiliar tool:
Method B: Check platform tool registry
Method C: npx -y mcporter@0.11.1 list --stdio "npx -y alibabacloud-devops-mcp-server@0.3.38" --schema 2>&1 | grep -A 30 'function <tool_name>'
If schema returns a different tool name, use the schema's version
For Testhub: call get_testcase_field_config first
For Projex: call list_work_item_types first — never use hardcoded type IDs
[RECOMMENDED] After create_* / update_*, call the corresponding get_* to verify when budget permits. If API returned success with a resource ID, creation can be considered successful even without read-back.
[MUST] Every aliyun devops business command must carry the --user-agent flag for attribution and tracing. The UA value follows a fixed template that includes a per-session identifier.
Important: The --user-agent flag is applied directly on each business command. Do NOT configure UA through any global mode-setting command — always pass it inline per invocation.
8. Best Practices
Read before write: get_* before update_* / delete_* to confirm current state
Pagination: List APIs paginate by default; pass page / perPage for large lists