The Alibaba Cloud DevOps mcp-server tool (alibabacloud-devops-mcp-server) enables an AI assistant to interact with the Alibaba Cloud DevOps platform. This allows the AI assistant to read the content of work items in a project, understand the requirements, automatically write code, and submit merge requests. R&D teams can use this tool to assist with code reviews, optimize task management, and reduce repetitive operations, allowing them to focus on more important innovation and product delivery. The Alibaba Cloud DevOps mcp-server tool is an open-source project. The source code is available at: https://github.com/aliyun/alibabacloud-devops-mcp-server.
Features
alibabacloud-devops-mcp-server supports the following core module features:
-
Repository management: Query repositories and their branches, and create branches.
-
File operations: Create, update, delete, and retrieve file content.
-
Code review: Create and manage code reviews.
-
Project management: Search for projects and retrieve their details.
-
Pipeline management: Retrieve details for pipelines and pipeline runs, list and run pipelines, and query or execute deployment tasks.
-
Artifact repository management: Query for artifacts, and view repository and individual artifact details.
Tool list
alibabacloud-devops-mcp-server integrates several tools, including:
|
Tool |
Description |
|
Organization Management Tools |
|
|
Project Management Tools |
|
|
Code Management Tools |
|
|
Pipeline Tools |
|
|
Artifact Repository Tools |
|
Installation and usage
Prerequisites
-
Node.js version 16.0.0 or later.
-
Obtain a personal access token. You must grant the token read and write permissions for all APIs under Organization Management, Project Collaboration, Code Management, Pipeline, Artifact Repository, Application Delivery, and Test Management. Ensure you set a long-term expiration date for the token.
Installation methods
You can install and deploy the mcp-server in one of the following three ways:
MCP Marketplace
-
The MCP Marketplace built into Qoder CN provides the Alibaba Cloud DevOps MCP service. In Qoder CN, go to the MCP Marketplace, find Alibaba Cloud DevOps, and click Install. For more information, see Model Context Protocol.
-
Enter your personal access token in value and click Add Now. After you click Install, in the installation dialog box that appears, set the value of the
YUNXIAO_ACCESS_TOKENenvironment variable to your Alibaba Cloud DevOps access token (Personal Access Token), and then click Add Now. -
After installation, check My Services. A green icon
indicates the service is connected and ready. You can expand the details to view the list of tools provided by MCP.
NPX
Replace <YOUR_TOKEN> with your personal access token:
{
"mcpServers": {
"yunxiao": {
"command": "npx",
"args": [
"-y",
"alibabacloud-devops-mcp-server"
],
"env": {
"YUNXIAO_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
Docker
Download the source code from https://github.com/aliyun/alibabacloud-devops-mcp-server.
-
Build the image. In the root directory of the repository, run the following command:
docker build -t alibabacloud/alibabacloud-devops-mcp-server . -
Configure the MCP server. Replace
<YOUR_TOKEN>with your personal access token:{ "mcpServers": { "yunxiao": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "YUNXIAO_ACCESS_TOKEN", "alibabacloud/alibabacloud-devops-mcp-server" ], "env": { "YUNXIAO_ACCESS_TOKEN": "<YOUR_TOKEN>" } } } }
Using the mcp-server
-
In the intelligent session in Qoder CN, select Agent, and then choose qwen3.
Project: mall-master [mall] E:\mall-master\mall-master ├── .idea ├── document ├── mall-admin ├── mall-common ├── mall-demo ├── mall-mbg ├── mall-portal ├── mall-search ├── mall-security ├── .gitignore ├── LICENSE ├── pom.xml └── README.md --- Tongyi Lingma --- Hi, I'm Tongyi Lingma, your intelligent coding assistant. You can ask me coding-related questions or submit code to help me improve. To learn more about my capabilities, updates, and enterprise-level information, see the help documentation. Providing more details and context (such as files, images, or commits) helps me better understand your requests and provide better solutions and code suggestions. In agent mode, I can use many tools to solve complex coding tasks. You can also add more MCP tools to fit your workflow. -
In the session window, you can issue commands to ask questions or develop features. For example, if you enter the command Get organization role information, Tongyi Lingma calls the
yunxiao/get_current_organization_infotool and returns the organization ID (673416db230801f06d3d7ae6), user ID (66a6f60e368d88cff5a513fc), and username (test). If you then request to create a test branch in the Codeup-Demo repository and theyunxiao/create_branchtool fails with a 404 error, the agent suggests that the repository name may be incorrect or that the repository does not exist in the current organization. It provides the following troubleshooting steps: 1. Check for spelling or case sensitivity issues. 2. Confirm that the repository exists in the current organization.
If you have any feedback or suggestions, you can contact us through our DingTalk group: 134400004101