@azure-devops/mcp 2.2.2-nightly.20251110 → 2.2.2-nightly.20251112
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/dist/tools/repositories.js +4 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -111,7 +111,8 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
111
111
|
isDraft: z.boolean().optional().default(false).describe("Indicates whether the pull request is a draft. Defaults to false."),
|
|
112
112
|
workItems: z.string().optional().describe("Work item IDs to associate with the pull request, space-separated."),
|
|
113
113
|
forkSourceRepositoryId: z.string().optional().describe("The ID of the fork repository that the pull request originates from. Optional, used when creating a pull request from a fork."),
|
|
114
|
-
|
|
114
|
+
labels: z.array(z.string()).optional().describe("Array of label names to add to the pull request after creation."),
|
|
115
|
+
}, async ({ repositoryId, sourceRefName, targetRefName, title, description, isDraft, workItems, forkSourceRepositoryId, labels }) => {
|
|
115
116
|
const connection = await connectionProvider();
|
|
116
117
|
const gitApi = await connection.getGitApi();
|
|
117
118
|
const workItemRefs = workItems ? workItems.split(" ").map((id) => ({ id: id.trim() })) : [];
|
|
@@ -122,6 +123,7 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
122
123
|
},
|
|
123
124
|
}
|
|
124
125
|
: undefined;
|
|
126
|
+
const labelDefinitions = labels ? labels.map((label) => ({ name: label })) : undefined;
|
|
125
127
|
const pullRequest = await gitApi.createPullRequest({
|
|
126
128
|
sourceRefName,
|
|
127
129
|
targetRefName,
|
|
@@ -130,6 +132,7 @@ function configureRepoTools(server, tokenProvider, connectionProvider, userAgent
|
|
|
130
132
|
isDraft,
|
|
131
133
|
workItemRefs: workItemRefs,
|
|
132
134
|
forkSource,
|
|
135
|
+
labels: labelDefinitions,
|
|
133
136
|
}, repositoryId);
|
|
134
137
|
const trimmedPullRequest = trimPullRequest(pullRequest, true);
|
|
135
138
|
return {
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.2.2-nightly.
|
|
1
|
+
export const packageVersion = "2.2.2-nightly.20251112";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-devops/mcp",
|
|
3
|
-
"version": "2.2.2-nightly.
|
|
3
|
+
"version": "2.2.2-nightly.20251112",
|
|
4
4
|
"description": "MCP server for interacting with Azure DevOps",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Microsoft Corporation",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@azure/identity": "^4.10.0",
|
|
41
41
|
"@azure/msal-node": "^3.6.0",
|
|
42
|
-
"@modelcontextprotocol/sdk": "1.21.
|
|
42
|
+
"@modelcontextprotocol/sdk": "1.21.1",
|
|
43
43
|
"azure-devops-extension-api": "^4.252.0",
|
|
44
44
|
"azure-devops-extension-sdk": "^4.0.2",
|
|
45
45
|
"azure-devops-node-api": "^15.1.0",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"ts-jest": "^29.4.0",
|
|
62
62
|
"tsconfig-paths": "^4.2.0",
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
|
-
"typescript-eslint": "^8.
|
|
64
|
+
"typescript-eslint": "^8.46.4"
|
|
65
65
|
}
|
|
66
66
|
}
|