Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

testplan_show_test_results_from_build_id

Retrieve detailed test results for a specific build and project in Azure DevOps using the build ID. Simplifies test plan analysis and troubleshooting.

Instructions

Gets a list of test results for a given project and build ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildidYesThe ID of the build.
projectYesThe unique identifier (ID or name) of the Azure DevOps project.

Implementation Reference

  • Handler function that connects to Azure DevOps, retrieves the TestResultsApi, and fetches test result details for the specified project and build ID using getTestResultDetailsForBuild.
    async ({ project, buildid }) => { const connection = await connectionProvider(); const coreApi = await connection.getTestResultsApi(); const testResults = await coreApi.getTestResultDetailsForBuild(project, buildid); return { content: [{ type: "text", text: JSON.stringify(testResults, null, 2) }], }; }
  • Input schema using Zod, requiring 'project' (string) and 'buildid' (number).
    project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project."), buildid: z.number().describe("The ID of the build."), },
  • MCP server.tool registration call that registers the tool with name Test_Plan_Tools.test_results_from_build_id ("testplan_show_test_results_from_build_id"), description, schema, and handler.
    server.tool( Test_Plan_Tools.test_results_from_build_id, "Gets a list of test results for a given project and build ID.", { project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project."), buildid: z.number().describe("The ID of the build."), }, async ({ project, buildid }) => { const connection = await connectionProvider(); const coreApi = await connection.getTestResultsApi(); const testResults = await coreApi.getTestResultDetailsForBuild(project, buildid); return { content: [{ type: "text", text: JSON.stringify(testResults, null, 2) }], }; } );
  • Constant definition mapping internal key 'test_results_from_build_id' to public tool name 'testplan_show_test_results_from_build_id'.
    test_results_from_build_id: "testplan_show_test_results_from_build_id",

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