使用说明
Azure DevOps MCP服务器
用于Azure DevOps的MCP服务器-通过Claude管理拉取请求、工作项、管道和变量组。
特性
4个类别的13个工具:
- 拉取请求 (3个工具):创建、列出、获取详细信息
- 工作项 (3个工具):查询、获取、创建
- 管道 (4个工具):列表、运行、检查状态、取消
- 可变组 (3个工具):列表、获取、更新变量
快速开始
适用于Claude桌面用户
想在Claude Desktop上使用这个吗?请参阅 Claude桌面设置指南 获取分步说明。
用于开发/测试
# 1. Clone repository
git clone <repo-url>
cd azure-devops-mcp
# 2. Set up project
make setup
# 3. Configure environment variables
export AZURE_DEVOPS_EXT_PAT="your-pat-token"
export AZURE_DEVOPS_ORG="https://dev.azure.com/your-org"
export AZURE_DEVOPS_PROJECT="your-project"
# 4. Run the server
make run
文档
- Claude桌面设置 -与Claude Desktop应用程序一起使用
- 安装指南 -开发安装和配置
- 工具参考 -完整的工具文档
- 故障排除 -常见问题和解决方案
需求
- Python 3.11+
- Azure CLI 2.30.0+,带DevOps扩展
- 具有所需作用域的Azure DevOps个人访问令牌:
- 代码:读写
- 工作项目:读写
- 构建:读取并执行
- 发布:读取、写入和执行
发展
命令
make setup # Bootstrap project (create venv, install deps)
make lint # Lint and format code
make test # Run unit tests
make test-e2e # Run end-to-end tests (requires Azure DevOps)
make dev # Launch MCP Inspector for interactive testing
make run # Run server
项目结构
azure-devops-mcp/
├── src/
│ └── azure_devops_mcp/
│ ├── server.py # FastMCP entry point
│ ├── tools/ # 13 tools
│ │ ├── pull_requests.py # PR tools
│ │ ├── work_items.py # Work item tools
│ │ ├── pipelines.py # Pipeline tools
│ │ └── variable_groups.py # Variable group tools
│ ├── utils/ # Core utilities
│ │ ├── azure_cli.py # Azure CLI executor
│ │ ├── context.py # Context manager
│ │ ├── errors.py # Error handler
│ │ └── formatters.py # Response formatters
│ └── schemas/
│ └── models.py # Pydantic input models
├── tests/ # Test suite
├── docs/ # Documentation
├── pyproject.toml # Dependencies & config
└── Makefile # Development commands
许可证
麻省理工学院