Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

build_get_status

Retrieve the status of a specific build in Azure DevOps by providing the project ID or name and build ID using Personal Access Token authentication.

Instructions

Fetches the status of a specific build.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildIdYesID of the build to get the status for
projectYesProject ID or name to get the build status for

Implementation Reference

  • Handler function that executes the tool logic: connects to Azure DevOps, retrieves the build API, and fetches the build report (status) for the given project and build ID.
    async ({ project, buildId }) => { const connection = await connectionProvider(); const buildApi = await connection.getBuildApi(); const build = await buildApi.getBuildReport(project, buildId); return { content: [{ type: "text", text: JSON.stringify(build, null, 2) }], }; }
  • Input schema using Zod for validating project (string) and buildId (number) parameters.
    { 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 'build_get_status' tool using server.tool(), mapping from BUILD_TOOLS.get_status, including description, input schema, and handler function.
    server.tool( BUILD_TOOLS.get_status, "Fetches the status of a specific build.", { 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 ({ project, buildId }) => { const connection = await connectionProvider(); const buildApi = await connection.getBuildApi(); const build = await buildApi.getBuildReport(project, buildId); return { content: [{ type: "text", text: JSON.stringify(build, null, 2) }], }; } );
  • Tool name mapping in BUILD_TOOLS constant: get_status -> "build_get_status".
    get_status: "build_get_status",

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