Provides tools for managing Git repositories in Azure DevOps, including listing repositories, branches, commits, file contents, and creating or deleting branches.
Enables GitHub Copilot in VS Code to interact with Azure DevOps through natural language queries for managing work items, repositories, and branches.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure DevOps MCP Serverlist all active bugs assigned to me"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure DevOps MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with Azure DevOps. This server enables AI assistants to manage work items, repositories, branches, commits, and more.
Features
Work Items: Query, create, update, delete work items, comments, linking, attachments, and cycle time tracking
Git Repositories: List repos, branches, commits, and file contents
Pull Requests: Full PR lifecycle, reviewers, comments, merging
Pipelines & Builds: List, run, cancel pipelines and builds, view logs
Releases: Release definitions, deployments, approvals
Boards: Kanban boards, columns, swimlanes, card movement
Wiki: Create, update, delete wiki pages
Test Plans: Test plans, suites, cases, runs, and results
Artifacts: Package feeds and packages
Project & Teams: Projects, teams, iterations, area paths
Users & Notifications: User search, notification subscriptions
Dashboards & Policies: Dashboard management, branch policies
Transport Modes
The server supports two transport modes:
Mode | Use Case | Command |
STDIO | Claude Desktop, VS Code, local CLI tools |
|
HTTP | Web apps, remote clients, SaaS deployment |
|
Prerequisites
Node.js 18 or higher
An Azure DevOps organization
A Personal Access Token (PAT) with appropriate permissions
Installation
Configuration
Environment Variables
Variable | Required | Description |
| Yes | Personal Access Token |
| Yes | Organization URL (e.g., |
| No | Default project name |
| No | HTTP server port (default: 3000) |
| No | Session timeout in minutes (default: 30) |
| No | Allowed CORS origins (comma-separated) |
Generating a Personal Access Token
Go to Azure DevOps → User Settings → Personal Access Tokens
Click "New Token"
Configure the following scopes:
Work Items: Read & Write
Code: Read & Write
Build: Read & Execute
Release: Read, Write & Execute
Test Management: Read & Write
Wiki: Read & Write
Packaging: Read
Project and Team: Read
Service Connections: Read
Variable Groups: Read
Dashboard: Read
Copy the generated token
Claude Desktop Configuration
Add to your claude_desktop_config.json (typically located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
VS Code with GitHub Copilot Configuration
To use this MCP server with GitHub Copilot in VS Code:
Enable MCP support in VS Code (requires GitHub Copilot Chat extension):
Open VS Code Settings (Ctrl+, or Cmd+,)
Search for "mcp"
Enable
GitHub > Copilot > Chat > MCP: Enabled
Configure the MCP server by adding to your VS Code
settings.json:
Alternatively, create a .vscode/mcp.json file in your workspace:
Restart VS Code after configuration changes.
Use the tools in GitHub Copilot Chat by asking questions like:
"List all active bugs in Azure DevOps"
"Create a new task titled 'Fix login bug'"
"Show me the branches in the main repository"
Note: MCP support in GitHub Copilot requires the latest version of the GitHub Copilot Chat extension. If you don't see MCP settings, update your extension.
HTTP Mode
For web applications, remote clients, or when you want to run the server as a standalone service:
Quick Start:
Test the server:
Docker:
For detailed HTTP API documentation, see docs/HTTP_API.md.
Implementation Status
All tools are implemented, including type-specific work item tools beyond the original specification.
Category | Tools | Status |
Work Items (Core) | 23 | ✅ Complete |
Work Item Linking | 3 | ✅ Complete |
Work Item Attachments | 4 | ✅ Complete |
Git Repositories | 10 | ✅ Complete |
Pull Requests | 11 | ✅ Complete |
Boards | 5 | ✅ Complete |
Projects & Teams | 7 | ✅ Complete |
Pipelines | 7 | ✅ Complete |
Builds (Classic) | 6 | ✅ Complete |
Releases | 9 | ✅ Complete |
Wiki | 7 | ✅ Complete |
Test Plans | 7 | ✅ Complete |
Artifacts | 5 | ✅ Complete |
Service Connections | 2 | ✅ Complete |
Variable Groups | 2 | ✅ Complete |
Users | 3 | ✅ Complete |
Notifications | 1 | ✅ Complete |
Dashboards | 2 | ✅ Complete |
Branch Policies | 2 | ✅ Complete |
Total: 116 tools implemented
Available Tools
Work Items (Core)
Tool | Description |
| Query work items using WIQL |
| Get full details of a work item |
| Create a new work item |
| Update an existing work item |
| Delete or recycle a work item |
| Add a comment to a work item |
| Search work items by keyword (requires search text) |
| Query work items with flexible filtering (no search text required) |
| List Epic work items with optional filtering |
| List Feature work items with optional filtering |
| List User Story work items with optional filtering |
| List Bug work items with optional filtering |
| List Task work items with optional filtering |
| Get Epic details by ID with type validation |
| Get Feature details by ID with type validation |
| Get User Story details with acceptance criteria and story points |
| Get Bug details with repro steps, severity, and system info |
| Get Task details with work tracking fields |
| Create an Epic with type-specific fields |
| Create a Feature with optional parent Epic link |
| Create a User Story with acceptance criteria and story points |
| Create a Bug with repro steps and severity |
| Create a Task with work estimates and activity type |
Work Item Linking
Tool | Description |
| Create a link between work items |
| Remove a link between work items |
| Get all linked work items |
Work Item Attachments
Tool | Description |
| Add file attachment from base64 |
| Add attachment from URL |
| List attachments on a work item |
| Remove an attachment |
Git Repositories
Tool | Description |
| List all repositories in a project |
| Get repository details |
| List branches in a repository |
| Get branch details with latest commit |
| List commits in a repository |
| Get commit details with file changes |
| Get content of a file |
| List files in a repository path |
| Create a new branch |
| Delete a branch |
Pull Requests
Tool | Description |
| List pull requests with filters |
| Get PR details |
| Create a new pull request |
| Update PR title/description/status |
| Add a reviewer to a PR |
| Remove a reviewer from a PR |
| Add a comment to a PR |
| Get all comments on a PR |
| Complete/merge a PR |
| Get linked work items |
| Link a work item to a PR |
Boards
Tool | Description |
| Get boards for a team |
| Get columns for a board |
| Get items on a board |
| Move a card to a column/lane |
| Get swimlanes for a board |
Projects & Teams
Tool | Description |
| List all projects |
| Get project details |
| List teams in a project |
| Get team members |
| List iterations for a team |
| Get the current iteration |
| List area paths |
Pipelines
Tool | Description |
| List YAML pipelines |
| Get pipeline details |
| List pipeline runs |
| Get run details |
| Start a pipeline run |
| Cancel a running pipeline |
| Get logs for a run |
Builds (Classic)
Tool | Description |
| List build definitions |
| List builds |
| Get build details |
| Queue a new build |
| Cancel a build |
| Get build logs |
Releases
Tool | Description |
| List release definitions |
| Get definition details |
| List releases |
| Get release details |
| Create a new release |
| Deploy to an environment |
| Get environment status |
| Approve a deployment |
| Get deployment logs |
Wiki
Tool | Description |
| List wikis in a project |
| Get wiki details |
| Get wiki page content |
| Create a new wiki page |
| Update a wiki page |
| Delete a wiki page |
| List pages in a wiki |
Test Plans
Tool | Description |
| List test plans |
| Get test plan details |
| List test suites |
| Get test suite details |
| List test cases in a suite |
| List test runs |
| Get test results |
Artifacts
Tool | Description |
| List artifact feeds |
| Get feed details |
| List packages in a feed |
| Get package details |
| Get package versions |
Service Connections
Tool | Description |
| List service connections |
| Get connection details |
Variable Groups
Tool | Description |
| List variable groups |
| Get group details with variables |
Users
Tool | Description |
| Get authenticated user info |
| Search for users |
| Get user details |
Notifications
Tool | Description |
| List notification subscriptions |
Dashboards
Tool | Description |
| List dashboards |
| Get dashboard with widgets |
Branch Policies
Tool | Description |
| List branch policies |
| Get policy details |
Example Usage
List Active Bugs (Simple)
List All Epics in a Sprint
Query Work Items with Flexible Filters
Query Active Bugs (Advanced WIQL)
Create a Task
List Repository Branches
Get Cycle Time Data
Work item get tools return firstActivatedDate (when work started) and cycleTimeDays (time from activation to close):
For list tools, enable cycle time with includeActivatedDate (adds API calls per item):
Development
Troubleshooting
Common PAT Issues
401 Unauthorized: PAT may be expired or invalid
403 Forbidden: PAT lacks required scope permissions
404 Not Found: Project or resource doesn't exist, or PAT can't access it
Connection Issues
Verify
ADO_ORG_URLis correct (should behttps://dev.azure.com/orgname)Ensure PAT hasn't expired
Check that PAT has access to the target project
License
MIT