@azure-devops/mcp 2.10.0-nightly.20261018 → 2.10.0-nightly.20261020
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 +3 -17
- package/dist/tools/work-items.js +14 -2
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -98,18 +98,11 @@ These steps use Visual Studio Code and GitHub Copilot. For other supported clien
|
|
|
98
98
|
|
|
99
99
|
```json
|
|
100
100
|
{
|
|
101
|
-
"inputs": [
|
|
102
|
-
{
|
|
103
|
-
"id": "ado_org",
|
|
104
|
-
"type": "promptString",
|
|
105
|
-
"description": "Azure DevOps organization name (e.g. 'contoso')"
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
101
|
"servers": {
|
|
109
102
|
"ado": {
|
|
110
103
|
"type": "stdio",
|
|
111
104
|
"command": "npx",
|
|
112
|
-
"args": ["-y", "@azure-devops/mcp", "
|
|
105
|
+
"args": ["-y", "@azure-devops/mcp", "{organization}"]
|
|
113
106
|
}
|
|
114
107
|
}
|
|
115
108
|
}
|
|
@@ -136,18 +129,11 @@ Add `-d` followed by the domains to the server arguments. For example, this conf
|
|
|
136
129
|
|
|
137
130
|
```json
|
|
138
131
|
{
|
|
139
|
-
"inputs": [
|
|
140
|
-
{
|
|
141
|
-
"id": "ado_org",
|
|
142
|
-
"type": "promptString",
|
|
143
|
-
"description": "Azure DevOps organization name (e.g. 'contoso')"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
132
|
"servers": {
|
|
147
133
|
"ado_with_filtered_domains": {
|
|
148
134
|
"type": "stdio",
|
|
149
135
|
"command": "npx",
|
|
150
|
-
"args": ["-y", "@azure-devops/mcp", "
|
|
136
|
+
"args": ["-y", "@azure-devops/mcp", "{organization}", "-d", "core", "work", "work-items"]
|
|
151
137
|
}
|
|
152
138
|
}
|
|
153
139
|
}
|
|
@@ -169,7 +155,7 @@ Set default Azure DevOps project and team values in `.vscode/mcp.json` so tools
|
|
|
169
155
|
"ado": {
|
|
170
156
|
"type": "stdio",
|
|
171
157
|
"command": "npx",
|
|
172
|
-
"args": ["-y", "@azure-devops/mcp", "
|
|
158
|
+
"args": ["-y", "@azure-devops/mcp", "{organization}", "--authentication", "azcli"],
|
|
173
159
|
"env": {
|
|
174
160
|
"ado_mcp_project": "Contoso",
|
|
175
161
|
"ado_mcp_team": "Fabrikam Team"
|
package/dist/tools/work-items.js
CHANGED
|
@@ -22,6 +22,18 @@ const WORKITEM_TOOLS = {
|
|
|
22
22
|
wit_work_item_link_write: "wit_work_item_link_write",
|
|
23
23
|
};
|
|
24
24
|
const jsonPatchValueSchema = z.lazy(() => z.union([z.string(), z.number().finite(), z.boolean(), z.null(), z.array(jsonPatchValueSchema), z.record(jsonPatchValueSchema)]));
|
|
25
|
+
const readConsistencyHandler = {
|
|
26
|
+
prepareRequest(options) {
|
|
27
|
+
options.headers = { ...options.headers, "X-VSS-ReadConsistencyLevel": "Eventual" };
|
|
28
|
+
},
|
|
29
|
+
canHandleAuthentication: () => false,
|
|
30
|
+
async handleAuthentication() {
|
|
31
|
+
throw new Error("The read-consistency handler does not handle authentication.");
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
function getReadReplicaWorkItemTrackingApi(connection) {
|
|
35
|
+
return connection.getWorkItemTrackingApi(undefined, [connection.authHandler, readConsistencyHandler]);
|
|
36
|
+
}
|
|
25
37
|
function getLinkTypeFromName(name) {
|
|
26
38
|
switch (name.toLowerCase()) {
|
|
27
39
|
case "parent":
|
|
@@ -321,7 +333,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
321
333
|
if (action === "get_results") {
|
|
322
334
|
if (!id)
|
|
323
335
|
return { content: [{ type: "text", text: "id is required for get_results" }], isError: true };
|
|
324
|
-
const workItemApi = await connection
|
|
336
|
+
const workItemApi = await getReadReplicaWorkItemTrackingApi(connection);
|
|
325
337
|
const teamContext = { project: resolvedProject, team };
|
|
326
338
|
const queryResult = await workItemApi.queryById(id, teamContext, timePrecision, top);
|
|
327
339
|
if (responseType === "ids") {
|
|
@@ -333,7 +345,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
333
345
|
if (action === "wiql") {
|
|
334
346
|
if (!wiql)
|
|
335
347
|
return { content: [{ type: "text", text: "wiql is required for wiql" }], isError: true };
|
|
336
|
-
const workItemApi = await connection
|
|
348
|
+
const workItemApi = await getReadReplicaWorkItemTrackingApi(connection);
|
|
337
349
|
const teamContext = { project: resolvedProject, team };
|
|
338
350
|
const queryResult = await workItemApi.queryByWiql({ query: wiql }, teamContext, timePrecision, top);
|
|
339
351
|
return createExternalContentResponse(queryResult, "wiql query results");
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.10.0-nightly.
|
|
1
|
+
export const packageVersion = "2.10.0-nightly.20261020";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-devops/mcp",
|
|
3
|
-
"version": "2.10.0-nightly.
|
|
3
|
+
"version": "2.10.0-nightly.20261020",
|
|
4
4
|
"mcpName": "microsoft.com/azure-devops",
|
|
5
5
|
"description": "MCP server for interacting with Azure DevOps",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@azure/identity": "^4.13.0",
|
|
41
41
|
"@azure/logger": "^1.3.0",
|
|
42
42
|
"@azure/msal-node": "^5.5.0",
|
|
43
|
-
"@modelcontextprotocol/sdk": "1.
|
|
43
|
+
"@modelcontextprotocol/sdk": "1.31.0",
|
|
44
44
|
"azure-devops-extension-api": "^5.272.3",
|
|
45
45
|
"azure-devops-extension-sdk": "^4.0.2",
|
|
46
46
|
"azure-devops-node-api": "^15.1.2",
|