Skip to main content
Glama
nikydobrev

Azure DevOps Multi-Organization MCP Server

by nikydobrev

pipelines_get_run

Retrieve detailed information about a specific Azure DevOps pipeline run, including status, logs, and execution data for monitoring and analysis.

Instructions

Gets details of a specific pipeline run

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
runIdYesID of the run to get

Implementation Reference

  • The handler function for the pipelines_get_run tool. It retrieves a connection, gets the Pipelines API client, fetches the specific pipeline run by project, pipelineId, and runId, and returns the details as a JSON string in the tool response format.
    async ({ organization, project, pipelineId, runId }) => { const connection = await connectionManager.getConnection(organization); const pipelinesApi = await connection.getPipelinesApi(); const pipelineRun = await pipelinesApi.getRun(project, pipelineId, runId); return { content: [{ type: "text", text: JSON.stringify(pipelineRun, null, 2) }], }; }
  • Zod input schema for the pipelines_get_run tool, validating organization (string), project (string), pipelineId (number), and runId (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"), runId: z.number().describe("ID of the run to get"), },
  • Registration of the pipelines_get_run tool within the registerPipelineTools function using McpServer's server.tool method, including the tool name, description, input schema, and handler implementation.
    server.tool( "pipelines_get_run", "Gets details of a specific pipeline run", { 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"), runId: z.number().describe("ID of the run to get"), }, async ({ organization, project, pipelineId, runId }) => { const connection = await connectionManager.getConnection(organization); const pipelinesApi = await connection.getPipelinesApi(); const pipelineRun = await pipelinesApi.getRun(project, pipelineId, runId); return { content: [{ type: "text", text: JSON.stringify(pipelineRun, null, 2) }], }; } );

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