ado_get_work_item
Retrieve a specific Azure DevOps work item by its ID to access task details, status updates, or comprehensive field information for project tracking and management.
Instructions
Obtiene un Work Item de Azure DevOps por su ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | El ID del Work Item | |
| full | No | Si es true, devuelve todos los campos |
Implementation Reference
- src/index.ts:235-252 (handler)The handler function for the ado_get_work_item tool, which fetches a work item from Azure DevOps using the Work Item Tracking API.
async ({ id, full }) => { const api = await getWitApi(); const expand = full ? witInterfaces.WorkItemExpand.All : witInterfaces.WorkItemExpand.Fields; const workItem = await api.getWorkItem(id, undefined, undefined, expand); if (!workItem) { throw new Error(`Work Item con ID ${id} no encontrado`); } const result = full ? JSON.stringify(workItem, null, 2) : formatWorkItem(workItem); return { content: [{ type: "text", text: result }], }; - src/index.ts:225-234 (registration)The registration of the ado_get_work_item tool with the MCP server, including its schema definition.
server.tool( "ado_get_work_item", "Obtiene un Work Item de Azure DevOps por su ID", { id: z.number().describe("El ID del Work Item"), full: z .boolean() .optional() .describe("Si es true, devuelve todos los campos"), },