Integrations
Manages environment configuration for connecting to Azure DevOps services, including organization URL and personal access tokens.
Provides repository operations and code search capabilities through integration with Azure DevOps Git repositories.
Leverages the official Node.js SDK for Azure DevOps to enable project management, work item tracking, and repository operations.
Azure DevOps MCP(模型上下文协议)
该项目是与 Azure DevOps 集成的模型上下文协议 (MCP) 的参考服务器实现。它使 AI 助手能够与 Azure DevOps 资源交互并以编程方式执行操作。
特征
- 使用官方 Node.js SDK 集成 Azure DevOps
- 支持模型上下文协议 (MCP)
- 项目管理运营
- 工作项管理
- 存储库操作
- 代码搜索功能
先决条件
- Node.js(建议使用 v18 或更高版本)
- 具有适当权限的 Azure DevOps 帐户
- Azure DevOps 个人访问令牌 (PAT)
安装
- 克隆存储库:
Copy
- 安装依赖项:
Copy
- 配置环境变量:
- 将
.env.example
复制到.env
- 填写所需的环境变量:
- 将
Copy
添加到光标
Copy
然后添加到 Cursor:
确保使用路径http://localhost:3000/sse
。你可以在环境中定义一个端口来更改端口。
环境配置
您的.env
文件中需要配置以下环境变量:
AZURE_DEVOPS_ORG_URL
:您的 Azure DevOps 组织 URLAZURE_DEVOPS_PAT
:Azure DevOps 的个人访问令牌.env.example
中指定的其他配置变量
可用脚本
npm run build
构建 TypeScript 项目npm run dev
- 使用热重载以开发模式运行服务器npm start
运行生产服务器
执照
麻省理工学院
This server cannot be installed
模型上下文协议的参考服务器实现,使 AI 助手能够与 Azure DevOps 资源交互并以编程方式执行项目管理、工作项跟踪、存储库操作和代码搜索等操作。