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
Copy file name to clipboardExpand all lines: README.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,30 @@ Edit `src/Viamus.Azure.Devops.Mcp.Server/appsettings.json` with your Azure DevOp
43
43
}
44
44
```
45
45
46
+
For multiple Azure DevOps organizations or PATs, keep one entry per organization and select it in tool calls with the optional `organization` argument:
> **Need a PAT?** See [Creating a Personal Access Token](#creating-a-personal-access-token-pat) below.
47
71
48
72
### 2. Run the server
@@ -96,6 +120,8 @@ The script will automatically:
96
120
- Configure your Azure DevOps credentials
97
121
- Register the MCP server with Claude Code (HTTPS transport)
98
122
123
+
For multiple organizations/PATs, run the installer for the primary organization, then add `AzureDevOps:Organizations` entries to `appsettings.json` or use the Docker environment variables from `.env.example`.
124
+
99
125
After installation, start the server:
100
126
```powershell
101
127
cd $env:USERPROFILE\mcp-azure-devops
@@ -198,6 +224,16 @@ This project implements an MCP server that exposes tools for querying and managi
198
224
199
225
5. Click **Create** and **copy the token immediately** (you won't see it again!)
200
226
227
+
### Multiple Organizations / PATs
228
+
229
+
The server supports one PAT per configured Azure DevOps organization. Existing single-organization settings still work:
230
+
231
+
-`AzureDevOps:OrganizationUrl`
232
+
-`AzureDevOps:PersonalAccessToken`
233
+
-`AzureDevOps:DefaultProject`
234
+
235
+
For multiple PATs, configure `AzureDevOps:Organizations` with `Name`, `OrganizationUrl`, `PersonalAccessToken`, and optional `DefaultProject`. Set `AzureDevOps:DefaultOrganization` to choose the fallback organization. Tool calls can pass `organization` as the configured `Name`, the full organization URL, or the organization slug from `https://dev.azure.com/{slug}`.
236
+
201
237
---
202
238
203
239
## Running Options
@@ -212,6 +248,8 @@ Best for: Production use, quick setup without .NET installed
212
248
# Edit .env with your Azure DevOps credentials
213
249
```
214
250
251
+
For multiple organizations/PATs, fill `AZURE_DEVOPS_ORGANIZATION_0_*`, `AZURE_DEVOPS_ORGANIZATION_1_*`, and `AZURE_DEVOPS_DEFAULT_ORGANIZATION` in `.env`.
252
+
215
253
2. Start the server:
216
254
```bash
217
255
docker compose up -d
@@ -447,6 +485,7 @@ After configuring the MCP client, you can ask questions like:
447
485
2. Check PAT hasn't expired in Azure DevOps
448
486
3. Ensure PAT has required scopes (Work Items, Code, Build)
449
487
4. Verify the organization URL is correct (no trailing slash)
488
+
5. If using multiple organizations, verify the tool call's `organization` value matches a configured `Name`, URL, or Azure DevOps organization slug
0 commit comments