什么是 Azure DevOps (ADO)?
Azure DevOps的MCP服务器,将Azure DevOps的强大功能直接带给您的代理。
README
Azure DevOps MCP Server
[!IMPORTANT] We recommend using the Remote MCP Server instead of this local server. It requires no installation and gets new features first.
This project gives AI agents access to Azure DevOps through the Model Context Protocol (MCP). Use the hosted remote server for the simplest setup, or run the local server when you need a stdio connection.
Table of Contents
- Overview
- Design
- Remote MCP Server (Recommended)
- Supported Tools
- Local MCP Server Installation (Optional)
- Using Domains (Local Server)
- Project and Team Defaults (Local Server)
- Troubleshooting
- Examples and Best Practices
- Frequently Asked Questions
- Contributing
Overview
The Azure DevOps MCP Server brings Azure DevOps context to your agents. Try prompts like:
- "List my ADO projects"
- "List ADO Builds for 'Contoso'"
- "List ADO Repos for 'Contoso'"
- "List test plans for 'Contoso'"
- "List teams for project 'Contoso'"
- "List iterations for project 'Contoso'"
- "List my work items for project 'Contoso'"
- "List work items in current iteration for 'Contoso' project and 'Contoso Team'"
- "List all wikis in the 'Contoso' project"
- "Create a wiki page '/Architecture/Overview' with content about system design"
- "Update the wiki page '/Getting Started' with new onboarding instructions"
- "Get the content of the wiki page '/API/Authentication' from the Documentation wiki"
Design
Each tool handles a focused Azure DevOps task. The server provides a thin layer over the REST APIs, while the AI agent handles higher-level reasoning.
Remote MCP Server (Recommended)
For complete instructions, see the Remote MCP Server onboarding documentation.
The remote server will eventually replace the local server. The local server remains supported, but new development will focus on the remote server. Existing local server users should begin planning their migration.
If you encounter issues with tools, need support, or have a feature request, you can report an issue using the Remote MCP Server issue template. During the preview period, we will track Remote MCP Server issues through this repository.
Quick Start
Create .vscode/mcp.json in your project and add this configuration. Replace {organization} with your Azure DevOps organization name.
{
"servers": {
"ado-remote-mcp": {
"url": "https://mcp.dev.azure.com/{organization}",
"type": "http"
}
},
"inputs": []
}
See the remote server configuration documentation for more options.
After saving .vscode/mcp.json, start the server from the MCP view in VS Code, then run a prompt like List ADO projects.
Supported Tools
See the Available Tools documentation for the complete list of available remote tools.
For the complete list of local tools, see TOOLSET.md.
Local MCP Server Installation (Optional)
[!IMPORTANT] Start with the Remote MCP Server first. Use the local MCP Server only if your scenario specifically requires a local
stdiosetup.
These steps use Visual Studio Code and GitHub Copilot. For other supported clients, including Visual Studio 2022, Codex, Claude Code, Cursor, OpenCode, and Kilo Code, see the getting started guide.
Prerequisites
- Install VS Code or VS Code Insiders.
- Install Node.js 20 or later.
- Open your project in VS Code.
Installation
Install from npm
- Create
.vscode/mcp.jsonin your project. - Add this configuration:
{
"servers": {
"ado": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "{organization}"]
}
}
}
- Save the file, then start the
adoserver from the MCP view in VS Code. - Open GitHub Copilot Chat and switch to Agent mode.
- Select the Azure DevOps tools, then try a prompt such as
List ADO projects. - When prompted, sign in with a Microsoft account that has access to the selected Azure DevOps organization.
To use nightly builds, replace @azure-devops/mcp with @azure-devops/mcp@next in the configuration.
For better tool selection, add .github/copilot-instructions.md to your project with this instruction:
This project uses Azure DevOps. Always check whether the Azure DevOps MCP server has a tool relevant to the user's request.
Using Domains (Local Server)
The local server includes many tools. Domains let you load only the tool groups you need, which keeps the tool list manageable and helps clients with tool limits. Available domains are core, work, work-items, search, test-plans, repositories, wiki, pipelines, and advanced-security.
Add -d followed by the domains to the server arguments. For example, this configuration loads only work item-related tools:
{
"servers": {
"ado_with_filtered_domains": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "{organization}", "-d", "core", "work", "work-items"]
}
}
}
Always include core so the agent can retrieve project information.
If you omit
-d, the server loads all domains.
Project and Team Defaults (Local Server)
Set default Azure DevOps project and team values in .vscode/mcp.json so tools can skip selection prompts.
Example .vscode/mcp.json
{
"servers": {
"ado": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@azure-devops/mcp", "{organization}", "--authentication", "azcli"],
"env": {
"ado_mcp_project": "Contoso",
"ado_mcp_team": "Fabrikam Team"
}
}
}
}
Troubleshooting
See the Troubleshooting guide for help with common issues and logging.
Examples
See the examples for sample prompts.
Frequently Asked Questions
For answers to common questions about the Azure DevOps MCP Server, see the Frequently Asked Questions.
Contributing
We welcome contributions. During preview, file issues for bugs, enhancements, or documentation improvements.
See our Contributions Guide for:
- Development setup
- Adding new tools
- Code style and testing
- Pull request process
Read the Contributions Guide before creating a pull request.
Code of Conduct
This project follows the Microsoft Open Source Code of Conduct. For questions, see the FAQ or contact open@microsoft.com.
Hall of Fame
Thanks to all contributors who make this project awesome! ❤️
Generated with contrib.rocks
License
Licensed under the MIT License.
Trademarks: This project may include trademarks or logos for Microsoft or third parties. Use of Microsoft trademarks or logos must follow Microsoft’s Trademark & Brand Guidelines. Third-party trademarks are subject to their respective policies.
<!-- version: 2023-04-07 [Do not delete this line, it is used for analytics that drive template improvements] -->常见问题
Azure DevOps (ADO) 是什么?
Azure DevOps的MCP服务器,将Azure DevOps的强大功能直接带给您的代理。
相关 Skills
CF部署
by openai
在 Claude Code 中把应用快速发布到 Cloudflare,覆盖 Workers、Pages 和平台服务,适合部署前端站点、边缘函数及全栈项目,统一完成上线、托管与交付。
✎ 想把应用快速部署到 Cloudflare 边缘网络,CF部署把 Workers、Pages 和平台服务串成一条顺手流程,上线更快也更省心。
智能体套件
by cloudflare
基于 Cloudflare Agents SDK 快速搭建有状态 AI agents,集成任务调度、RPC 调用与 MCP servers,适合开发长期运行、可协作的智能应用。
Next最佳实践
by vercel-labs
整理 Next.js 官方推荐模式与最佳实践,适合在新项目搭建、架构重构和上线前检查时快速对齐路由、数据获取、性能优化等方案。
相关 MCP Server
kubefwd
编辑精选by txn2
kubefwd 是让 AI 帮你批量转发 Kubernetes 服务到本地的开发神器。
✎ 微服务开发者最头疼的本地调试问题,它一键搞定——自动分配 IP 避免端口冲突,还能用自然语言查询状态。但依赖 AI 工作流,纯命令行爱好者可能觉得不够直接。
Cloudflare
编辑精选by Cloudflare
Cloudflare MCP Server 是让你用自然语言管理 Workers、KV 和 R2 等云资源的工具。
✎ 这个工具解决了开发者频繁切换控制台和文档的痛点,特别适合那些在 Cloudflare 上部署无服务器应用、需要快速调试或管理配置的团队。不过,由于它依赖多个子服务器,初次设置可能有点繁琐,建议先从 Workers Bindings 这类核心功能入手。
Terraform
编辑精选by hashicorp
Terraform MCP Server 是让 AI 助手直接操作 Terraform Registry 和 HCP Terraform 的桥梁。
✎ 如果你经常在 Terraform 里翻文档找模块配置,这个服务器能省不少时间——直接问 Claude 就能生成准确的代码片段。最适合管理多云基础设施的团队,但注意它目前只适合本地使用,别在生产环境里暴露 HTTP 端点。