@azure-devops/mcp 2.7.0-nightly.20260526 → 2.7.0-nightly.20260527

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
@@ -90,7 +90,7 @@ For a comprehensive list of local tools, see [TOOLSET.md](./docs/TOOLSET.md).
90
90
 
91
91
  Use this section if you specifically need the local `stdio` server experience. For most users, start with the [Remote MCP Server](#-remote-mcp-server-recommended) section above.
92
92
 
93
- 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, Cursor, Opencode, and Kilocode.
93
+ 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, Codex, Claude Code, Cursor, Opencode, and Kilocode.
94
94
 
95
95
  ### Prerequisites
96
96
 
@@ -165,7 +165,7 @@ Open GitHub Copilot Chat and try a prompt like `List ADO projects`. The first ti
165
165
  > 💥 We strongly recommend creating a `.github\copilot-instructions.md` in your project. This will enhance your experience using the Azure DevOps MCP Server with GitHub Copilot Chat.
166
166
  > To start, just include "`This project uses Azure DevOps. Always check to see if the Azure DevOps MCP server has a tool relevant to the user's request`" in your copilot instructions file.
167
167
 
168
- 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.
168
+ See the [getting started documentation](./docs/GETTINGSTARTED.md) to use our MCP Server with other tools such as Visual Studio 2022, Codex, Claude Code, and Cursor.
169
169
 
170
170
  ## 🌏 Using Domains (local)
171
171
 
@@ -91,11 +91,13 @@ function trimPullRequest(pr, includeDescription = false) {
91
91
  if (!pr) {
92
92
  return null;
93
93
  }
94
+ const statusName = typeof pr.status === "number" ? (PullRequestStatus[pr.status] ?? "Unknown") : "Unknown";
94
95
  return {
95
96
  pullRequestId: pr.pullRequestId,
96
97
  codeReviewId: pr.codeReviewId,
97
98
  repository: pr.repository?.name,
98
99
  status: pr.status,
100
+ statusName,
99
101
  createdBy: {
100
102
  displayName: pr.createdBy?.displayName,
101
103
  uniqueName: pr.createdBy?.uniqueName,
@@ -1617,7 +1619,18 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
1617
1619
  WaitingForAuthor: -5,
1618
1620
  Rejected: -10,
1619
1621
  };
1620
- await gitApi.createPullRequestReviewer({ vote: voteMap[vote], id: userId }, repositoryId, pullRequestId, userId, project);
1622
+ const existingReviewer = await gitApi.getPullRequestReviewer(repositoryId, pullRequestId, userId, project).catch((error) => {
1623
+ if (!(error instanceof Error) || !/not found|reviewer does not exist/i.test(error.message)) {
1624
+ throw error;
1625
+ }
1626
+ return undefined;
1627
+ });
1628
+ const reviewerPayload = {
1629
+ vote: voteMap[vote],
1630
+ id: userId,
1631
+ ...(existingReviewer?.isRequired !== undefined ? { isRequired: existingReviewer.isRequired } : {}),
1632
+ };
1633
+ await gitApi.createPullRequestReviewer(reviewerPayload, repositoryId, pullRequestId, userId, project);
1621
1634
  return {
1622
1635
  content: [
1623
1636
  {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const packageVersion = "2.7.0-nightly.20260526";
1
+ export const packageVersion = "2.7.0-nightly.20260527";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-devops/mcp",
3
- "version": "2.7.0-nightly.20260526",
3
+ "version": "2.7.0-nightly.20260527",
4
4
  "mcpName": "microsoft.com/azure-devops",
5
5
  "description": "MCP server for interacting with Azure DevOps",
6
6
  "license": "MIT",