Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

wit_list_backlog_work_items

Retrieve work items from a specific backlog category in Azure DevOps for a given project and team using PAT authentication.

Instructions

Retrieve a list of backlogs of for a given project, team, and backlog category

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
backlogIdYesThe ID of the backlog category to retrieve work items from.
projectYesThe name or ID of the Azure DevOps project.
teamYesThe name or ID of the Azure DevOps team.

Implementation Reference

  • Handler function that calls Azure DevOps WorkApi.getBacklogLevelWorkItems to retrieve work items for the specified backlog.
    async ({ project, team, backlogId }) => { const connection = await connectionProvider(); const workApi = await connection.getWorkApi(); const teamContext = { project, team }; const workItems = await workApi.getBacklogLevelWorkItems(teamContext, backlogId); return { content: [{ type: "text", text: JSON.stringify(workItems, null, 2) }], }; }
  • Input schema using Zod validators for project, team, and backlogId parameters.
    { project: z.string().describe("The name or ID of the Azure DevOps project."), team: z.string().describe("The name or ID of the Azure DevOps team."), backlogId: z.string().describe("The ID of the backlog category to retrieve work items from."), },
  • Direct registration of the tool using McpServer.tool() with name resolved from WORKITEM_TOOLS.list_backlog_work_items ("wit_list_backlog_work_items").
    server.tool( WORKITEM_TOOLS.list_backlog_work_items, "Retrieve a list of backlogs of for a given project, team, and backlog category", { project: z.string().describe("The name or ID of the Azure DevOps project."), team: z.string().describe("The name or ID of the Azure DevOps team."), backlogId: z.string().describe("The ID of the backlog category to retrieve work items from."), }, async ({ project, team, backlogId }) => { const connection = await connectionProvider(); const workApi = await connection.getWorkApi(); const teamContext = { project, team }; const workItems = await workApi.getBacklogLevelWorkItems(teamContext, backlogId); return { content: [{ type: "text", text: JSON.stringify(workItems, null, 2) }], }; } );
  • Mapping in WORKITEM_TOOLS constant from internal name to external MCP tool name.
    list_backlog_work_items: "wit_list_backlog_work_items",
  • src/tools.ts:24-24 (registration)
    Call to configureWorkItemTools which registers the wit_list_backlog_work_items tool among others.
    configureWorkItemTools(server, tokenProvider, connectionProvider, userAgentProvider);

Other Tools

Related Tools

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/ennuiii/DevOpsMcpPAT'

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