Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesID del Work Item
commentYesTexto del comentario (soporta Markdown)

Implementation Reference

  • 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)"),
      },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/soulberto/mcp-azure'

If you have feedback or need assistance with the MCP directory API, please join our Discord server