@azure-devops/mcp 2.6.0 → 2.7.0-nightly.20260423
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/auth.js +0 -0
- package/dist/index.js +0 -0
- package/dist/logger.js +0 -0
- package/dist/org-tenants.js +0 -0
- package/dist/prompts.js +0 -0
- package/dist/tools/work-items.js +4 -5
- package/dist/tools.js +0 -0
- package/dist/useragent.js +0 -0
- package/dist/utils.js +0 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/logger.js
CHANGED
|
File without changes
|
package/dist/org-tenants.js
CHANGED
|
File without changes
|
package/dist/prompts.js
CHANGED
|
File without changes
|
package/dist/tools/work-items.js
CHANGED
|
@@ -714,7 +714,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
714
714
|
.array(z.object({
|
|
715
715
|
name: z.string().describe("The name of the field, e.g., 'System.Title'."),
|
|
716
716
|
value: z.string().describe("The value of the field."),
|
|
717
|
-
format: z.enum(["Html", "Markdown"]).optional().
|
|
717
|
+
format: z.enum(["Html", "Markdown"]).optional().describe("the format of the field value, e.g., 'Html', 'Markdown'. Optional, defaults to 'Markdown'."),
|
|
718
718
|
}))
|
|
719
719
|
.describe("A record of field names and values to set on the new work item. Each fild is the field name and each value is the corresponding value to set for that field."),
|
|
720
720
|
}, async ({ project, workItemType, fields }) => {
|
|
@@ -735,9 +735,9 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
735
735
|
}));
|
|
736
736
|
// Check if any field has format === "Markdown" and add the multilineFieldsFormat operation
|
|
737
737
|
// this should only happen for large text fields, but since we dont't know by field name, lets assume if the users
|
|
738
|
-
// passes a value longer than
|
|
738
|
+
// passes a value longer than 100 characters, then we can set the format to Markdown
|
|
739
739
|
fields.forEach(({ name, value, format }) => {
|
|
740
|
-
if (value.length >
|
|
740
|
+
if (value.length > 100 && format === "Markdown") {
|
|
741
741
|
document.push({
|
|
742
742
|
op: "add",
|
|
743
743
|
path: `/multilineFieldsFormat/${name}`,
|
|
@@ -838,7 +838,6 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
838
838
|
format: z
|
|
839
839
|
.enum(["Html", "Markdown"])
|
|
840
840
|
.optional()
|
|
841
|
-
.default("Markdown")
|
|
842
841
|
.describe("The format of the field value. Only to be used for large text fields. e.g., 'Html', 'Markdown'. Optional, defaults to 'Markdown'."),
|
|
843
842
|
}))
|
|
844
843
|
.describe("An array of updates to apply to work items. Each update should include the operation (op), work item ID (id), field path (path), and new value (value)."),
|
|
@@ -858,7 +857,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
|
|
|
858
857
|
}));
|
|
859
858
|
// Add format operations for Markdown fields
|
|
860
859
|
workItemUpdates.forEach(({ path, value, format }) => {
|
|
861
|
-
if (format === "Markdown" && value && value.length >
|
|
860
|
+
if (format === "Markdown" && value && value.length > 100) {
|
|
862
861
|
operations.push({
|
|
863
862
|
op: "Add",
|
|
864
863
|
path: `/multilineFieldsFormat${path.replace("/fields", "")}`,
|
package/dist/tools.js
CHANGED
|
File without changes
|
package/dist/useragent.js
CHANGED
|
File without changes
|
package/dist/utils.js
CHANGED
|
File without changes
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "2.
|
|
1
|
+
export const packageVersion = "2.7.0-nightly.20260423";
|