@azure-devops/mcp 2.11.0-nightly.20261029 → 2.11.0-nightly.20261031
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/shared/domains.js +2 -7
- package/dist/shared/tool-annotations.js +0 -1
- package/dist/shared/tool-schemas.js +5 -0
- package/dist/tools/pipelines.js +6 -5
- package/dist/tools/work-items.js +4 -3
- package/dist/tools.js +0 -4
- package/dist/version.js +1 -1
- package/package.json +2 -3
- package/dist/tools/mcp-apps.js +0 -22
package/dist/shared/domains.js
CHANGED
|
@@ -15,7 +15,6 @@ export var Domain;
|
|
|
15
15
|
Domain["WIKI"] = "wiki";
|
|
16
16
|
Domain["WORK"] = "work";
|
|
17
17
|
Domain["WORK_ITEMS"] = "work-items";
|
|
18
|
-
Domain["MCP_APPS"] = "mcp-apps";
|
|
19
18
|
})(Domain || (Domain = {}));
|
|
20
19
|
export const ALL_DOMAINS = "all";
|
|
21
20
|
/**
|
|
@@ -70,9 +69,7 @@ export class DomainsManager {
|
|
|
70
69
|
this.enableAllDomains();
|
|
71
70
|
}
|
|
72
71
|
else {
|
|
73
|
-
logger.error(`Error: Specified invalid domain '${domain}'. Please specify exactly as available domains: ${Object.values(Domain)
|
|
74
|
-
.filter((d) => d !== Domain.MCP_APPS)
|
|
75
|
-
.join(", ")}`);
|
|
72
|
+
logger.error(`Error: Specified invalid domain '${domain}'. Please specify exactly as available domains: ${Object.values(Domain).join(", ")}`);
|
|
76
73
|
}
|
|
77
74
|
});
|
|
78
75
|
if (this.enabledDomains.size === 0) {
|
|
@@ -80,9 +77,7 @@ export class DomainsManager {
|
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
enableAllDomains() {
|
|
83
|
-
Object.values(Domain)
|
|
84
|
-
.filter((domain) => domain !== Domain.MCP_APPS)
|
|
85
|
-
.forEach((domain) => this.enabledDomains.add(domain));
|
|
80
|
+
Object.values(Domain).forEach((domain) => this.enabledDomains.add(domain));
|
|
86
81
|
}
|
|
87
82
|
/**
|
|
88
83
|
* Check if a specific domain is enabled
|
|
@@ -22,7 +22,6 @@ const TOOL_ANNOTATIONS = {
|
|
|
22
22
|
core_get_identity_ids: READ_ONLY_ANNOTATIONS,
|
|
23
23
|
core_list_projects: READ_ONLY_ANNOTATIONS,
|
|
24
24
|
core_list_project_teams: READ_ONLY_ANNOTATIONS,
|
|
25
|
-
mcp_apps_ping: { ...READ_ONLY_ANNOTATIONS, openWorldHint: false },
|
|
26
25
|
pipelines_artifact: MUTATING_ANNOTATIONS,
|
|
27
26
|
pipelines_build: READ_ONLY_ANNOTATIONS,
|
|
28
27
|
pipelines_build_log: READ_ONLY_ANNOTATIONS,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
// Preserve date coercion while exposing the existing string/date-time wire schema.
|
|
5
|
+
export const dateInputSchema = z.unknown().meta({ type: "string", format: "date-time" }).pipe(z.coerce.date());
|
package/dist/tools/pipelines.js
CHANGED
|
@@ -9,6 +9,7 @@ import { StageUpdateType } from "azure-devops-node-api/interfaces/BuildInterface
|
|
|
9
9
|
import { ConfigurationType, RepositoryType } from "azure-devops-node-api/interfaces/PipelinesInterfaces.js";
|
|
10
10
|
import { mkdirSync, createWriteStream } from "fs";
|
|
11
11
|
import { createExternalContentResponse } from "../shared/content-safety.js";
|
|
12
|
+
import { dateInputSchema } from "../shared/tool-schemas.js";
|
|
12
13
|
import { join, posix, resolve, win32 } from "path";
|
|
13
14
|
import { Readable, Transform } from "stream";
|
|
14
15
|
import { pipeline } from "stream/promises";
|
|
@@ -143,8 +144,8 @@ function configurePipelineTools(server, tokenProvider, connectionProvider, userA
|
|
|
143
144
|
definitions: z.array(z.coerce.number().min(1)).optional().describe("Array of build definition IDs to filter builds. Used for: list."),
|
|
144
145
|
queues: z.array(z.coerce.number().min(1)).optional().describe("Array of queue IDs to filter builds. Used for: list."),
|
|
145
146
|
buildNumber: z.string().optional().describe("Build number to filter builds. Used for: list."),
|
|
146
|
-
minTime:
|
|
147
|
-
maxTime:
|
|
147
|
+
minTime: dateInputSchema.optional().describe("Minimum finish time to filter builds. Used for: list."),
|
|
148
|
+
maxTime: dateInputSchema.optional().describe("Maximum finish time to filter builds. Used for: list."),
|
|
148
149
|
requestedFor: z.string().optional().describe("User ID or name who requested the build. Used for: list."),
|
|
149
150
|
reasonFilter: z.number().optional().describe("Reason filter (see BuildReason enum). Used for: list."),
|
|
150
151
|
statusFilter: z.number().optional().describe("Status filter (see BuildStatus enum). Used for: list."),
|
|
@@ -242,10 +243,10 @@ function configurePipelineTools(server, tokenProvider, connectionProvider, userA
|
|
|
242
243
|
queryOrder: z.enum(definitionQueryOrderKeys).optional().describe("Order in which definitions are returned. Used for: list."),
|
|
243
244
|
top: z.number().optional().describe("Maximum number of definitions to return. Used for: list."),
|
|
244
245
|
continuationToken: z.string().optional().describe("Token for continuing paged results. Used for: list."),
|
|
245
|
-
minMetricsTime:
|
|
246
|
+
minMetricsTime: dateInputSchema.optional().describe("Minimum metrics time to filter definitions. Used for: list."),
|
|
246
247
|
definitionIds: z.array(z.coerce.number().min(1)).optional().describe("Array of definition IDs to filter. Used for: list."),
|
|
247
|
-
builtAfter:
|
|
248
|
-
notBuiltAfter:
|
|
248
|
+
builtAfter: dateInputSchema.optional().describe("Return definitions that have builds after this date. Used for: list."),
|
|
249
|
+
notBuiltAfter: dateInputSchema.optional().describe("Return definitions without builds after this date. Used for: list."),
|
|
249
250
|
includeAllProperties: z.boolean().optional().describe("Whether to include all properties in results. Used for: list."),
|
|
250
251
|
includeLatestBuilds: z.boolean().optional().describe("Whether to include the latest builds for each definition. Used for: list."),
|
|
251
252
|
taskIdFilter: z.string().optional().describe("Task ID to filter build definitions. Used for: list."),
|
package/dist/tools/work-items.js
CHANGED
|
@@ -9,6 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
import { batchApiVersion, markdownCommentsApiVersion, getEnumKeys, safeEnumConvert, encodeFormattedValue } from "../utils.js";
|
|
10
10
|
import { elicitProject, elicitTeam } from "../shared/elicitations.js";
|
|
11
11
|
import { createExternalContentResponse } from "../shared/content-safety.js";
|
|
12
|
+
import { dateInputSchema } from "../shared/tool-schemas.js";
|
|
12
13
|
import { getUserIdentityFromEmail } from "./auth.js";
|
|
13
14
|
const WORKITEM_TOOLS = {
|
|
14
15
|
wit_work_item: "wit_work_item",
|
|
@@ -21,7 +22,7 @@ const WORKITEM_TOOLS = {
|
|
|
21
22
|
wit_work_item_comment_write: "wit_work_item_comment_write",
|
|
22
23
|
wit_work_item_link_write: "wit_work_item_link_write",
|
|
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 jsonPatchValueSchema = z.lazy(() => z.union([z.string(), z.number().finite(), z.boolean(), z.null(), z.array(jsonPatchValueSchema), z.record(z.string(), jsonPatchValueSchema)]));
|
|
25
26
|
const readConsistencyHandler = {
|
|
26
27
|
prepareRequest(options) {
|
|
27
28
|
options.headers = { ...options.headers, "X-VSS-ReadConsistencyLevel": "Eventual" };
|
|
@@ -123,7 +124,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
123
124
|
ids: z.array(z.coerce.number().min(1)).optional().describe("Work item IDs. Required for: get_batch."),
|
|
124
125
|
workItemId: z.coerce.number().min(1).optional().describe("Work item ID. Required for: list_comments, list_revisions."),
|
|
125
126
|
fields: z.array(z.string()).optional().describe("Field names to include in the response. Used for: get, get_batch. For get, cannot be combined with expand."),
|
|
126
|
-
asOf:
|
|
127
|
+
asOf: dateInputSchema.optional().describe("Retrieve the work item as of a specific date. Used for: get."),
|
|
127
128
|
expand: z
|
|
128
129
|
.enum(getEnumKeys(WorkItemExpand))
|
|
129
130
|
.optional()
|
|
@@ -623,7 +624,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
623
624
|
.string()
|
|
624
625
|
.transform((val) => val.toLowerCase())
|
|
625
626
|
.pipe(z.enum(["add", "replace", "remove", "test"]))
|
|
626
|
-
.
|
|
627
|
+
.prefault("add")
|
|
627
628
|
.describe("The operation to perform. Use 'test' with path '/rev' to enforce optimistic concurrency."),
|
|
628
629
|
path: z.string().describe("The path to operate on, e.g. '/fields/System.Title' or '/rev' for a revision test."),
|
|
629
630
|
value: jsonPatchValueSchema
|
package/dist/tools.js
CHANGED
|
@@ -4,7 +4,6 @@ import { wrapExternalToolResponse } from "./shared/content-safety.js";
|
|
|
4
4
|
import { Domain } from "./shared/domains.js";
|
|
5
5
|
import { configureToolsWithAnnotations } from "./shared/tool-annotations.js";
|
|
6
6
|
import { configureAdvSecTools } from "./tools/advanced-security.js";
|
|
7
|
-
import { configureMcpAppsTools } from "./tools/mcp-apps.js";
|
|
8
7
|
import { configurePipelineTools } from "./tools/pipelines.js";
|
|
9
8
|
import { configureCoreTools } from "./tools/core.js";
|
|
10
9
|
import { configureRepoTools } from "./tools/repositories.js";
|
|
@@ -21,9 +20,6 @@ function configureAllTools(server, tokenProvider, connectionProvider, userAgentP
|
|
|
21
20
|
}
|
|
22
21
|
};
|
|
23
22
|
configureIfDomainEnabled(Domain.CORE, () => configureCoreTools(server, tokenProvider, connectionProvider, userAgentProvider));
|
|
24
|
-
// This is a local health-check response and contains no Azure DevOps content.
|
|
25
|
-
if (enabledDomains.has(Domain.MCP_APPS))
|
|
26
|
-
configureMcpAppsTools(server);
|
|
27
23
|
configureIfDomainEnabled(Domain.WORK, () => configureWorkTools(server, tokenProvider, connectionProvider));
|
|
28
24
|
configureIfDomainEnabled(Domain.PIPELINES, () => configurePipelineTools(server, tokenProvider, connectionProvider, userAgentProvider));
|
|
29
25
|
configureIfDomainEnabled(Domain.REPOSITORIES, () => configureRepoTools(server, tokenProvider, connectionProvider, userAgentProvider));
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.11.0-nightly.
|
|
1
|
+
export const packageVersion = "2.11.0-nightly.20261031";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-devops/mcp",
|
|
3
|
-
"version": "2.11.0-nightly.
|
|
3
|
+
"version": "2.11.0-nightly.20261031",
|
|
4
4
|
"mcpName": "microsoft.com/azure-devops",
|
|
5
5
|
"description": "MCP server for interacting with Azure DevOps",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,8 +47,7 @@
|
|
|
47
47
|
"open": "^10.2.0",
|
|
48
48
|
"winston": "^3.18.3",
|
|
49
49
|
"yargs": "^18.0.0",
|
|
50
|
-
"zod": "^
|
|
51
|
-
"zod-to-json-schema": "^3.24.5"
|
|
50
|
+
"zod": "^4.6.6"
|
|
52
51
|
},
|
|
53
52
|
"optionalDependencies": {
|
|
54
53
|
"@azure/msal-node-extensions": "^5.3.5"
|
package/dist/tools/mcp-apps.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
const MCP_APPS_TOOLS = {
|
|
4
|
-
ping: "mcp_apps_ping",
|
|
5
|
-
};
|
|
6
|
-
function configureMcpAppsTools(server) {
|
|
7
|
-
server.tool(MCP_APPS_TOOLS.ping, "A simple ping tool to verify that the mcp-apps domain is enabled.", {}, async () => {
|
|
8
|
-
try {
|
|
9
|
-
return {
|
|
10
|
-
content: [{ type: "text", text: "pong — mcp-apps domain is active" }],
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
catch (error) {
|
|
14
|
-
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
|
15
|
-
return {
|
|
16
|
-
content: [{ type: "text", text: `Error: ${errorMessage}` }],
|
|
17
|
-
isError: true,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
export { configureMcpAppsTools, MCP_APPS_TOOLS };
|