
An MCP server for Azure DevOps
概览
Azure DevOps 的模型上下文协议(MCP)服务器实现,允许 AI 助手通过标准化协议与 Azure DevOps API 交互。 Microsoft维护着一个产品支持的Azure DevOps MCP,地址为microsoft/azure-devops-mcp。如果你使用Azure DevOps Services(云端),请从这里开始。当你需要支持——尤其是可能无法支持Microsoft MCP的旧版本——或官方服务器尚未提供的功能时,这个社区服务器依然是很好的选择。更多背景信息请参见讨论#237。 该服务器实现了 Azure DevOps 的模型上下文协议(MCP),使像 Claude 这样的 AI 助手能够安全地与 Azure DevOps 资源交互。
概述(AI 翻译)
Azure DevOps 的模型上下文协议(MCP)服务器实现,允许 AI 助手通过标准化协议与 Azure DevOps API 交互。
在找官方服务器吗? Microsoft维护一个产品支持的Azure DevOps MCP,地址是microsoft/azure-devops-mcp。如果你用Azure DevOps Services(云端),建议从那里开始。
当你需要Azure DevOps Server(本地)支持——尤其是可能无法支持Microsoft MCP的旧版本——或官方服务器尚未提供的功能时,这个社区服务器依然是很好的选择。更多背景信息请参见讨论#237。请参阅该服务器的区别和计划内容 ROADMAP.md。
概述
该服务器实现了 Azure DevOps 的模型上下文协议(MCP),使像 Claude 这样的 AI 助手能够安全地与 Azure DevOps 资源交互。该服务器作为 AI 模型与 Azure DevOps API 之间的桥梁,提供一种标准化的方式:
- 访问和管理项目、工作项目、仓库等
- 创建和更新工作项、分支和拉取请求
- 通过自然语言执行常见的DevOps工作流程
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Azure DevOps MCP Server
A Model Context Protocol (MCP) server implementation for Azure DevOps, allowing AI assistants to interact with Azure DevOps APIs through a standardized protocol.
Looking for the official server? Microsoft maintains a product-supported Azure DevOps MCP at microsoft/azure-devops-mcp. If you use Azure DevOps Services (cloud), start there.
This community server remains a good fit when you need Azure DevOps Server (on-premises) support — especially older versions that may not work with Microsoft’s MCP — or features not yet available in the official server. See Discussion #237 for more context. See ROADMAP.md for where this server differentiates and what is planned.
Overview
This server implements the Model Context Protocol (MCP) for Azure DevOps, enabling AI assistants like Claude to interact with Azure DevOps resources securely. The server acts as a bridge between AI models and Azure DevOps APIs, providing a standardized way to:
- Access and manage projects, teams, work items, sprints/iterations, repositories, pull requests, pipelines, wikis, search, test plans, OData analytics, and real-time events
- Create and update work items, branches, commits, pull requests, wiki pages, and test suites
- Execute common DevOps workflows through natural language over stdio or Streamable HTTP (with Docker support)
- Access repository content and live event streams via standardized
ado://resource URIs - Safely authenticate and interact with both Azure DevOps Services (cloud) and Azure DevOps Server (on-premises), with prompt-injection Spotlighting enabled by default
Server Structure
The server is structured around the Model Context Protocol (MCP) for communicating with AI assistants. It provides 77 tools organized into 13 toolsets:
- Users
- Organizations
- Projects
- Repositories
- Work Items
- Search
- Pull Requests
- Pipelines
- Wikis
- Test Plans
- Work (Sprints & Iterations)
- Analytics (OData v4)
- Events (MCP Events & Webhooks)
Core Components
- MCP Server (
src/server.ts): Initializes the MCP server, resolves enabled toolsets/presets/filters upfront, registersListTools,CallTool(with fullToolAnnotationsand default-ON Spotlighting),ListResources,ListResourceTemplates,ReadResource,resources/subscribe, and SEP-3415events/*handlers, and dispatches tools in O(1) via a prebuilt registry map. - Transports (
src/transport/): Supports both MCPstdio(default) and zero-dependencynode:httpStreamable HTTP (--transport http), with DNS-rebinding/Origin protection, Bearer/per-request PAT auth, bounded body/session limits, and Docker packaging.
安装
npx -y @tiberriver256/mcp-server-azure-devops配置
{
"mcpServers": {
"azureDevOps": {
"command": "npx",
"args": ["-y", "@tiberriver256/mcp-server-azure-devops"],
"env": {
"AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
"AZURE_DEVOPS_AUTH_METHOD": "azure-identity",
"AZURE_DEVOPS_DEFAULT_PROJECT": "your-project-name"
}
}
}
}