@tiberriver256/mcp-server-azure-devops
Version:
Azure DevOps reference server for the Model Context Protocol (MCP)
14 lines (13 loc) • 664 B
TypeScript
import { WebApi } from 'azure-devops-node-api';
import { WorkItemExpand } from 'azure-devops-node-api/interfaces/WorkItemTrackingInterfaces';
import { WorkItem } from '../types';
/**
* Get a work item by ID
*
* @param connection The Azure DevOps WebApi connection
* @param workItemId The ID of the work item
* @param expand Optional expansion options (defaults to WorkItemExpand.All)
* @returns The work item details with all fields (null for empty fields)
* @throws {AzureDevOpsResourceNotFoundError} If the work item is not found
*/
export declare function getWorkItem(connection: WebApi, workItemId: number, expand?: WorkItemExpand): Promise<WorkItem>;