You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding new GETTINGSTARTED.MD and EXAMPLES.MD and then reorganizing
content around that.
## GitHub issue number
N/A
## **Associated Risks**
None
## ✅ **PR Checklist**
- [x] **I have read the [contribution
guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CONTRIBUTING.md)**
- [x] **I have read the [code of conduct
guidelines](https://github.com/microsoft/azure-devops-mcp/blob/main/CODE_OF_CONDUCT.md)**
- [x] Title of the pull request is clear and informative.
- [x] 👌 Code hygiene
- [x] 🔭 Telemetry added, updated, or N/A
- [x] 📄 Documentation added, updated, or N/A
- [x] 🛡️ Automated tests added, or N/A
## 🧪 **How did you test it?**
Manual review
@@ -135,14 +134,7 @@ Interact with these Azure DevOps services:
135
134
136
135
## 🔌 Installation & Getting Started
137
136
138
-
Clone the repository, install dependencies, and add it to your MCP client configuration.
139
-
140
-
[VS Code and GitHub Copilot](#%EF%B8%8F-visual-studio-code--github-copilot)<br/>
141
-
[Visual Studio 2022 and GitHub Copilot](#%EF%B8%8F-visual-studio-2022--github-copilot)
142
-
143
-
### ➡️ Visual Studio Code & GitHub Copilot
144
-
145
-
For the best experience, use Visual Studio Code and GitHub Copilot.
137
+
For the best experience, use Visual Studio Code and GitHub Copilot. See the [getting started documentation](./docs/GETTINGSTARTED.md) to use our MCP Server with other tools such as Visual Studio 2022, Claude Code, and Cursor.
146
138
147
139
### Prerequisites
148
140
@@ -176,108 +168,7 @@ This installation method is the easiest for all users of Visual Studio Code.
176
168
177
169
##### Steps
178
170
179
-
1. In your project, add a `.vscode\mcp.json` file with the following content:
180
-
181
-
```json
182
-
{
183
-
"inputs": [
184
-
{
185
-
"id": "ado_org",
186
-
"type": "promptString",
187
-
"description": "Azure DevOps organization name (e.g. 'contoso')"
3. In chat, switch to [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode).
205
-
4. Click "Select Tools" and choose the available tools.
206
-
5. We strongly recommend creating a `.github\copilot-instructions.md` in your project and copying 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.
207
-
208
-
#### 🛠️ Install from Source (Dev Mode)
209
-
210
-
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.
211
-
212
-
> **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.
213
-
214
-
##### Steps
215
-
216
-
1. Clone the repository.
217
-
2. Install dependencies:
218
-
219
-
```sh
220
-
npm install
221
-
```
222
-
223
-
3. Edit or add `.vscode/mcp.json`:
224
-
225
-
```json
226
-
{
227
-
"inputs": [
228
-
{
229
-
"id": "ado_org",
230
-
"type": "promptString",
231
-
"description": "Azure DevOps organization's name (e.g. 'contoso')"
5. In chat, switch to [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode).
249
-
6. Click "Select Tools" and choose the available tools.
250
-
7. We strongly recommend creating a `.github\copilot-instructions.md` in your project and copying the contents from this [copilot-instructions.md](./.github/copilot-instructions.md) file. This will help you get the best experience using the Azure DevOps MCP Server in GitHub Copilot Chat.
251
-
252
-
See the [How To](./docs/HOWTO.md) section for details.
253
-
254
-
### ➡️ Visual Studio 2022 & GitHub Copilot
255
-
256
-
For the best experience, use Visual Studio Code and GitHub Copilot 👆.
257
-
258
-
### Prerequisites
259
-
260
-
1. Install [VS Studio 2022 version 17.14](https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history) or later
4. Open Copilot chat and switch to [Agent Mode](https://learn.microsoft.com/en-us/visualstudio/ide/copilot-agent-mode?view=vs-2022).
307
-
5. Click the "Tools" icon and choose the available tools.
196
+
In chat, switch to [Agent Mode](https://code.visualstudio.com/blogs/2025/02/24/introducing-copilot-agent-mode).
308
197
309
-
<imgsrc="./docs/media/set-tools-from-vs.png"alt="set tools to use in visual studio 2022"width="250"/>
198
+
Click "Select Tools" and choose the available tools.
310
199
311
-
6. We strongly recommend creating a `.github\copilot-instructions.md` in your project and copying 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.
200
+
<imgsrc="./docs/media/configure-mcp-server-tools.gif"alt="configure mcp server tools"width="300"/>
312
201
313
-
## 🔦 Usage
202
+
Open GitHub Copilot Chat and try a prompt like `List ADO projects`.
314
203
315
-
### Visual Studio Code + GitHub Copilot
204
+
> 💥 We strongly recommend creating a `.github\copilot-instructions.md` in your project and copying 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.
316
205
317
-
1. Open GitHub Copilot in VS Code and switch to Agent mode.
318
-
2. Start the Azure DevOps MCP Server.
319
-
3. The server appears in the tools list.
320
-
4. Try prompts like "List ADO projects".
321
-
322
-
### Visual Studio + GitHub Copilot
323
-
324
-
> _Prerequisites:_ Visual Studio 2022 v17.14+, Agent mode enabled in Tools > Options > GitHub > Copilot > Copilot Chat.
325
-
326
-
1. Switch to Agent mode in the Copilot Chat window.
327
-
2. Enter your Azure DevOps organization name.
328
-
3. Select desired `ado` tools.
329
-
4. Try prompts like "List ADO projects".
330
-
331
-
For more details, see [Visual Studio MCP Servers documentation](https://learn.microsoft.com/en-us/visualstudio/ide/mcp-servers?view=vs-2022) and the [Getting Started Video](https://www.youtube.com/watch?v=oPFecZHBCkg).
206
+
See the [getting started documentation](./docs/GETTINGSTARTED.md) to use our MCP Server with other tools such as Visual Studio 2022, Claude Code, and Cursor.
332
207
333
208
## 📝 Troubleshooting
334
209
335
210
See the [Troubleshooting guide](./docs/TROUBLESHOOTING.md) for help with common issues and logging.
336
211
337
-
## 🎩 Samples & Best Practices
212
+
## 🎩 Examples & Best Practices
213
+
214
+
Explore example prompts in our [Examples documentation](./docs/EXAMPLES.md).
338
215
339
-
Find sample prompts and best practices in our [How-to Guide](./docs/HOWTO.md).
216
+
For best practices and tips to enhance your experience with the MCP Server, refer to the [How-To guide](./docs/HOWTO.md).
This guide offers step-by-step examples for using the Azure DevOps MCP Server to interact with your Azure DevOps organization. For additional tips and best practices, see the [How To guide](./HOWTO.md).
2
+
3
+
> 📝 These examples have been tested and validated only in English. If you encounter issues when using a different language, please open an issue in the repository so we can investigate.
4
+
5
+
[Get List of Projects](#get-list-of-projects)<br/>
6
+
[Get List of Teams](#get-list-of-teams)<br/>
7
+
[Get My Work Items](#get-my-work-items)<br/>
8
+
[Get Work Items in a Backlog](#get-all-work-items-in-a-backlog)<br/>
9
+
[Retrieve and Edit Work Items](#retrieve-and-edit-work-items)<br/>
10
+
[Create and Link Test Cases](#create-and-link-test-cases)<br/>
Most work item tools require project context. You can retrieve the list of projects and specify the desired project:
19
+
20
+
```plaintext
21
+
get list of ado projects
22
+
```
23
+
24
+
### Get List of Teams
25
+
26
+
This command returns all Azure DevOps projects for the organization defined in the `mcp.json` file. Similarly, you can retrieve the team context:
27
+
28
+
```plaintext
29
+
get list of teams for project contoso
30
+
```
31
+
32
+
📽️ [Azure DevOps MCP Server: Get list of projects and teams](https://youtu.be/x579E4_jNtY)
33
+
34
+
## 📅 Work Items
35
+
36
+
### Get My Work Items
37
+
38
+
Retrieve a list of work items assigned to you. This tool requires project context:
39
+
40
+
```plaintext
41
+
get my work items for project contoso
42
+
```
43
+
44
+
The model should automatically use the `wit_get_work_items_batch_by_ids` tool to fetch work item details.
45
+
46
+
📽️ [Azure DevOps MCP Server: Get my work items](https://youtu.be/y_ri8n7mBlg)
47
+
48
+
### Get All Work Items in a Backlog
49
+
50
+
You need project, team and backlog (Epics, Stories, Features) context in order to get a list of all the work items in a backlog.
51
+
52
+
```plaintext
53
+
get backlogs for Contoso project and Fabrikam team
54
+
```
55
+
56
+
Once you have the backlog levels, you can then get work items for that backlog.
57
+
58
+
```plaintext
59
+
get list of work items for Features backlog
60
+
```
61
+
62
+
The model should automatically use the `wit_get_work_items_batch_by_ids` tool to fetch work item details.
63
+
64
+
📽️ [Azure DevOps MCP Server: Get backlog](https://youtu.be/LouuyoscNrI)
65
+
66
+
### Retrieve and Edit Work Items
67
+
68
+
Get a work item, get the work item comments, update the work item fields, and add a new comment.
69
+
70
+
```plaintext
71
+
Get work item 12345 and show me fields ID, Type, State, Repro Steps, Story Points, and Priority. Get all comments for the work item and summarize them for me.
72
+
```
73
+
74
+
The model now has context of the work item. You can then update specific fields. In this case, we want the LLM to generate a better set of Repro Steps and then update the work item with those new steps. Along with updating the Story Points and State fields.
75
+
76
+
```plaintext
77
+
Polish the Repro Steps with more information and details. Then take that value and update the work item. Also update StoryPoints = 5 and State = Active.
78
+
```
79
+
80
+
Assign the work item to me and add a new comment.
81
+
82
+
```plaintext
83
+
Assign this work item to [email protected] and add a comment "I will own this Bug and get it fixed"
84
+
```
85
+
86
+
📽️ [Azure DevOps MCP Server: Work with Work Items](https://youtu.be/tT7wqSIPKdA)
87
+
88
+
### Create and Link Test Cases
89
+
90
+
Open a user story and automatically generate test cases with detailed steps based on the story's description. Link the generated test cases back to the original user story.
91
+
92
+
```plaintext
93
+
Open work item 1234 in 'Contoso' project. Then look at the description and create 1-3 Test Cases with test steps. But show me a preview first before creating the Test Case in Azure DevOps. Be sure to link the new Test Case to the User Story 1234 when you do.
94
+
```
95
+
96
+
📽️ [Azure DevOps MCP Server: Creating Test Cases from Work Item](https://youtu.be/G7fnYjlSh_w)
97
+
98
+
### Triage Work
99
+
100
+
Retrieve all work items in a backlog and triage them according to your own criteria. For example, you can fetch all bugs and user stories, identify security-related bugs, and assign them to the current team iteration. Similarly, you can select a few high-priority user stories and assign them to the most recent iteration.
101
+
102
+
Retrieve the team's iterations and backlog levels to provide the LLM with the necessary context for accurate work item management.
103
+
104
+
```plaintext
105
+
list iterations for Contoso team
106
+
```
107
+
108
+
```plaintext
109
+
list backlog levels for Contoso team
110
+
```
111
+
112
+
Retrieve the work items and their details, then instruct the LLM to identify security-related bugs and high-priority user stories. Assign the identified items to the current iteration and, if needed, to the next iteration.
113
+
114
+
```plaintext
115
+
List of work items for Stories backlog. But then go thru and find all the security related bugs. Assign the first 4 to the current iteration. If there are more than four, assign the rest to the next iteration. Then find 2-3 high priority user stories and assign them to the current iteration. Do it!
0 commit comments