update_plan
Modify an existing test plan by updating its code, title, description, or associated test cases using QASE MCP Server integration.
Instructions
Update an existing test plan
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cases | No | ||
| code | Yes | ||
| description | No | ||
| id | Yes | ||
| title | No |
Implementation Reference
- src/index.ts:400-403 (handler)MCP tool handler for 'update_plan' that parses input arguments using UpdatePlanSchema and calls the core updatePlan function..with({ name: 'update_plan' }, ({ arguments: args }) => { const { code, id, ...planData } = UpdatePlanSchema.parse(args); return updatePlan(code, id, planData); })
- src/operations/plans.ts:23-29 (schema)Zod input schema for the update_plan tool defining required code and id, with optional title, description, and cases.export const UpdatePlanSchema = z.object({ code: z.string(), id: z.number(), title: z.string().optional(), description: z.string().optional(), cases: z.array(z.number()).optional(), });
- src/index.ts:216-219 (registration)Registration of the 'update_plan' tool in the MCP server's ListTools handler, specifying name, description, and input schema.name: 'update_plan', description: 'Update an existing test plan', inputSchema: zodToJsonSchema(UpdatePlanSchema), },
- src/operations/plans.ts:43-46 (helper)Core helper function updatePlan that composes the client API call with error handling via pipe and toResult.export const updatePlan = pipe( client.plans.updatePlan.bind(client.plans), toResult, );