create_suite
Generate a new test suite in QASE by specifying code, title, and optional details like description or preconditions through the MCP server integration.
Instructions
Create a new test suite
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| description | No | ||
| parent_id | No | ||
| preconditions | No | ||
| title | Yes |
Implementation Reference
- src/index.ts:412-414 (handler)The MCP tool handler for 'create_suite' that parses input arguments using CreateSuiteSchema and delegates to the createSuite helper function..with({ name: 'create_suite' }, ({ arguments: args }) => { const { code, ...suiteData } = CreateSuiteSchema.parse(args); return createSuite(code, suiteData);
- src/operations/suites.ts:17-23 (schema)Zod schema defining the input parameters for the create_suite tool.export const CreateSuiteSchema = z.object({ code: z.string(), title: z.string(), description: z.string().optional(), preconditions: z.string().optional(), parent_id: z.number().optional(), });
- src/index.ts:230-234 (registration)Registration of the 'create_suite' tool in the ListToolsRequest handler, including name, description, and input schema.{ name: 'create_suite', description: 'Create a new test suite', inputSchema: zodToJsonSchema(CreateSuiteSchema), },
- src/operations/suites.ts:44-47 (helper)Helper function createSuite that pipes the client.suites.createSuite method with toResult transformation.export const createSuite = pipe( client.suites.createSuite.bind(client.suites), toResult, );