@azure-devops/mcp 2.5.0-nightly.20260415 → 2.5.0-nightly.20260416

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.
@@ -293,7 +293,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
293
293
  project: z.string().optional().describe("The name or ID of the Azure DevOps project. Reuse from prior context if already known. If not provided, a project selection prompt will be shown."),
294
294
  workItemId: z.coerce.number().min(1).describe("The ID of the work item to add a comment to."),
295
295
  comment: z.string().describe("The text of the comment to add to the work item."),
296
- format: z.enum(["markdown", "html"]).optional().default("html"),
296
+ format: z.enum(["Markdown", "Html"]).optional().default("Markdown").describe("The format of the comment text, e.g., 'Markdown', 'Html'. Optional, defaults to 'Markdown'."),
297
297
  }, async ({ project, workItemId, comment, format }) => {
298
298
  try {
299
299
  const connection = await connectionProvider();
@@ -309,7 +309,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
309
309
  const body = {
310
310
  text: comment,
311
311
  };
312
- const formatParameter = format === "markdown" ? 0 : 1;
312
+ const formatParameter = (format ?? "Markdown") === "Markdown" ? 0 : 1;
313
313
  const response = await fetch(`${orgUrl}/${encodeURIComponent(resolvedProject)}/_apis/wit/workItems/${workItemId}/comments?format=${formatParameter}&api-version=${markdownCommentsApiVersion}`, {
314
314
  method: "POST",
315
315
  headers: {
@@ -340,7 +340,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
340
340
  workItemId: z.coerce.number().min(1).describe("The ID of the work item."),
341
341
  commentId: z.coerce.number().min(1).describe("The ID of the comment to update."),
342
342
  text: z.string().describe("The updated comment text."),
343
- format: z.enum(["markdown", "html"]).optional().default("html"),
343
+ format: z.enum(["Markdown", "Html"]).optional().default("Markdown").describe("The format of the comment text, e.g., 'Markdown', 'Html'. Optional, defaults to 'Markdown'."),
344
344
  }, async ({ project, workItemId, commentId, text, format }) => {
345
345
  try {
346
346
  const connection = await connectionProvider();
@@ -354,7 +354,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
354
354
  const orgUrl = connection.serverUrl;
355
355
  const accessToken = await tokenProvider();
356
356
  const body = { text };
357
- const formatParameter = format === "markdown" ? 0 : 1;
357
+ const formatParameter = (format ?? "Markdown") === "Markdown" ? 0 : 1;
358
358
  const response = await fetch(`${orgUrl}/${encodeURIComponent(resolvedProject)}/_apis/wit/workItems/${workItemId}/comments/${commentId}?format=${formatParameter}&api-version=${markdownCommentsApiVersion}`, {
359
359
  method: "PATCH",
360
360
  headers: {
@@ -446,7 +446,7 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
446
446
  items: z.array(z.object({
447
447
  title: z.string().describe("The title of the child work item."),
448
448
  description: z.string().describe("The description of the child work item."),
449
- format: z.enum(["Markdown", "Html"]).default("Html").describe("Format for the description on the child work item, e.g., 'Markdown', 'Html'. Defaults to 'Html'."),
449
+ format: z.enum(["Markdown", "Html"]).default("Markdown").describe("Format for the description on the child work item, e.g., 'Markdown', 'Html'. Defaults to 'Markdown'."),
450
450
  areaPath: z.string().optional().describe("Optional area path for the child work item."),
451
451
  iterationPath: z.string().optional().describe("Optional iteration path for the child work item."),
452
452
  })),
@@ -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().describe("the format of the field value, e.g., 'Html', 'Markdown'. Optional, defaults to 'Html'."),
717
+ format: z.enum(["Html", "Markdown"]).optional().default("Markdown").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 }) => {
@@ -835,7 +835,11 @@ function configureWorkItemTools(server, tokenProvider, connectionProvider, userA
835
835
  id: z.coerce.number().min(1).describe("The ID of the work item to update."),
836
836
  path: z.string().describe("The path of the field to update, e.g., '/fields/System.Title'."),
837
837
  value: z.string().describe("The new value for the field. This is required for 'add' and 'replace' operations, and should be omitted for 'remove' operations."),
838
- format: z.enum(["Html", "Markdown"]).optional().describe("The format of the field value. Only to be used for large text fields. e.g., 'Html', 'Markdown'. Optional, defaults to 'Html'."),
838
+ format: z
839
+ .enum(["Html", "Markdown"])
840
+ .optional()
841
+ .default("Markdown")
842
+ .describe("The format of the field value. Only to be used for large text fields. e.g., 'Html', 'Markdown'. Optional, defaults to 'Markdown'."),
839
843
  }))
840
844
  .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)."),
841
845
  }, async ({ updates }) => {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const packageVersion = "2.5.0-nightly.20260415";
1
+ export const packageVersion = "2.5.0-nightly.20260416";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-devops/mcp",
3
- "version": "2.5.0-nightly.20260415",
3
+ "version": "2.5.0-nightly.20260416",
4
4
  "mcpName": "microsoft.com/azure-devops",
5
5
  "description": "MCP server for interacting with Azure DevOps",
6
6
  "license": "MIT",