Ares DevOps MCP服务器🚀
🔌 兼容Cline、Cursor、Claude Desktop和任何其他MCP客户端! Ares DevOps MCP也与任何MCP客户端兼容
模型上下文协议(MCP)是一个开放标准,使人工智能系统能够与各种数据源和工具无缝交互,促进安全的双向连接。
Ares DevOps MCP服务器提供:
- 与Azure DevOps Git仓库无缝交互
- 安全的存储库和分支管理
- 高效的拉取请求创建和管理
- 使用TypeScript进行类型安全操作
- 管道自动化和监控
先决条件🔧
在开始之前,请确保您已经:
- 具有适当权限的Azure DevOps帐户
- 具有所需范围的个人访问令牌(PAT)
- 克劳德桌面或光标
- Node.js(v14或更高版本)
- Git已安装(仅在使用Git安装方法时需要)
Ares DevOps MCP服务器安装⚡
使用NPX运行
npx -y ares-devops-mcp@latest通过Smithery安装
要通过Smithery自动安装Ares DevOps MCP Server for Claude Desktop,请执行以下操作:
npx -y @smithery/cli install @ares-devops/mcp --client claude配置MCP客户端⚙️
配置Cline🤖
在Cline中设置Ares DevOps MCP服务器的最简单方法是单击一下市场:
- 在VS代码中打开Cline
- 点击侧边栏中的Cline图标
- 导航到“MCP服务器”选项卡(4个方块)
- 搜索“Ares DevOps”并点击“安装”
- 出现提示时,输入您的Azure DevOps凭据
或者,您可以在Cline中手动设置Ares DevOps MCP服务器:
- 打开Cline MCP设置文件:
# For macOS:
code ~/Library/Application\ Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
# For Windows:
code %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json- 将Ares DevOps服务器配置添加到文件中:
{
"mcpServers": {
"ares-devops-mcp": {
"command": "npx",
"args": ["-y", "ares-devops-mcp@latest"],
"env": {
"AZURE_DEVOPS_ORG": "your-organization",
"AZURE_DEVOPS_PROJECT": "your-project",
"AZURE_DEVOPS_PAT": "your-pat-token"
},
"disabled": false,
"autoApprove": []
}
}
}- 保存文件并重新启动Cline(如果它已经在运行)。
配置光标🖥️
备注:需要Cursor 0.45.6或更高版本
在Cursor中设置Ares DevOps MCP服务器:
- 打开光标设置
- 导航到功能>MCP服务器
- 点击“+添加新MCP服务器”按钮
- 填写以下信息:
- 名字:输入服务器的昵称(例如,“ares-devops-mcp”) - 类型:选择“command”作为类型 - 命令:输入运行服务器的命令:
env AZURE_DEVOPS_ORG=your-org AZURE_DEVOPS_PROJECT=your-project AZURE_DEVOPS_PAT=your-pat npx -y ares-devops-mcp@latest> 重要:用您的Azure DevOps凭据替换环境变量
配置Claude Desktop应用程序🖥️
对于macOS:
# Create the config file if it doesn't exist
touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
# Opens the config file in TextEdit
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"对于Windows:
code %APPDATA%\Claude\claude_desktop_config.json添加Ares DevOps服务器配置:
{
"mcpServers": {
"ares-devops-mcp": {
"command": "npx",
"args": ["-y", "ares-devops-mcp@latest"],
"env": {
"AZURE_DEVOPS_ORG": "your-organization",
"AZURE_DEVOPS_PROJECT": "your-project",
"AZURE_DEVOPS_PAT": "your-pat-token"
}
}
}
}在Claude桌面应用程序中的使用🎯
一旦安装完成,并且配置了Claude桌面应用程序,您必须完全关闭并重新打开Claude桌面程序,才能看到ares-devops-mcp服务器。您应该在应用程序的左下角看到一个锤子图标,指示可用的MCP工具。
Ares DevOps示例
- 创建存储库:
Create a new repository named "my-project" in Azure DevOps.- 创建拉取请求:
Create a pull request from "feature-branch" to "main" in repository "my-project" with title "New Feature" and description "Adding new functionality".- 列出管道:
List all available pipelines in the project.- 获取提交历史记录:
Get the commit history for the "main" branch in repository "my-project".故障排除🛠️
常见问题
- 找不到服务器
- 通过运行验证npm安装 npm --version - 检查Claude Desktop配置语法 - 通过运行以下命令确保Node.js已正确安装 node --version
- 身份验证问题
- 确认您的Azure DevOps PAT有效并且具有所需的范围 - 检查配置中的PAT设置是否正确 - 验证PAT周围没有空格或引号
- 存储库访问问题
- 验证Azure DevOps项目中是否存在该存储库 - 检查存储库权限 - 确保PAT具有适当的访问权限
致谢✨
- MCP规范的模型上下文协议
- 克劳德桌面的拟人化
- 用于API的Microsoft Azure DevOps
