ado_add_comment
Add a comment or discussion entry to an Azure DevOps work item using Markdown formatting for clear documentation and collaboration.
Instructions
Agrega un comentario/entrada de discusión a un Work Item. Soporta formato Markdown.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID del Work Item | |
| comment | Yes | Texto del comentario (soporta Markdown) |
Implementation Reference
- src/index.ts:705-725 (handler)The handler for the 'ado_add_comment' MCP tool. It uses the Azure DevOps Work Item Tracking API to update the 'System.History' field of a work item.
async ({ id, comment }) => { const api = await getWitApi(); // Usar System.History para agregar comentario const patchDocument: VSSInterfaces.JsonPatchOperation[] = [ { op: VSSInterfaces.Operation.Add, path: "/fields/System.History", value: comment, }, ]; await api.updateWorkItem(null, patchDocument, id); return { content: [ { type: "text", text: `Comentario agregado exitosamente al Work Item #${id}`, }, ], - src/index.ts:698-704 (registration)The registration of the 'ado_add_comment' tool, including its schema definition.
server.tool( "ado_add_comment", "Agrega un comentario/entrada de discusión a un Work Item. Soporta formato Markdown.", { id: z.number().describe("ID del Work Item"), comment: z.string().describe("Texto del comentario (soporta Markdown)"), },