MA

microsoft/azure-devops-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2072 stars 669 forks 质量 81 趋势 47MIT

Azure DevOps 的 MCP 服务器,直接将 Azure DevOps 的强大功能带到你的代理中。

概览

Azure DevOps 远程 MCP 服务器现已面向所有组织公开预览。我们建议今后迁移到远程 MCP 服务器。了解更多 该项目为 AI 代理提供 Azure DevOps MCP 工具,提供入职体验和本地服务器选项,方便用户访问。 Azure DevOps MCP 服务器为你的代理带来 Azure DevOps 上下文。尝试以下提示: - “列出我的ADO项目” - “列出'Contoso'的ADO构建”- “列出'Contoso'的ADO仓库”- “列出'Contoso'项目的测试计划”- “列出'Contoso'项目的团队”- “列出'Contoso'项目的迭代”- “列出'Contoso'项目的当前迭代项目”- “列出'Contoso'项目和'Contoso团队'当前迭代的工作项目”- “列出'Contoso'项目中的所有维基” - “创建一个包含系统设计内容的维基页面'/架构/概述'” - “更新维基页面'/入门指南”,并附上新的入门说明“ - ”获取维基页面'/API/认证'的内容,来自...

概述(AI 翻译)

[!重要] 我们建议使用远程MCP服务器,而不是本地服务器。它无需安装,并且优先获得新功能。

了解更多

该项目通过模型上下文协议(MCP)让AI代理访问Azure DevOps。使用托管的远程服务器进行最简单的设置,或者在需要stdio连接时运行本地服务器。

目录

  1. 概述
  2. 设计
  3. 远程MCP服务器(推荐)
  4. 支持的工具
  5. 本地MCP服务器安装(可选)
  6. 使用域名(本地服务器)
  7. 项目和团队默认值(本地服务器)
  8. 故障排除
  9. 示例与最佳实践
  10. 常见问题解答
  11. 贡献

概述

Azure DevOps MCP 服务器为你的代理带来 Azure DevOps 上下文。尝试以下提示:

  • “列出我的ADO项目”
  • “列出’Contoso’的ADO配置”
  • “列出’Contoso’的ADO仓库”
  • “列出’Contoso’测试计划”
  • “列出’Contoso’项目团队名单”
  • “Contoso项目的迭代列表”
  • “列出我为’Contoso’项目工作项目的项目”
  • “列出’Contoso’项目和’Contoso团队’当前迭代的工作项目”
  • “列出’Contoso’项目中的所有维基”

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 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.

Learn more

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

  1. Overview
  2. Design
  3. Remote MCP Server (Recommended)
  4. Supported Tools
  5. Local MCP Server Installation (Optional)
  6. Using Domains (Local Server)
  7. Project and Team Defaults (Local Server)
  8. Troubleshooting
  9. Examples and Best Practices
  10. Frequently Asked Questions
  11. 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.

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": {
在 GitHub 查看完整 README

安装

npx -y @azure-devops/mcp {organization}
新手?先看 mcpskill.org 教程 →