Skip to main content
Glama

mcp-azure-devops

CI License: MIT npm

一个用于 Azure DevOpsModel Context Protocol 服务器。它能让支持 MCP 的客户端(Claude Desktop、Claude Code、Cursor、Codex……)跨 Boards、Repos、Pipelines 和项目 工作——并带有治理层,让 AI 智能体始终处于安全边界内。

功能概览

  • 项目与团队 —— 列出项目/团队/成员,检查流程模板。

  • Boards / 工作项 —— WIQL 查询、获取工作项、创建/更新工作项、列出迭代(sprint)。

  • Repos / 拉取请求 —— 列仓库和分支,列出/查看 PR,创建 PR。

  • Pipelines / 构建 —— 列流水线和最近的构建,获取某次构建,触发一次运行。

  • 管理 / 流程 —— 列出流程模板,创建项目,删除项目(受管控)。

  • 内置治理 —— 访问模式、项目白名单、受保护项目、删除门禁、高影响操作的类型化确认、dry-run 以及 JSON 审计日志。

Related MCP server: Azure DevOps MCP Server

治理与安全模型

关注点

标志

默认值

效果

服务器能做什么?

AZDO_MODE

read-only

read-only → 只读;read-write → 工作项、PR、流水线运行;admin → 创建/删除项目。超出该模式权限的工具将永远不会注册

哪些项目被允许?

AZDO_PROJECT_ALLOWLIST

(all)

对其他项目的操作将被拒绝。

哪些项目是永久只读的?

AZDO_PROTECTED_PROJECTS

(none)

可读取,永不修改。

允许删除吗?

AZDO_ALLOW_DELETE

false

delete_project 需要此开关 并且 需要 admin 模式。

类型化确认

AZDO_REQUIRE_CONFIRMATION

true

高影响操作要求 confirm 等于目标名称——而不仅仅是一个布尔值。

试运行

AZDO_DRY_RUN

false

写入/管理工具会先用 dry-run 校验并记录操作意图,然后直接返回。

审计日志

AZDO_AUDIT_LOG

true

每个受保护的操作都会向 stderr 输出一行 JSON 日志。

工具

读取read-only+):list_projectsget_projectlist_teamslist_team_memberslist_processesquery_work_itemsget_work_itemlist_iterationslist_repositorieslist_brancheslist_pull_requestsget_pull_requestlist_pipelineslist_buildsget_build

写入read-write+):create_work_itemupdate_work_itemcreate_pull_requestrun_pipeline

管理admin):create_projectdelete_project(需要 AZDO_ALLOW_DELETE,且 confirm 必须输入目标名称)

快速开始——添加到你的客户端

已发布到 npm,包名为 @dockndevai/mcp-azure-devops。通过 npx 运行;需要一个组织(org)和一个 PAT。有关每个客户端的完整设置,请参阅 docs/CLIENTS.md;所有环境变量请参阅 .env.example

Claude Code

claude mcp add azure-devops -e AZDO_ORG_URL="https://dev.azure.com/your-org" -e AZDO_PAT="your-pat" -e AZDO_MODE="read-only" -- npx -y @dockndevai/mcp-azure-devops

Claude Desktop · Cursor · Windsurf

{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": ["-y", "@dockndevai/mcp-azure-devops"],
      "env": {
        "AZDO_ORG_URL": "https://dev.azure.com/your-org",
        "AZDO_PAT": "your-pat",
        "AZDO_MODE": "read-only"
      }
    }
  }
}

示例提示词

  • "列出 Payments 项目的 api 仓库中的活动拉取请求"

  • "查询分配给我且状态仍为 Active 的工作项"

  • "显示 Web 项目中最后 10 次构建,以及有哪些失败"

  • "在 Payments 中新建一条标题为 'Checkout 500 on retry' 的 Bug"(需要 read-write 权限)

从源码运行(开发)

npm install
npm run build
node dist/index.js   # with the environment variables set

开发

npm run dev
npm test          # governance policy: modes, allowlists, delete gating, confirmation
npm run typecheck

发布

为官方 MCP 注册表提供了一个 server.json,并为 npm 所有权校验提供了 package.json 中的 mcpName。详见 PUBLISHING.md

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Runtime permission, approval, and audit layer for AI agent tool execution.

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dockndevai/mcp-azure-devops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server