Skip to main content
Glama
ennuiii

Azure DevOps MCP Server with PAT Authentication

by ennuiii

testplan_create_test_plan

Create a new test plan in Azure DevOps by specifying the project, name, iteration, and optional details like description, dates, and area path.

Instructions

Creates a new test plan in the project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
areaPathNoThe area path for the test plan
descriptionNoThe description of the test plan
endDateNoThe end date of the test plan
iterationYesThe iteration path for the test plan
nameYesThe name of the test plan to be created.
projectYesThe unique identifier (ID or name) of the Azure DevOps project where the test plan will be created.
startDateNoThe start date of the test plan

Implementation Reference

  • The handler function that executes the tool logic: connects to Azure DevOps, prepares TestPlanCreateParams, calls testPlanApi.createTestPlan, and returns the created test plan as JSON.
    async ({ project, name, iteration, description, startDate, endDate, areaPath }) => { const connection = await connectionProvider(); const testPlanApi = await connection.getTestPlanApi(); const testPlanToCreate: TestPlanCreateParams = { name, iteration, description, startDate: startDate ? new Date(startDate) : undefined, endDate: endDate ? new Date(endDate) : undefined, areaPath, }; const createdTestPlan = await testPlanApi.createTestPlan(testPlanToCreate, project); return { content: [{ type: "text", text: JSON.stringify(createdTestPlan, null, 2) }], }; }
  • Zod schema defining the input parameters for creating a test plan: project, name, iteration, optional description, dates, and areaPath.
    project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project where the test plan will be created."), name: z.string().describe("The name of the test plan to be created."), iteration: z.string().describe("The iteration path for the test plan"), description: z.string().optional().describe("The description of the test plan"), startDate: z.string().optional().describe("The start date of the test plan"), endDate: z.string().optional().describe("The end date of the test plan"), areaPath: z.string().optional().describe("The area path for the test plan"), },
  • The server.tool registration call that registers the 'testplan_create_test_plan' tool with its description, input schema, and inline handler function.
    Test_Plan_Tools.create_test_plan, "Creates a new test plan in the project.", { project: z.string().describe("The unique identifier (ID or name) of the Azure DevOps project where the test plan will be created."), name: z.string().describe("The name of the test plan to be created."), iteration: z.string().describe("The iteration path for the test plan"), description: z.string().optional().describe("The description of the test plan"), startDate: z.string().optional().describe("The start date of the test plan"), endDate: z.string().optional().describe("The end date of the test plan"), areaPath: z.string().optional().describe("The area path for the test plan"), }, async ({ project, name, iteration, description, startDate, endDate, areaPath }) => { const connection = await connectionProvider(); const testPlanApi = await connection.getTestPlanApi(); const testPlanToCreate: TestPlanCreateParams = { name, iteration, description, startDate: startDate ? new Date(startDate) : undefined, endDate: endDate ? new Date(endDate) : undefined, areaPath, }; const createdTestPlan = await testPlanApi.createTestPlan(testPlanToCreate, project); return { content: [{ type: "text", text: JSON.stringify(createdTestPlan, null, 2) }], }; }

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