@azure-devops/mcp 2.7.0-nightly.20260503 → 2.7.0-nightly.20260504

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/README.md CHANGED
@@ -15,10 +15,11 @@ This TypeScript project provides a **local** MCP server for Azure DevOps, enabli
15
15
  4. [⚙️ Supported Tools](#️-supported-tools)
16
16
  5. [🔌 Installation & Getting Started](#-installation--getting-started)
17
17
  6. [🌏 Using Domains](#-using-domains)
18
- 7. [📝 Troubleshooting](#-troubleshooting)
19
- 8. [🎩 Examples & Best Practices](#-examples--best-practices)
20
- 9. [🙋‍♀️ Frequently Asked Questions](#️-frequently-asked-questions)
21
- 10. [📌 Contributing](#-contributing)
18
+ 7. [🐥 Project and Team Defaults](#-project-and-team-defaults)
19
+ 8. [📝 Troubleshooting](#-troubleshooting)
20
+ 9. [🎩 Examples & Best Practices](#-examples--best-practices)
21
+ 10. [🙋‍♀️ Frequently Asked Questions](#️-frequently-asked-questions)
22
+ 11. [📌 Contributing](#-contributing)
22
23
 
23
24
  ## 📺 Overview
24
25
 
@@ -170,6 +171,28 @@ We recommend that you always enable `core` tools so that you can fetch project l
170
171
 
171
172
  > By default all domains are loaded
172
173
 
174
+ ## 🐥 Project and Team Defaults
175
+
176
+ You can also configure default Azure DevOps project and team values from `.vscode/mcp.json` using `project` and `team`, so tools can skip selection prompts.
177
+
178
+ ### Example `.vscode/mcp.json`
179
+
180
+ ```json
181
+ {
182
+ "servers": {
183
+ "ado": {
184
+ "type": "stdio",
185
+ "command": "npx",
186
+ "args": ["-y", "@azure-devops/mcp", "myorg", "--authentication", "azcli"],
187
+ "env": {
188
+ "ado_mcp_project": "Contoso",
189
+ "ado_mcp_team": "Fabrikam Team"
190
+ }
191
+ }
192
+ }
193
+ }
194
+ ```
195
+
173
196
  ## 📝 Troubleshooting
174
197
 
175
198
  See the [Troubleshooting guide](./docs/TROUBLESHOOTING.md) for help with common issues and logging.
@@ -1,6 +1,11 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  export async function elicitProject(server, connection, message) {
4
+ // Check for default project from environment variable
5
+ const defaultProject = process.env.ado_mcp_project;
6
+ if (defaultProject) {
7
+ return { resolved: defaultProject };
8
+ }
4
9
  const coreApi = await connection.getCoreApi();
5
10
  const projects = await coreApi.getProjects("wellFormed", 100, 0, undefined, false);
6
11
  if (!projects || projects.length === 0) {
@@ -31,6 +36,11 @@ export async function elicitProject(server, connection, message) {
31
36
  return { resolved: String(result.content.project) };
32
37
  }
33
38
  export async function elicitTeam(server, connection, project, message) {
39
+ // Check for default team from environment variable
40
+ const defaultTeam = process.env.ado_mcp_team;
41
+ if (defaultTeam) {
42
+ return { resolved: defaultTeam };
43
+ }
34
44
  const coreApi = await connection.getCoreApi();
35
45
  const teams = await coreApi.getTeams(project, undefined, undefined, undefined, false);
36
46
  if (!teams || teams.length === 0) {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const packageVersion = "2.7.0-nightly.20260503";
1
+ export const packageVersion = "2.7.0-nightly.20260504";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-devops/mcp",
3
- "version": "2.7.0-nightly.20260503",
3
+ "version": "2.7.0-nightly.20260504",
4
4
  "mcpName": "microsoft.com/azure-devops",
5
5
  "description": "MCP server for interacting with Azure DevOps",
6
6
  "license": "MIT",