@@ -20,6 +20,15 @@ git clone https://github.com/viamus/mcp-azure-devops.git
2020cd mcp-azure-devops
2121```
2222
23+ ** Option A — ` .env ` file (recommended for Docker):**
24+
25+ ``` bash
26+ cp .env.example .env
27+ # Edit .env with your Azure DevOps credentials
28+ ```
29+
30+ ** Option B — ` appsettings.json ` (for .NET CLI):**
31+
2332Edit ` src/Viamus.Azure.Devops.Mcp.Server/appsettings.json ` with your Azure DevOps credentials:
2433
2534``` json
@@ -133,10 +142,12 @@ This project implements an MCP server that exposes tools for querying and managi
133142| Tool | Description |
134143| ------| -------------|
135144| ` get_pull_requests ` | Lists pull requests with optional filters (status, creator, reviewer, branches) |
136- | ` get_pull_request ` | Gets details of a specific pull request by ID |
145+ | ` get_pull_request ` | Gets details of a specific pull request by ID within a repository |
146+ | ` get_pull_request_by_id ` | Gets details of a pull request by ID only, searching across all repositories in the project |
137147| ` get_pull_request_threads ` | Gets comment threads for a pull request |
138148| ` search_pull_requests ` | Searches pull requests by text in title or description |
139149| ` query_pull_requests ` | Advanced query with multiple combined filters |
150+ | ` create_pull_request ` | Creates a new pull request with title, description, source/target branches, draft flag, reviewers, and linked work items |
140151
141152### Pipeline/Build Tools
142153
@@ -208,9 +219,9 @@ Items are classified by urgency based on:
208219
209220| Scope | Permission | Required for |
210221| -------| ------------| --------------|
211- | Work Items | Read & Write | Work item operations |
212- | Code | Read | Git repositories and Pull Requests |
213- | Build | Read | Pipelines and Builds |
222+ | Work Items | Read & Write | Get, query, create, update work items and add comments |
223+ | Code | Read & Write | Git repositories, branches, files, and pull requests (Write required to create PRs) |
224+ | Build | Read | Pipelines and builds |
214225
2152265 . Click ** Create** and ** copy the token immediately** (you won't see it again!)
216227
@@ -222,9 +233,16 @@ Items are classified by urgency based on:
222233
223234Best for: Production use, quick setup without .NET installed
224235
225- ``` bash
226- docker compose up -d
227- ```
236+ 1 . Create your ` .env ` file from the template:
237+ ``` bash
238+ cp .env.example .env
239+ # Edit .env with your Azure DevOps credentials
240+ ```
241+
242+ 2 . Start the server:
243+ ``` bash
244+ docker compose up -d
245+ ```
228246
229247Server URL: ` http://localhost:8080 ` (internal)
230248
@@ -311,11 +329,11 @@ Or via environment variables:
311329# .NET CLI
312330ServerSecurity__ApiKey=your-secret-key ServerSecurity__RequireApiKey=true dotnet run
313331
314- # Docker
315- docker compose up -d # Configure in .env file
332+ # Docker — configure in .env file (see .env.example)
333+ docker compose up -d
316334```
317335
318- For Docker, add to your ` .env ` file:
336+ For Docker, add to your ` .env ` file (see ` .env.example ` for the full template) :
319337``` bash
320338MCP_API_KEY=your-secret-api-key
321339MCP_REQUIRE_API_KEY=true
@@ -397,10 +415,14 @@ After configuring the MCP client, you can ask questions like:
397415
398416- "Show me all active pull requests in the 'my-repo' repository"
399417- "Get details of pull request #123 "
418+ - "Find pull request #456 anywhere in the project"
400419- "What comments are on PR #456 ?"
401420- "Search for pull requests related to 'authentication'"
402421- "Show me PRs targeting the 'main' branch"
403422- "List PRs created by user@email.com "
423+ - "Create a pull request from 'feature/login' to 'main' titled 'Add login page'"
424+ - "Open a draft PR from my branch to main with a description of the changes"
425+ - "Create a PR and link it to work items #123 and #456 "
404426
405427### Pipelines and Builds
406428
@@ -538,8 +560,10 @@ mcp-azure-devops/
538560│ ├── Middleware/ # Middleware tests
539561│ ├── Models/ # DTO tests
540562│ └── Tools/ # Tool behavior tests
541- ├── .github/ # GitHub templates
563+ ├── .github/ # GitHub templates and workflows
564+ ├── .env.example # Environment variable template (copy to .env)
542565├── docker-compose.yml # Docker orchestration
566+ ├── install-mcp-azure-devops.ps1 # Windows automated installer
543567├── CONTRIBUTING.md # Contributor guide
544568├── CODE_OF_CONDUCT.md # Community guidelines
545569├── SECURITY.md # Security policy
0 commit comments