Back to MCP directory
publicPublicdnsLocal runtime

Azure DevOps MCP Server for Cline

Azure DevOps集成服务,为Cline提供与Azure DevOps的交互能力

article

README

🚀 Azure DevOps MCP 服务器用于 Cline

此 Model Context Protocol (MCP) 服务器提供了与 Azure DevOps 的集成能力,让 Cline 能够与 Azure DevOps 服务进行交互,为用户在开发过程中提供便利。

🚀 快速开始

此 Model Context Protocol (MCP) 服务器提供了与 Azure DevOps 的集成能力,让 Cline 能够与 Azure DevOps 服务进行交互,为用户在开发过程中提供便利。

✨ 主要特性

  • 提供与 Azure DevOps 的集成,使 Cline 可与 Azure DevOps 服务交互。

📦 安装指南

先决条件

  • Node.js(v20 LTS 或更高版本)
  • npm(随 Node.js 提供)
  • Cline 安装
  • 带访问令牌的 Azure DevOps 账户

安装步骤

使用 Smithery 自动安装

通过 Smithery 自动安装 Azure DevOps Server for Claude Desktop:

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

⚠️ 重要提示

build/ 目录的构建输出未包含在版本控制中。克隆仓库后必须运行构建命令。

📚 详细文档

配置

1. 获取 Azure DevOps 个人访问令牌 (PAT)

  1. 登录到 Azure DevOps
  2. 点击右上角的个人资料图片
  3. 选择 "安全性"
  4. 点击 "新建令牌"
  5. 为令牌提供名称并启用所有必需范围(例如:azure-devops full
  6. 复制生成的访问令牌

2. 配置 Cline MCP 设置

  1. 打开 C:\Users\<YourUsername>\AppData\Local\YuanJia\ChatGPT-Cline-Preview\config.json
  2. 按照以下结构修改内容:
{
    "servers": {
        "AzureDevops": {
            "type": "MCP",
            "url": "your_azure_devops_url",
            "token": "your PAT token"
        }
    }
}

使用方法

  1. 在 Cline 中选择 Azure DevOps MCP 服务器
  2. 输入目标组织和项目名称
  3. 开始与代码仓库交互

验证

  1. 打开命令行工具
  2. 进入服务器目录并运行:
node src/index.js

故障排除

  • 如果出现认证错误,请检查 PAT 是否有效且具有所有必需范围
  • 确保目标组织和项目名称正确无误

开发

要修改或扩展服务器:

  1. src 目录中进行更改
  2. 运行 npm run watch 进行开发
  3. 完成后运行 npm run build
  4. 使用 inspector 工具测试:npm run inspector

📄 许可证

本项目采用 MIT License,详情请参阅 LICENSE

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client