Azure DevOps MCP Server for Cline
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
This Model Context Protocol (MCP) server provides integration with Azure DevOps, allowing Cline to interact with Azure DevOps services.
Prerequisites
- Node.js (v20 LTS or higher)
- npm (comes with Node.js)
- A Cline installation
- Azure DevOps account with access tokens
Installation
Installing via Smithery
To install Azure DevOps Server for Claude Desktop automatically via Smithery:
Manual Installation
1. Clone this repository:
2. Install dependencies:
3. Build the server:
Note: The build output (build/ directory) is not included in version control. You must run the build command after cloning the repository.
Configuration
1. Get Azure DevOps Personal Access Token (PAT)
1. Go to Azure DevOps and sign in
2. Click on your profile picture in the top right
3. Select "Security"
4. Click "New Token"
5. Give your token a name and select the required scopes:
- Code (read, write) - For Pull Request operations
- Work Items (read, write) - For Work Item management
- Build (read, execute) - For Pipeline operations
- Wiki (read, write) - For Wiki operations
- Project and Team (read) - For Project and Board information
6. Copy the generated token
2. Configure Cline MCP Settings
Add the server configuration to your Cline MCP settings file:
- For VSCode extension: %APPDATA%/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
- For Claude desktop app: %LOCALAPPDATA%/Claude/claude_desktop_config.json
Add the following configuration to the mcpServers object:
Replace the following values:
- /absolute/path/to/azure-devops-server: The absolute path to where you cloned this repository
- your-organization: Your Azure DevOps organization name
- your-project-name: Your Azure DevOps project name
- your-personal-access-token: The PAT you generated in step 1
Available Tools
Work Items
- get_work_item: Get a work item by ID
- list_work_items: Query work items using WIQL
- create_work_item: Create a new work item (Bug, Task, User Story)
- update_work_item: Update an existing work item
Boards
- get_boards: Get available boards in the project
Pipelines
- list_pipelines: List all pipelines in the project
- trigger_pipeline: Execute a pipeline
Pull Requests
- list_pull_requests: List pull requests
- create_pull_request: Create a new pull request
- update_pull_request: Update a pull request
- get_pull_request: Get pull request details
Wiki
- get_wikis: List all wikis in the project
- get_wiki_page: Get a wiki page
- create_wiki: Create a new wiki
- update_wiki_page: Create or update a wiki page
Projects
- list_projects: List all projects in the Azure DevOps organization
Verification
1. Restart Cline (or VSCode) after adding the configuration
2. The Azure DevOps MCP server should now be listed in Cline's capabilities