Skip to main content
Glama
nikydobrev

Azure DevOps Multi-Organization MCP Server

by nikydobrev

pipelines_list_runs

List all pipeline runs in Azure DevOps to track execution history, monitor build status, and analyze performance across multiple organizations.

Instructions

Lists all runs for a specific pipeline

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organizationYesThe name of the Azure DevOps organization
projectYesProject ID or name to run the build in
pipelineIdYesID of the pipeline to run

Implementation Reference

  • Registration of the 'pipelines_list_runs' MCP tool, including input schema (organization, project, pipelineId) and handler function that retrieves the list of pipeline runs via the Azure DevOps Pipelines API.
    server.tool( "pipelines_list_runs", "Lists all runs for a specific pipeline", { organization: z.string().describe("The name of the Azure DevOps organization"), project: z.string().describe("Project ID or name to run the build in"), pipelineId: z.number().describe("ID of the pipeline to run"), }, async ({ organization, project, pipelineId }) => { const connection = await connectionManager.getConnection(organization); const pipelinesApi = await connection.getPipelinesApi(); const pipelineRuns = await pipelinesApi.listRuns(project, pipelineId); return { content: [{ type: "text", text: JSON.stringify(pipelineRuns, null, 2) }], }; } );
  • Handler function for 'pipelines_list_runs' tool: connects to Azure DevOps, gets PipelinesApi, calls listRuns(project, pipelineId), and returns JSON stringified list of runs.
    async ({ organization, project, pipelineId }) => { const connection = await connectionManager.getConnection(organization); const pipelinesApi = await connection.getPipelinesApi(); const pipelineRuns = await pipelinesApi.listRuns(project, pipelineId); return { content: [{ type: "text", text: JSON.stringify(pipelineRuns, null, 2) }], }; }
  • Zod input schema for 'pipelines_list_runs' tool defining required parameters: organization (string), project (string), pipelineId (number).
    { organization: z.string().describe("The name of the Azure DevOps organization"), project: z.string().describe("Project ID or name to run the build in"), pipelineId: z.number().describe("ID of the pipeline to run"), },

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/nikydobrev/mcp-server-azure-devops-multi'

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