@azure-devops/mcp 0.1.0 β†’ 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md CHANGED
@@ -1,247 +1,314 @@
1
- # ⭐ Azure DevOps MCP Server
2
-
3
- Easily install the Azure DevOps MCP Server for VS Code or VS Code Insiders:
4
-
5
- [![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-Install_AzureDevops_MCP_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40ado%2Fazure-devops-mcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
6
- [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_AzureDevops_MCP_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&quality=insiders&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40ado%2Fazure-devops-mcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
7
-
8
- This TypeScript project defines the **local** MCP server for Azure DevOps, enabling you to perform a wide range of Azure DevOps tasks directly from your code editor.
9
-
10
- > 🚨 **Public Preview:** This project is in public preview. You can expect that the tools will change before general availability.
11
-
12
- ## πŸ“„ Table of contents
13
-
14
- 1. [πŸ“Ί Overview](#-overview)
15
- 2. [βš™οΈ Supported tools](#️-supported-tools)
16
- 3. [πŸ”Œ Installation & getting started](#-installation--getting-started)
17
- 4. [πŸ”¦ Usage](#-usage)
18
- 5. [πŸ“ Troubleshooting](#-troubleshooting)
19
- 6. [🎩 Samples & best practices](#-samples--best-practices)
20
- 7. [πŸ“Œ Contributing](#️-contributing)
21
-
22
- ## πŸ“Ί Overview
23
-
24
- The Azure DevOps MCP Server brings Azure DevOps context to your agents. Try prompts like:
25
-
26
- - "List my ADO projects"
27
- - "List ADO Builds for 'Contoso'"
28
- - "List ADO Releases for 'Contoso'"
29
- - "List ADO Repos for 'Contoso'"
30
- - "List test plans for 'Contoso'"
31
- - "List teams for project 'Contoso'"
32
- - "List iterations for project 'Contoso'"
33
- - "List my work items for project 'Contoso'"
34
- - "List work items in current iteration for 'Contoso' project and 'Contoso Team'"
35
-
36
- ## βš™οΈ Supported tools
37
-
38
- Interact with these Azure DevOps services:
39
-
40
- ### 🧿 Core
41
-
42
- - **core_list_project_teams**: Retrieve a list of teams for the specified Azure DevOps project.
43
- - **core_list_projects**: Retrieve a list of projects in your Azure DevOps organization.
44
-
45
- ### βš’οΈ Work
46
-
47
- - **work_list_team_iterations**: Retrieve a list of iterations for a specific team in a project.
48
- - **work_create_iterations**: Create new iterations in a specified Azure DevOps project.
49
- - **work_assign_iterations**: Assign existing iterations to a specific team in a project.
50
-
51
- ### πŸ“… Work Items
52
-
53
- - **wit_my_work_items**: Retrieve a list of work items relevent to the authenticated user.
54
- - **wit_list_backlogs**: Revieve a list of backlogs for a given project and team.
55
- - **wit_list_backlog_work_items**: Retrieve a list of backlogs of for a given project, team, and backlog category.
56
- - **wit_get_work_item**: Get a single work item by ID.
57
- - **wit_get_work_items_batch_by_ids**: Retrieve list of work items by IDs in batch.
58
- - **wit_update_work_item**: Update a work item by ID with specified fields.
59
- - **wit_create_work_item**: Create a new work item in a specified project and work item type.
60
- - **wit_list_work_item_comments**: Retrieve list of comments for a work item by ID.
61
- - **wit_get_work_items_for_iteration**: Retrieve a list of work items for a specified iteration.
62
- - **wit_add_work_item_comment**: Add comment to a work item by ID.
63
- - **wit_add_child_work_item**: Create a child work item from a parent by ID.
64
- - **wit_link_work_item_to_pull_request**: Link a single work item to an existing pull request.
65
- - **wit_get_work_item_type**: Get a specific work item type.
66
- - **wit_get_query**: Get a query by its ID or path.
67
- - **wit_get_query_results_by_id**: Retrieve the results of a work item query given the query ID.
68
- - **wit_update_work_items_batch**: Update work items in batch.
69
- - **wit_close_and_link_workitem_duplicates**: Close duplicate work items by id.
70
- - **wit_work_items_link**: Link work items together in batch.
71
-
72
- ### πŸ“ Repositories
73
-
74
- - **repo_list_repos_by_project**: Retrieve a list of repositories for a given project.
75
- - **repo_list_pull_requests_by_repo**: Retrieve a list of pull requests for a given repository.
76
- - **repo_list_pull_requests_by_project**: Retrieve a list of pull requests for a given project Id or Name.
77
- - **repo_list_branches_by_repo**: Retrieve a list of branches for a given repository.
78
- - **repo_list_my_branches_by_repo**: Retrieve a list of my branches for a given repository Id.
79
- - **repo_list_pull_request_threads**: Retrieve a list of comment threads for a pull request.
80
- - **repo_list_pull_request_thread_comments**: Retrieve a list of comments in a pull request thread.
81
- - **repo_get_repo_by_name_or_id**: Get the repository by project and repository name or ID.
82
- - **repo_get_branch_by_name**: Get a branch by its name.
83
- - **repo_get_pull_request_by_id**: Get a pull request by its ID.
84
- - **repo_create_pull_request**: Create a new pull request.
85
- - **repo_update_pull_request_status**: Update status of an existing pull request to active or abandoned.
86
- - **repo_reply_to_comment**: Replies to a specific comment on a pull request.
87
- - **repo_resolve_comment**: Resolves a specific comment thread on a pull request.
88
-
89
- ### πŸ›°οΈ Builds
90
-
91
- - **build_get_definitions**: Retrieves a list of build definitions for a given project.
92
- - **build_get_definition_revisions**: Retrieves a list of revisions for a specific build definition.
93
- - **build_get_builds**: Retrieves a list of builds for a given project.
94
- - **build_get_log**: Retrieves the logs for a specific build.
95
- - **build_get_log_by_id**: Get a specific build log by log ID.
96
- - **build_get_changes**: Get the changes associated with a specific build.
97
- - **build_run_build**: Triggers a new build for a specified definition.
98
- - **build_get_status**: Fetches the status of a specific build.
99
-
100
- ### πŸš€ Releases
101
-
102
- - **release_get_definitions**: Retrieves list of release definitions for a given project.
103
- - **release_get_releases**: Retrieves a list of releases for a given project.
104
-
105
- ### πŸ§ͺ Test Plans
106
-
107
- - **testplan_create_test_plan**: Creates a new test plan in the project.
108
- - **testplan_create_test_case**: Creates a new test case work item.
109
- - **testplan_add_test_cases_to_suite**: Adds existing test cases to a test suite.
110
- - **testplan_list_test_plans**: Retrieve a paginated list of test plans from an Azure DevOps project. Allows filtering for active plans and toggling detailed information.
111
- - **testplan_list_test_cases**: Gets a list of test cases in the test plan.
112
- - **testplan_show_test_results_from_build_id**: Gets a list of test results for a given project and build ID.
113
-
114
- ### πŸ”Ž Search
115
-
116
- - **search_code**: Get the code search results for a given search text.
117
- - **search_wiki**: Get wiki search results for a given search text.
118
- - **search_workitem**: Get work item search results for a given search text.
119
-
120
- ## πŸ”Œ Installation & getting started
121
-
122
- Clone the repository, install dependencies, and add it to your MCP client configuration.
123
-
124
- ### Visual Studio Code & GitHub Copilot
125
-
126
- For the best experience, use Visual Studio Code and GitHub Copilot.
127
-
128
- ### Prerequisites
129
-
130
- 1. Install [VS Code](https://code.visualstudio.com/download) or [VS Code Insiders](https://code.visualstudio.com/insiders)
131
- 2. Install [Node.js](https://nodejs.org/en/download) 20+
132
- 3. Open VS Code in an empty folder
133
-
134
- ### Azure Login
135
-
136
- Ensure you are logged in to Azure DevOps via the Azure CLI:
137
-
138
- ```sh
139
- az login
140
- ```
141
-
142
- ### Installation
143
-
144
- #### ✨ One-Click install
145
-
146
- [![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-Install_AzureDevops_MCP_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40ado%2Fazure-devops-mcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
147
- [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_AzureDevops_MCP_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&quality=insiders&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40ado%2Fazure-devops-mcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
148
-
149
- After installation, select GitHub Copilot Agent Mode and refresh the tools list. Learn more about Agent Mode in the [VS Code Documentation](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode).
150
-
151
- #### πŸ› οΈ Installing from source (dev mode)
152
-
153
- This installation method is recommended for advanced users and contributors who want immediate access to the latest updates from the main branch. It is ideal if you are developing new tools, enhancing existing features, or maintaining a custom fork.
154
-
155
- > **Note:** For most users, installing from the public feed is simpler and preferred. Use source installation only if you need the latest changes or are actively contributing to the project.
156
-
157
- ##### Steps
158
-
159
- 1. Clone the repository.
160
- 2. Install dependencies:
161
- ```sh
162
- npm install
163
- ```
164
- 3. Edit or add `.vscode/mcp.json`:
165
-
166
- ```json
167
- {
168
- "inputs": [
169
- {
170
- "id": "ado_org",
171
- "type": "promptString",
172
- "description": "Azure DevOps organization name (e.g. 'contoso')"
173
- }
174
- ],
175
- "servers": {
176
- "ado": {
177
- "type": "stdio",
178
- "command": "mcp-server-azuredevops",
179
- "args": ["${input:ado_org}"]
180
- }
181
- }
182
- }
183
- ```
184
-
185
- 4. Start the Azure DevOps MCP Server:
186
- 5. In chat, switch to [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode).
187
- 6. Click "Select Tools" and choose the available `ado_` tools.
188
-
189
- See [How To](./docs/HOWTO.md) section for details
190
-
191
- #### Placeholder for public feed
192
-
193
- Update for Public Feed
194
-
195
- ## πŸ”¦ Usage
196
-
197
- ### Visual Studio Code + GitHub Copilot
198
-
199
- 1. Open GitHub Copilot in VS Code and switch to Agent mode.
200
- 2. Start the Azure DevOps MCP Server.
201
- 3. The server appears in the tools list.
202
- 4. Try prompts like "List ADO projects".
203
-
204
- ### Visual Studio + GitHub Copilot
205
-
206
- > *Prerequisites:* Visual Studio 2022 v17.14+, Agent mode enabled in Tools > Options > GitHub > Copilot > Copilot Chat.
207
-
208
- 1. Switch to Agent mode in the Copilot Chat window.
209
- 2. Enter your Azure DevOps organization name.
210
- 3. Select desired `ado` tools.
211
- 4. Try prompts like "List ADO projects".
212
-
213
- For more details, see [Visual Studio MCP Servers documentation](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022) and [Getting Started Video](https://www.youtube.com/watch?v=oPFecZHBCkg).
214
-
215
- ## πŸ“ Troubleshooting
216
-
217
- See the [Troubleshooting guide](./docs/TROUBLESHOOTING.md) for help with common issues and logging.
218
-
219
- ## 🎩 Samples & best practices
220
-
221
- Find sample prompts and best practices in our [How-to Guide](./docs/HOWTO.md).
222
-
223
- ## πŸ“Œ Contributing
224
-
225
- We welcome contributions! During preview, please file Issues for bugs, enhancements, or documentation improvements.
226
-
227
- See our [Contributions Guide](./CONTRIBUTING.md) for:
228
-
229
- - πŸ› οΈ Development setup
230
- - ✨ Adding new tools
231
- - πŸ“ Code style & testing
232
- - πŸ”„ Pull request process
233
-
234
- ## 🀝 Code of conduct
235
-
236
- This project follows the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
237
- For questions, see the [FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [open@microsoft.com](mailto:open@microsoft.com).
238
-
239
- ## License
240
-
241
- Licensed under the [MIT License](./LICENSE.md).
242
-
243
- ---
244
-
245
- _Trademarks: This project may include trademarks or logos for Microsoft or third parties. Use of Microsoft trademarks or logos must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Third-party trademarks are subject to their respective policies._
246
-
247
- <!-- version: 2023-04-07 [Do not delete this line, it is used for analytics that drive template improvements] -->
1
+ # ⭐ Azure DevOps MCP Server
2
+
3
+ Easily install the Azure DevOps MCP Server for VS Code or VS Code Insiders:
4
+
5
+ [![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-Install_AzureDevops_MCP_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40azure-devops%2Fmcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
6
+ [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_AzureDevops_MCP_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&quality=insiders&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40azure-devops%2Fmcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
7
+
8
+ This TypeScript project defines the **local** MCP server for Azure DevOps, enabling you to perform a wide range of Azure DevOps tasks directly from your code editor.
9
+
10
+ > 🚨 **Public Preview:** This project is in public preview. You can expect that the tools will change before general availability.
11
+
12
+ ## πŸ“„ Table of contents
13
+
14
+ 1. [πŸ“Ί Overview](#-overview)
15
+ 2. [πŸ† Expectations](#-expectations)
16
+ 3. [βš™οΈ Supported tools](#️-supported-tools)
17
+ 4. [πŸ”Œ Installation & getting started](#-installation--getting-started)
18
+ 5. [πŸ”¦ Usage](#-usage)
19
+ 6. [πŸ“ Troubleshooting](#-troubleshooting)
20
+ 7. [🎩 Samples & best practices](#-samples--best-practices)
21
+ 8. [πŸ™‹β€β™€οΈ Frequently asked questions](#️-frequently-asked-questions)
22
+ 9. [πŸ“Œ Contributing](#-contributing)
23
+
24
+ ## πŸ“Ί Overview
25
+
26
+ The Azure DevOps MCP Server brings Azure DevOps context to your agents. Try prompts like:
27
+
28
+ - "List my ADO projects"
29
+ - "List ADO Builds for 'Contoso'"
30
+ - "List ADO Releases for 'Contoso'"
31
+ - "List ADO Repos for 'Contoso'"
32
+ - "List test plans for 'Contoso'"
33
+ - "List teams for project 'Contoso'"
34
+ - "List iterations for project 'Contoso'"
35
+ - "List my work items for project 'Contoso'"
36
+ - "List work items in current iteration for 'Contoso' project and 'Contoso Team'"
37
+
38
+ ## πŸ† Expectations
39
+
40
+ The Azure DevOps MCP Server is built from tools that are concise, simple, focused, and easy to use. Each designed for a specific scenario. We intentionally avoid complex tools that try to do too much. The goal is to provide a thin abstraction layer over the REST APIs, making data access straightforward and letting the language model handle the complex reasoning.
41
+
42
+ ## βš™οΈ Supported tools
43
+
44
+ Interact with these Azure DevOps services:
45
+
46
+ ### 🧿 Core
47
+
48
+ - **core_list_project_teams**: Retrieve a list of teams for the specified Azure DevOps project.
49
+ - **core_list_projects**: Retrieve a list of projects in your Azure DevOps organization.
50
+
51
+ ### βš’οΈ Work
52
+
53
+ - **work_list_team_iterations**: Retrieve a list of iterations for a specific team in a project.
54
+ - **work_create_iterations**: Create new iterations in a specified Azure DevOps project.
55
+ - **work_assign_iterations**: Assign existing iterations to a specific team in a project.
56
+
57
+ ### πŸ“… Work Items
58
+
59
+ - **wit_my_work_items**: Retrieve a list of work items relevant to the authenticated user.
60
+ - **wit_list_backlogs**: Retrieve a list of backlogs for a given project and team.
61
+ - **wit_list_backlog_work_items**: Retrieve a list of backlogs for a given project, team, and backlog category.
62
+ - **wit_get_work_item**: Get a single work item by ID.
63
+ - **wit_get_work_items_batch_by_ids**: Retrieves a list of work items by IDs in batch.
64
+ - **wit_update_work_item**: Update a work item by ID with specified fields.
65
+ - **wit_create_work_item**: Create a new work item in a specified project and work item type.
66
+ - **wit_list_work_item_comments**: Retrieves a list of comments for a work item by ID.
67
+ - **wit_get_work_items_for_iteration**: Retrieves a list of work items for a specified iteration.
68
+ - **wit_add_work_item_comment**: Add comment to a work item by ID.
69
+ - **wit_add_child_work_items**: Create one or many child work items of a specific work item type for the given parent Id
70
+ - **wit_link_work_item_to_pull_request**: Link a single work item to an existing pull request.
71
+ - **wit_get_work_item_type**: Get a specific work item type.
72
+ - **wit_get_query**: Get a query by its ID or path.
73
+ - **wit_get_query_results_by_id**: Retrieve the results of a work item query given the query ID.
74
+ - **wit_update_work_items_batch**: Update work items in batch.
75
+ - **wit_close_and_link_workitem_duplicates**: Close duplicate work items by id.
76
+ - **wit_work_items_link**: Link work items together in batch.
77
+
78
+ #### Deprecated tools
79
+
80
+ - **wit_add_child_work_item**: Replaced by `wit_add_child_work_items` so that you can create one or many child items per call.
81
+
82
+ ### πŸ“ Repositories
83
+
84
+ - **repo_list_repos_by_project**: Retrieve a list of repositories for a given project.
85
+ - **repo_list_pull_requests_by_repo**: Retrieve a list of pull requests for a given repository.
86
+ - **repo_list_pull_requests_by_project**: Retrieve a list of pull requests for a given project Id or Name.
87
+ - **repo_list_branches_by_repo**: Retrieve a list of branches for a given repository.
88
+ - **repo_list_my_branches_by_repo**: Retrieve a list of my branches for a given repository Id.
89
+ - **repo_list_pull_requests_by_commits**: List pull requests associated with commits.
90
+ - **repo_list_pull_request_threads**: Retrieve a list of comment threads for a pull request.
91
+ - **repo_list_pull_request_thread_comments**: Retrieve a list of comments in a pull request thread.
92
+ - **repo_get_repo_by_name_or_id**: Get the repository by project and repository name or ID.
93
+ - **repo_get_branch_by_name**: Get a branch by its name.
94
+ - **repo_get_pull_request_by_id**: Get a pull request by its ID.
95
+ - **repo_create_pull_request**: Create a new pull request.
96
+ - **repo_update_pull_request_status**: Update status of an existing pull request to active or abandoned.
97
+ - **repo_reply_to_comment**: Replies to a specific comment on a pull request.
98
+ - **repo_resolve_comment**: Resolves a specific comment thread on a pull request.
99
+ - **repo_search_commits**: Searches for commits.
100
+
101
+ ### πŸ›°οΈ Builds
102
+
103
+ - **build_get_definitions**: Retrieves a list of build definitions for a given project.
104
+ - **build_get_definition_revisions**: Retrieves a list of revisions for a specific build definition.
105
+ - **build_get_builds**: Retrieves a list of builds for a given project.
106
+ - **build_get_log**: Retrieves the logs for a specific build.
107
+ - **build_get_log_by_id**: Get a specific build log by log ID.
108
+ - **build_get_changes**: Get the changes associated with a specific build.
109
+ - **build_run_build**: Triggers a new build for a specified definition.
110
+ - **build_get_status**: Fetches the status of a specific build.
111
+ - **build_update_build_stage**: Updates the stage of a specific build.
112
+
113
+ ### πŸš€ Releases
114
+
115
+ - **release_get_definitions**: Retrieves a list of release definitions for a given project.
116
+ - **release_get_releases**: Retrieves a list of releases for a given project.
117
+
118
+ ### πŸ§ͺ Test Plans
119
+
120
+ - **testplan_create_test_plan**: Creates a new test plan in the project.
121
+ - **testplan_create_test_case**: Creates a new test case work item.
122
+ - **testplan_add_test_cases_to_suite**: Adds existing test cases to a test suite.
123
+ - **testplan_list_test_plans**: Retrieve a paginated list of test plans from an Azure DevOps project. Allows filtering for active plans and toggling detailed information.
124
+ - **testplan_list_test_cases**: Gets a list of test cases in the test plan.
125
+ - **testplan_show_test_results_from_build_id**: Gets a list of test results for a given project and build ID.
126
+
127
+ ### πŸ”Ž Search
128
+
129
+ - **search_code**: Get the code search results for a given search text.
130
+ - **search_wiki**: Get wiki search results for a given search text.
131
+ - **search_workitem**: Get work item search results for a given search text.
132
+
133
+ ## πŸ”Œ Installation & getting started
134
+
135
+ Clone the repository, install dependencies, and add it to your MCP client configuration.
136
+
137
+ ### Visual Studio Code & GitHub Copilot
138
+
139
+ For the best experience, use Visual Studio Code and GitHub Copilot.
140
+
141
+ ### Prerequisites
142
+
143
+ 1. Install [VS Code](https://code.visualstudio.com/download) or [VS Code Insiders](https://code.visualstudio.com/insiders)
144
+ 2. Install [Node.js](https://nodejs.org/en/download) 20+
145
+ 3. Install [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)
146
+ 4. Open VS Code in an empty folder
147
+
148
+ ### Azure Login
149
+
150
+ Ensure you are logged in to Azure DevOps via the Azure CLI:
151
+
152
+ ```sh
153
+ az login
154
+ ```
155
+
156
+ ### Installation
157
+
158
+ #### ✨ One-Click install
159
+
160
+ [![Install with NPX in VS Code](https://img.shields.io/badge/VS_Code-Install_AzureDevops_MCP_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40azure-devops%2Fmcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
161
+ [![Install with NPX in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_AzureDevops_MCP_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=ado&quality=insiders&config=%7B%20%22type%22%3A%20%22stdio%22%2C%20%22command%22%3A%20%22npx%22%2C%20%22args%22%3A%20%5B%22-y%22%2C%20%22%40azure-devops%2Fmcp%22%2C%20%22%24%7Binput%3Aado_org%7D%22%5D%7D&inputs=%5B%7B%22id%22%3A%20%22ado_org%22%2C%20%22type%22%3A%20%22promptString%22%2C%20%22description%22%3A%20%22Azure%20DevOps%20organization%20name%20%20%28e.g.%20%27contoso%27%29%22%7D%5D)
162
+
163
+ After installation, select GitHub Copilot Agent Mode and refresh the tools list. Learn more about Agent Mode in the [VS Code Documentation](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode).
164
+
165
+ #### 🧨 Installing from public feed (recommended)
166
+
167
+ This installation method is the easiest for all users using Visual Studio Code.
168
+
169
+ πŸŽ₯ [Watch this quick start video to get up and running in under two minutes!](https://youtu.be/EUmFM6qXoYk)
170
+
171
+ ##### Steps
172
+
173
+ 1. In your project, add a `.vscode\mcp.json` file and add the following:
174
+
175
+ ```json
176
+ {
177
+ "inputs": [
178
+ {
179
+ "id": "ado_org",
180
+ "type": "promptString",
181
+ "description": "Azure DevOps organization name (e.g. 'contoso')"
182
+ }
183
+ ],
184
+ "servers": {
185
+ "ado": {
186
+ "type": "stdio",
187
+ "command": "npx",
188
+ "args": ["-y", "@azure-devops/mcp", "${input:ado_org}"]
189
+ }
190
+ }
191
+ }
192
+ ```
193
+
194
+ 2. Save the file, then click 'Start`
195
+
196
+ <img src="./docs/media/start-mcp-server.gif" alt="start mcp server" width="250"/>
197
+
198
+ 3. In chat, switch to [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode).
199
+ 4. Click "Select Tools" and choose the available tools.
200
+ 5. We strongly recommend that you create a `.github\copilot-instructions.md` in your project and copy and paste the contents from this [copilot-instructions.md](./.github/copilot-instructions.md) file. This will enhance your experience using the Azure DevOps MCP Server with GitHub Copilot Chat.
201
+
202
+ #### πŸ› οΈ Installing from source (dev mode)
203
+
204
+ This installation method is recommended for advanced users and contributors who want immediate access to the latest updates from the main branch. It is ideal if you are developing new tools, enhancing existing features, or maintaining a custom fork.
205
+
206
+ > **Note:** For most users, installing from the public feed is simpler and preferred. Use the source installation only if you need the latest changes or are actively contributing to the project.
207
+
208
+ ##### Steps
209
+
210
+ 1. Clone the repository.
211
+ 2. Install dependencies:
212
+ ```sh
213
+ npm install
214
+ ```
215
+ 3. Edit or add `.vscode/mcp.json`:
216
+
217
+ ```json
218
+ {
219
+ "inputs": [
220
+ {
221
+ "id": "ado_org",
222
+ "type": "promptString",
223
+ "description": "Azure DevOps organization's name (e.g. 'contoso')"
224
+ }
225
+ ],
226
+ "servers": {
227
+ "ado": {
228
+ "type": "stdio",
229
+ "command": "mcp-server-azuredevops",
230
+ "args": ["${input:ado_org}"]
231
+ }
232
+ }
233
+ }
234
+ ```
235
+
236
+ 4. Start the Azure DevOps MCP Server
237
+
238
+ <img src="./docs/media/start-mcp-server.gif" alt="start mcp server" width="250"/>
239
+
240
+ 5. In chat, switch to [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode).
241
+ 6. Click "Select Tools" and choose the available tools.
242
+ 7. We strongly recommend that you create a `.github\copilot-instructions.md` in your project and copy and paste the contents from this [copilot-instructions.md](./.github/copilot-instructions.md) file. This will help your experience when it comes to using the Azure DevOps MCP Server in GitHub Copilot Chat.
243
+
244
+ See [How To](./docs/HOWTO.md) section for details
245
+
246
+ ## πŸ”¦ Usage
247
+
248
+ ### Visual Studio Code + GitHub Copilot
249
+
250
+ 1. Open GitHub Copilot in VS Code and switch to Agent mode.
251
+ 2. Start the Azure DevOps MCP Server.
252
+ 3. The server appears in the tools list.
253
+ 4. Try prompts like "List ADO projects".
254
+
255
+ ### Visual Studio + GitHub Copilot
256
+
257
+ > _Prerequisites:_ Visual Studio 2022 v17.14+, Agent mode enabled in Tools > Options > GitHub > Copilot > Copilot Chat.
258
+
259
+ 1. Switch to Agent mode in the Copilot Chat window.
260
+ 2. Enter your Azure DevOps organization name.
261
+ 3. Select desired `ado` tools.
262
+ 4. Try prompts like "List ADO projects".
263
+
264
+ For more details, see [Visual Studio MCP Servers documentation](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022) and [Getting Started Video](https://www.youtube.com/watch?v=oPFecZHBCkg).
265
+
266
+ ## πŸ“ Troubleshooting
267
+
268
+ See the [Troubleshooting guide](./docs/TROUBLESHOOTING.md) for help with common issues and logging.
269
+
270
+ ## 🎩 Samples & best practices
271
+
272
+ Find sample prompts and best practices in our [How-to Guide](./docs/HOWTO.md).
273
+
274
+ ## πŸ™‹β€β™€οΈ Frequently asked questions
275
+
276
+ For answers to common questions about the Azure DevOps MCP Server, see the [Frequently Asked Questions](./docs/FAQ.md).
277
+
278
+ ## πŸ“Œ Contributing
279
+
280
+ We welcome contributions! During preview, please file Issues for bugs, enhancements, or documentation improvements.
281
+
282
+ See our [Contributions Guide](./CONTRIBUTING.md) for:
283
+
284
+ - πŸ› οΈ Development setup
285
+ - ✨ Adding new tools
286
+ - πŸ“ Code style & testing
287
+ - πŸ”„ Pull request process
288
+
289
+ ## 🀝 Code of conduct
290
+
291
+ This project follows the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
292
+ For questions, see the [FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [open@microsoft.com](mailto:open@microsoft.com).
293
+
294
+ ## πŸ“ˆ Project Stats
295
+
296
+ [![Star History Chart](https://api.star-history.com/svg?repos=microsoft/azure-devops-mcp&type=Date)](https://star-history.com/#microsoft/azure-devops-mcp)
297
+
298
+ ## πŸ† Hall of Fame
299
+
300
+ Thanks to all contributors who make this project awesome! ❀️
301
+
302
+ [![Contributors](https://contrib.rocks/image?repo=microsoft/azure-devops-mcp)](https://github.com/microsoft/azure-devops-mcp/graphs/contributors)
303
+
304
+ > Generated with [contrib.rocks](https://contrib.rocks)
305
+
306
+ ## License
307
+
308
+ Licensed under the [MIT License](./LICENSE.md).
309
+
310
+ ---
311
+
312
+ _Trademarks: This project may include trademarks or logos for Microsoft or third parties. Use of Microsoft trademarks or logos must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Third-party trademarks are subject to their respective policies._
313
+
314
+ <!-- version: 2023-04-07 [Do not delete this line, it is used for analytics that drive template improvements] -->