Azure DevOps MCP Server for Cline
适用于 Cline 的 Azure DevOps MCP 服务器
该模型上下文协议 (MCP) 服务器提供与 Azure DevOps 的集成,允许 Cline 与 Azure DevOps 服务进行交互。
先决条件
Node.js(v20 LTS 或更高版本)
npm(Node.js 附带)
Cline 安装
具有访问令牌的 Azure DevOps 帐户
Related MCP server: Azure DevOps MCP Server
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 Azure DevOps Server:
npx -y @smithery/cli install @stefanskiasan/azure-devops-mcp-server --client claude手动安装
克隆此存储库:
git clone https://github.com/stefanskiasan/azure-devops-mcp-server.git
cd azure-devops-mcp-server安装依赖项:
npm install构建服务器:
npm run build注意:构建输出( build/目录)不包含在版本控制中。您必须在克隆存储库后运行构建命令。
配置
1.获取 Azure DevOps 个人访问令牌(PAT)
转到 Azure DevOps 并登录
点击右上角的个人资料图片
选择“安全”
点击“新代币”
为您的令牌命名并选择所需的范围:
Code (read, write)- 用于拉取请求操作Work Items (read, write)- 用于工作项管理Build (read, execute)- 用于管道操作Wiki (read, write)- 用于 Wiki 操作Project and Team (read)- 有关项目和董事会的信息
复制生成的token
2. 配置 Cline MCP 设置
将服务器配置添加到您的 Cline MCP 设置文件:
对于 VSCode 扩展:
%APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json对于 Claude 桌面应用程序:
%LOCALAPPDATA%/Claude/claude_desktop_config.json
向mcpServers对象添加以下配置:
{
"mcpServers": {
"azure-devops": {
"command": "node",
"args": ["/absolute/path/to/azure-devops-server/build/index.js"],
"env": {
"AZURE_DEVOPS_ORG": "your-organization",
"AZURE_DEVOPS_PAT": "your-personal-access-token",
"AZURE_DEVOPS_PROJECT": "your-project-name"
},
"disabled": false,
"autoApprove": []
}
}
}替换以下值:
/absolute/path/to/azure-devops-server:克隆此存储库的绝对路径your-organization:您的 Azure DevOps 组织名称your-project-name:您的 Azure DevOps 项目名称your-personal-access-token:您在步骤 1 中生成的 PAT
可用工具
工作项目
get_work_item:通过 ID 获取工作项list_work_items:使用 WIQL 查询工作项create_work_item:创建一个新的工作项(Bug、任务、用户故事)update_work_item:更新现有工作项
板
get_boards:获取项目中可用的板
管道
list_pipelines:列出项目中的所有管道trigger_pipeline:执行管道
拉取请求
list_pull_requests:列出拉取请求create_pull_request:创建一个新的拉取请求update_pull_request:更新拉取请求get_pull_request:获取拉取请求详细信息
维基百科
get_wikis:列出项目中的所有 wikiget_wiki_page:获取 wiki 页面create_wiki:创建一个新的wikiupdate_wiki_page:创建或更新 wiki 页面
项目
list_projects:列出 Azure DevOps 组织中的所有项目
确认
添加配置后重启Cline(或VSCode)
Azure DevOps MCP 服务器现在应该列在 Cline 的功能中
您可以使用 MCP Inspector 验证安装:
npm run inspector故障排除
如果服务器未连接:
检查 MCP 设置中的路径是否正确
验证你的 Azure DevOps 凭据
检查 Cline 日志中是否有任何错误消息
如果出现身份验证错误:
确认您的 PAT 尚未过期
确保 PAT 具有所有必要的范围
仔细检查组织和项目名称
对于其他问题:
运行检查工具来验证服务器是否正常工作
检查服务器日志中是否有任何错误消息
发展
要修改或扩展服务器:
在
src目录中进行更改运行
npm run watch进行开发准备就绪后使用
npm run build进行构建使用检查器进行测试:
npm run inspector
执照
MIT 许可证 - 详情请参阅许可证
Maintenance
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
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Azure DevOps services including work items, repositories, pipelines, wikis, and test plans through a local MCP server that provides direct access to Azure DevOps REST APIs from your code editor.82,447MIT
- AlicenseNot gradedqualityCmaintenanceEnables integration with Azure DevOps services, allowing interaction with work items, pull requests, pipelines, wikis, boards, and projects through natural language in Cline and other MCP clients.2MIT
- FlicenseNot gradedqualityCmaintenanceProvides Azure DevOps integration through MCP, enabling management of projects, work items, teams, and policies via natural language. Supports bulk work item creation with hierarchical relationships and iteration assignments.222
- AlicenseBqualityDmaintenanceAzure DevOps MCP tools for Claude Code and Codex CLI, enabling interaction with boards, work items, repos, and pull requests via natural language.13MIT
Related MCP Connectors
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
One PAT, any MCP agent: Vercel, GitHub, Cloudflare, Supabase, GCP — unified dev infra gateway.
Linear MCP — wraps the Linear GraphQL API (OAuth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/stefanskiasan/azure-devops-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server