Skip to main content
Glama
nikydobrev

Azure DevOps Multi-Organization MCP Server

by nikydobrev

pipelines_get_build_status

Retrieve the current status of a specific Azure DevOps pipeline build to monitor progress, identify failures, or check completion across multiple organizations.

Instructions

Gets the status report for a build

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organizationYesThe name of the Azure DevOps organization
projectYesProject ID or name to get the build status for
buildIdYesID of the build to get the status for

Implementation Reference

  • Handler function that gets the connection, retrieves the Build API, fetches the build report for the specified project and build ID, and returns the JSON stringified build status.
    async ({ organization, project, buildId }) => { const connection = await connectionManager.getConnection(organization); const buildApi = await connection.getBuildApi(); const build = await buildApi.getBuildReport(project, buildId); return { content: [{ type: "text", text: JSON.stringify(build, null, 2) }], }; }
  • Zod schema defining the input parameters: organization, project, and buildId.
    { organization: z.string().describe("The name of the Azure DevOps organization"), project: z.string().describe("Project ID or name to get the build status for"), buildId: z.number().describe("ID of the build to get the status for"), },
  • Registration of the 'pipelines_get_build_status' tool with McpServer, including name, description, input schema, and handler function.
    server.tool( "pipelines_get_build_status", "Gets the status report for a build", { organization: z.string().describe("The name of the Azure DevOps organization"), project: z.string().describe("Project ID or name to get the build status for"), buildId: z.number().describe("ID of the build to get the status for"), }, async ({ organization, project, buildId }) => { const connection = await connectionManager.getConnection(organization); const buildApi = await connection.getBuildApi(); const build = await buildApi.getBuildReport(project, buildId); return { content: [{ type: "text", text: JSON.stringify(build, 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