VM

viamus/mcp-azure-devops

开发工具

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

11 stars 3 forks 质量 76 趋势 32MIT

Azure DevOps MCP,用于通过HTTP查询存储器、管道、工作项目和交付元数据

概览

一个用于Azure DevOps集成的模型上下文协议(MCP)服务器,使AI助手能够与Azure DevOps工作项目,Git存储器,Pull Request,管道,和Wikis在HTTP或本地STIO上互动. : 流度计,WIP分析等分析特征被去掉. 随着激活Date和ClosedDate现在在所有工作项目查询中被曝光,克洛德可以直接从数据中得出周期时间,准备时间,衰老和吞吐量——不需要预建的分析工具. 关于本地进程设置,多组织配置,PAT替换,以及错误恢复,参见STDIO和错误处理指南. 编辑 src/Viamus.Azure.Devops.Mcp.Server/appsings.json 与您的 Azure DevOps 证书: 对于多个 Azure DevOps 组织或 PATs 组织, 每个组织保留一个条目, 并在工具调用中选择它, 见下文“创建个人访问数据库”。 你应该收到JSON的回复 状态:"健康"和时间戳.

概述(AI 翻译)

一个用于Azure DevOps集成的模型上下文协议(MCP)服务器,使AI助手能够与Azure DevOps工作项目,Git存储器,Pull Request,管道,和Wikis在HTTP或本地STIO上互动.

** 说明**: 流动计量、WIP分析和其他分析特征被删除。 随着ActivatedDate和ClosedDate现在在所有工作项目查询中被曝光,克洛德可以直接从数据中得出周期时间,准备时间,衰老和吞吐量——不需要预建的分析工具.

– – . . .

关于本地进程设置,多组织配置,PAT替换,以及错误恢复,参见STDIO和错误处理指南.

^ 快速启动 (HTTP)

起来跑出三步:

  1. 克隆和配置

** 备选A——.env文件(为多克推荐):**

** 备选案文B——appsettings.json(关于.NET CLI):**

使用您的 Azure DevOps 证书编辑 src/Viamus.Azure.Devops.Mcp.Server/appsettings.json :

对于多个 Azure DevOps 组织或 PATs 组织,每个组织保留一个条目,并在工具调用中选择一个选项 [[T5] 参数:

  • ** 需要PAT吗? ** 见下文“创建个人访问数据库”。

QQ 2. 运行服务器

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

README

以下为原文 README 节选,完整内容请查看原文。

MCP Azure DevOps Server

A Model Context Protocol (MCP) server for Azure DevOps integration, enabling AI assistants to interact with Azure DevOps Work Items, Git Repositories, Pull Requests, Pipelines, and Wikis over HTTP or local STDIO.

Note: Flow metrics, WIP analysis, and other analytics features were removed. With ActivatedDate and ClosedDate now exposed on all work item queries, Claude can derive cycle time, lead time, aging, and throughput directly from the data — no pre-built analytics tools needed.


For local process setup, multi-organization configuration, PAT replacement, and error recovery, see the STDIO and error handling guide.

Quick Start (HTTP)

Get up and running in 3 steps:

1. Clone and configure

git clone https://github.com/viamus/mcp-azure-devops.git
cd mcp-azure-devops

Option A — .env file (recommended for Docker):

cp .env.example .env
# Edit .env with your Azure DevOps credentials

Option B — appsettings.json (for .NET CLI):

Edit src/Viamus.Azure.Devops.Mcp.Server/appsettings.json with your Azure DevOps credentials:

{
  "AzureDevOps": {
    "OrganizationUrl": "https://dev.azure.com/your-organization",
    "PersonalAccessToken": "your-personal-access-token",
    "DefaultProject": "your-project-name"
  }
}

For multiple Azure DevOps organizations or PATs, keep one entry per organization and select it in tool calls with the optional organization argument:

{
  "AzureDevOps": {
    "DefaultOrganization": "primary",
    "Organizations": [
      {
        "Name": "primary",
        "OrganizationUrl": "https://dev.azure.com/primary-org",
        "PersonalAccessToken": "primary-pat",
        "DefaultProject": "primary-project"
      },
      {
        "Name": "secondary",
        "OrganizationUrl": "https://dev.azure.com/secondary-org",
        "PersonalAccessToken": "secondary-pat",
        "DefaultProject": "secondary-project"
      }
    ]
  }
}

Need a PAT? See Creating a Personal Access Token below.

2. Run the server

Option A - Docker (recommended):

docker compose up -d
# Server runs at http://localhost:8080 (use reverse proxy for HTTPS in production)

Option B - .NET CLI:

dotnet run --project src/Viamus.Azure.Devops.Mcp.Server
# Server runs at http://localhost:5000

3. Verify it’s working

# Docker
curl http://localhost:8080/health

# .NET CLI
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "azure-devops": { "command": "dotnet", "args": ["C:/path/to/mcp-azure-devops/publish/stdio/Viamus.Azure.Devops.Mcp.Stdio.dll"], "env": { "AzureDevOps__OrganizationUrl": "https://dev.azure.com/your-organization", "AzureDevOps__PersonalAccessToken": "your-pat", "AzureDevOps__DefaultProject": "your-project" } } } }