Azure DevOps MCP Server for Cline

Azure DevOps MCP Server for Cline

site icon
2025.02.17 0
TypeScriptAzure DevOps 集成开发工具团队协作开发效率交流协作
Azure DevOps MCP Server 是一个为 Cline 设计的 Model Context Protocol (MCP) 服务器,提供与 Azure DevOps 的集成功能,允许用户通过 Cline 与 Azure DevOps 服务进行交互。该服务器支持多种 Azure DevOps 功能,包括工作项管理、看板、管道、拉取请求、Wiki 和项目管理等。
View on GitHub

Overview

基本能力

产品定位

Azure DevOps MCP Server 是一个中间件,旨在为 Cline 提供与 Azure DevOps 服务的无缝集成,提升开发效率和团队协作能力。

核心功能

  • 工作项管理:获取、查询、创建和更新工作项(Bug、任务、用户故事等)
  • 看板管理:获取项目中的可用看板
  • 管道操作:列出项目中的所有管道并触发执行
  • 拉取请求管理:列出、创建、更新和获取拉取请求详情
  • Wiki 操作:列出项目中的 Wiki、获取 Wiki 页面、创建新 Wiki 和更新 Wiki 页面
  • 项目管理:列出 Azure DevOps 组织中的所有项目

适用场景

  • 开发团队需要与 Azure DevOps 进行高效交互
  • 自动化 Azure DevOps 工作流程
  • 通过命令行或 IDE 扩展快速访问 Azure DevOps 功能

工具列表

  • Work Itemsget_work_item, list_work_items, create_work_item, update_work_item
  • Boardsget_boards
  • Pipelineslist_pipelines, trigger_pipeline
  • Pull Requestslist_pull_requests, create_pull_request, update_pull_request, get_pull_request
  • Wikiget_wikis, get_wiki_page, create_wiki, update_wiki_page
  • Projectslist_projects

常见问题解答

  1. 服务器无法连接:检查 MCP 设置中的路径是否正确,验证 Azure DevOps 凭据,查看 Cline 日志中的错误消息
  2. 认证错误:验证 PAT 是否过期,确保 PAT 具有所有必要的范围,仔细检查组织和项目名称
  3. 其他问题:运行检查工具验证服务器是否正常工作,查看服务器日志中的错误消息

使用教程

使用依赖

  • Node.js (v20 LTS 或更高版本)
  • npm (随 Node.js 一起安装)
  • Cline 安装
  • 具有访问令牌的 Azure DevOps 账户

安装教程

通过 Smithery 安装

npx -y @smithery/cli install @stefanskiasan/azure-devops-mcp-server --client claude

手动安装

  1. 克隆仓库:
git clone https://github.com/stefanskiasan/azure-devops-mcp-server.git
cd azure-devops-mcp-server
  1. 安装依赖:
npm install
  1. 构建服务器:
npm run build

配置

  1. 获取 Azure DevOps 个人访问令牌 (PAT)
  2. 配置 Cline MCP 设置文件

调试方式

  1. 添加配置后重启 Cline(或 VSCode)
  2. Azure DevOps MCP 服务器现在应该列在 Cline 的功能中
  3. 使用 MCP 检查器验证安装:
npm run inspector

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。