Azure DevOps 标志

Azure DevOps

组织热门
microsoft

The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.

发布者microsoft
代码仓库azure-devops-mcp
语言TypeScript
复刻数
651
星标数
2K
可用工具
77
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Azure DevOps 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 77 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 2K 个 Star 和 651 个 Fork。

Azure DevOps MCP Server

[!WARNING] We recently completed a full tool consolidation that includes renaming of existing tools. Please see the Toolset documentation for the complete list of new tool names.

If this is a breaking change for your agents or skills, you can temporarily pin the version to @azure-devops/mcp@2.8.1

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

[!IMPORTANT] We recommend using the Remote MCP Server instead of this local server. It requires no installation and gets new features first.

Learn more

  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.

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.

json
{
  "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 stdio setup.

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

  1. Install VS Code or VS Code Insiders.
  2. Install Node.js 20 or later.
  3. Open your project in VS Code.

Installation

Install from npm

  1. Create .vscode/mcp.json in your project.
  2. Add this configuration:
json
{
  "inputs": [
    {
      "id": "ado_org",
      "type": "promptString",
      "description": "Azure DevOps organization name  (e.g. 'contoso')"
    }
  ],
  "servers": {
    "ado": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@azure-devops/mcp", "${input:ado_org}"]
    }
  }
}
  1. Save the file, then start the ado server from the MCP view in VS Code.
  2. Open GitHub Copilot Chat and switch to Agent mode.
  3. Select the Azure DevOps tools, then try a prompt such as List ADO projects.
  4. 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:

text
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:

json
{
  "inputs": [
    {
      "id": "ado_org",
      "type": "promptString",
      "description": "Azure DevOps organization name  (e.g. 'contoso')"
    }
  ],
  "servers": {
    "ado_with_filtered_domains": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@azure-devops/mcp", "${input:ado_org}", "-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

json
{
  "servers": {
    "ado": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@azure-devops/mcp", "myorg", "--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! ❤️

Contributors

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.

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "azure_devops": {
      "command": "npx",
      "args": [
        "-y",
        "@azure-devops/mcp",
        "${input:ado_org}"
      ]
    }
  }
}

可用工具

  • core_list_project_teams

    Retrieve a list of teams for the specified Azure DevOps project.

  • core_list_projects

    Retrieve a list of projects in your Azure DevOps organization.

  • core_get_identity_ids

    Retrieve Azure DevOps identity IDs for a provided search filter.

  • work_list_team_iterations

    Retrieve a list of iterations for a specific team in a project.

  • work_create_iterations

    Create new iterations in a specified Azure DevOps project.

  • work_assign_iterations

    Assign existing iterations to a specific team in a project.

  • repo_create_pull_request

    Create a new pull request.

  • repo_update_pull_request

    Update a Pull Request by ID with specified fields, including setting autocomplete with various completion options.

  • repo_update_pull_request_reviewers

    Add or remove reviewers for an existing pull request.

  • repo_list_repos_by_project

    Retrieve a list of repositories for a given project

  • repo_list_pull_request_threads

    Retrieve a list of comment threads for a pull request.

  • repo_list_pull_request_thread_comments

    Retrieve a list of comments in a pull request thread.

  • repo_list_branches_by_repo

    Retrieve a list of branches for a given repository.

  • repo_list_my_branches_by_repo

    Retrieve a list of my branches for a given repository Id.

  • repo_get_repo_by_name_or_id

    Get the repository by project and repository name or ID.

  • repo_get_branch_by_name

    Get a branch by its name.

  • repo_get_pull_request_by_id

    Get a pull request by its ID.

  • repo_reply_to_comment

    Replies to a specific comment on a pull request.

  • repo_create_pull_request_thread

    Creates a new comment thread on a pull request.

  • repo_resolve_comment

    Resolves a specific comment thread on a pull request.

  • repo_search_commits

    Search for commits in a repository with comprehensive filtering capabilities. Supports searching by description/comment text, time range, author, committer, specific commit IDs, and more. This is the unified tool for all commit search operations.

  • repo_list_pull_requests_by_commits

    Lists pull requests by commit IDs to find which pull requests contain specific commits

  • wit_list_backlogs

    Receive a list of backlogs for a given project and team.

  • wit_list_backlog_work_items

    Retrieve a list of backlogs of for a given project, team, and backlog category

  • wit_my_work_items

    Retrieve a list of work items relevent to the authenticated user.

  • wit_get_work_items_batch_by_ids

    Retrieve list of work items by IDs in batch.

  • wit_get_work_item

    Get a single work item by ID.

  • wit_list_work_item_comments

    Retrieve list of comments for a work item by ID.

  • wit_add_work_item_comment

    Add comment to a work item by ID.

  • wit_add_child_work_items

    Create one or many child work items from a parent by work item type and parent id.

  • wit_link_work_item_to_pull_request

    Link a single work item to an existing pull request.

  • wit_get_work_items_for_iteration

    Retrieve a list of work items for a specified iteration.

  • wit_update_work_item

    Update a work item by ID with specified fields.

  • wit_get_work_item_type

    Get a specific work item type.

  • wit_create_work_item

    Create a new work item in a specified project and work item type.

  • wit_get_query

    Get a query by its ID or path.

  • wit_get_query_results_by_id

    Retrieve the results of a work item query given the query ID.

  • wit_update_work_items_batch

    Update work items in batch

  • wit_work_items_link

    Link work items together in batch.

  • wit_work_item_unlink

    Remove one or many links from a single work item

  • wit_add_artifact_link

    Add artifact links (repository, branch, commit, builds) to work items. You can either provide the full vstfs URI or the individual components to build it automatically.

  • wiki_get_wiki

    Get the wiki by wikiIdentifier

  • wiki_list_wikis

    Retrieve a list of wikis for an organization or project.

  • wiki_list_pages

    Retrieve a list of wiki pages for a specific wiki and project.

  • wiki_get_page_content

    Retrieve wiki page content. Provide either a 'url' parameter OR the combination of 'wikiIdentifier' and 'project' parameters.

  • wiki_create_or_update_page

    Create or update a wiki page with content.

  • testplan_list_test_plans

    Retrieve a paginated list of test plans from an Azure DevOps project. Allows filtering for active plans and toggling detailed information.

  • testplan_create_test_plan

    Creates a new test plan in the project.

  • testplan_add_test_cases_to_suite

    Adds existing test cases to a test suite.

  • testplan_create_test_case

    Creates a new test case work item.

  • testplan_list_test_cases

    Gets a list of test cases in the test plan.

  • testplan_show_test_results_from_build_id

    Gets a list of test results for a given project and build ID.

  • search_code

    Search Azure DevOps Repositories for a given search text

  • search_wiki

    Search Azure DevOps Wiki for a given search text

  • search_workitem

    Get Azure DevOps Work Item search results for a given search text

  • advsec_get_alerts

    Retrieve Advanced Security alerts for a repository.

  • advsec_get_alert_details

    Get detailed information about a specific Advanced Security alert.

  • work_list_iterations

    List all iterations in a specified Azure DevOps project.

  • work_get_team_capacity

    Get the team capacity of a specific team and iteration in a project.

  • work_update_team_capacity

    Update the team capacity of a team member for a specific iteration in a project.

  • work_get_iteration_capacities

    Get an iteration's capacity for all teams in iteration and project.

  • pipelines_get_build_definitions

    Retrieves a list of build definitions for a given project.

  • pipelines_get_build_definition_revisions

    Retrieves a list of revisions for a specific build definition.

  • pipelines_get_builds

    Retrieves a list of builds for a given project.

  • pipelines_get_build_log

    Retrieves the logs for a specific build.

  • pipelines_get_build_log_by_id

    Get a specific build log by log ID.

  • pipelines_get_build_changes

    Get the changes associated with a specific build.

  • pipelines_get_run

    Gets a run for a particular pipeline.

  • pipelines_list_runs

    Gets top 10000 runs for a particular pipeline.

  • pipelines_run_pipeline

    Starts a new run of a pipeline.

  • pipelines_get_build_status

    Fetches the status of a specific build.

  • pipelines_update_build_stage

    Updates the stage of a specific build.

  • repo_create_branch

    Create a new branch in the repository.

  • repo_list_pull_requests_by_repo_or_project

    Retrieve a list of pull requests for a given repository. Either repositoryId or project must be provided.

  • wiki_get_page

    Retrieve wiki page metadata by path. This tool does not return page content.

  • testplan_create_test_suite

    Creates a new test suite in a test plan.

  • testplan_update_test_case_steps

    Update an existing test case work item.

将 Azure DevOps MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Azure DevOps 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Azure DevOps 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Azure DevOps MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Azure DevOps MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Azure DevOps MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Azure DevOps 帮我完成这项任务吗?
Azure DevOps
当然。我已阅读。
以下是我使用 Azure DevOps 得到的结果。

常见问题

Azure DevOps MCP 服务器有什么用途?

Azure DevOps 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Azure DevOps MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Azure DevOps,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Azure DevOps MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Azure DevOps 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Azure DevOps MCP 连接到 TypingMind?

Azure DevOps 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Azure DevOps MCP 在 TypingMind 中提供哪些工具?

Azure DevOps 提供 77 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Azure DevOps MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Azure DevOps 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇