@azure-devops/mcp 2.10.0-nightly.20261010 → 2.10.0-nightly.20261012
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/work-items.js +4 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/tools/work-items.js
CHANGED
|
@@ -21,6 +21,7 @@ const WORKITEM_TOOLS = {
|
|
|
21
21
|
wit_work_item_comment_write: "wit_work_item_comment_write",
|
|
22
22
|
wit_work_item_link_write: "wit_work_item_link_write",
|
|
23
23
|
};
|
|
24
|
+
const jsonPatchValueSchema = z.lazy(() => z.union([z.string(), z.number().finite(), z.boolean(), z.null(), z.array(jsonPatchValueSchema), z.record(jsonPatchValueSchema)]));
|
|
24
25
|
function getLinkTypeFromName(name) {
|
|
25
26
|
switch (name.toLowerCase()) {
|
|
26
27
|
case "parent":
|
|
@@ -613,13 +614,12 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
613
614
|
.default("add")
|
|
614
615
|
.describe("The operation to perform. Use 'test' with path '/rev' to enforce optimistic concurrency."),
|
|
615
616
|
path: z.string().describe("The path to operate on, e.g. '/fields/System.Title' or '/rev' for a revision test."),
|
|
616
|
-
value:
|
|
617
|
-
.union([z.string(), z.number(), z.boolean(), z.null()])
|
|
617
|
+
value: jsonPatchValueSchema
|
|
618
618
|
.optional()
|
|
619
|
-
.describe("The operation value. Required for add, replace, and test; omit for remove. For a test on '/rev', pass the numeric revision previously read."),
|
|
619
|
+
.describe("The JSON operation value, including objects and arrays. Required for add, replace, and test; omit for remove. Pass relation objects directly, not as JSON strings. For a test on '/rev', pass the numeric revision previously read."),
|
|
620
620
|
}))
|
|
621
621
|
.optional()
|
|
622
|
-
.describe('
|
|
622
|
+
.describe('JSON Patch operations for fields and relations on a single work item. Required for: update. For a safe read-modify-write, prepend a test operation on "/rev" with value set to the numeric revision returned by the preceding read; Azure DevOps rejects the entire update if the current revision differs.'),
|
|
623
623
|
batchUpdates: z
|
|
624
624
|
.array(z.object({
|
|
625
625
|
op: z.enum(["Add", "Replace", "Remove"]).default("Add").describe("The operation to perform."),
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.10.0-nightly.
|
|
1
|
+
export const packageVersion = "2.10.0-nightly.20261012";
|
package/package.json
CHANGED