create_plan
Generate a new test plan by defining a code, title, description, and associated test cases for efficient test management within QASE MCP Server.
Instructions
Create a new test plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cases | Yes | ||
| code | Yes | ||
| description | No | ||
| title | Yes |
Implementation Reference
- src/index.ts:396-399 (handler)Handler for the create_plan tool: parses input arguments with CreatePlanSchema and calls the createPlan helper function..with({ name: 'create_plan' }, ({ arguments: args }) => { const { code, ...planData } = CreatePlanSchema.parse(args); return createPlan(code, planData); })
- src/operations/plans.ts:16-21 (schema)Zod schema defining the input structure for the create_plan tool.export const CreatePlanSchema = z.object({ code: z.string(), title: z.string(), description: z.string().optional(), cases: z.array(z.number()), });
- src/index.ts:210-214 (registration)Registration of the create_plan tool in the ListToolsRequestHandler response.{ name: 'create_plan', description: 'Create a new test plan', inputSchema: zodToJsonSchema(CreatePlanSchema), },
- src/operations/plans.ts:38-41 (helper)createPlan helper: pipes the client.plans.createPlan call through toResult for result handling.export const createPlan = pipe( client.plans.createPlan.bind(client.plans), toResult, );