get_cases
Retrieve all test cases within a project by filtering based on criteria like milestone, suite, severity, priority, automation, status, or external issues using QASE MCP Server.
Instructions
Get all test cases in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation | No | ||
| behavior | No | ||
| code | Yes | ||
| externalIssuesIds | No | ||
| externalIssuesType | No | ||
| include | No | ||
| limit | No | ||
| milestoneId | No | ||
| offset | No | ||
| priority | No | ||
| search | No | ||
| severity | No | ||
| status | No | ||
| suiteId | No | ||
| type | No |
Implementation Reference
- src/index.ts:310-345 (handler)MCP tool handler for 'get_cases': parses arguments using GetCasesSchema and calls the getCases helper function with the extracted parameters..with({ name: 'get_cases' }, ({ arguments: args }) => { const { code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, } = GetCasesSchema.parse(args); return getCases([ code, search, milestoneId, suiteId, severity, priority, type, behavior, automation, status, externalIssuesType, externalIssuesIds, include, limit, offset, ]); })
- src/operations/cases.ts:6-37 (schema)Zod schema defining the input parameters for the get_cases tool, including project code and various filters.export const GetCasesSchema = z.object({ code: z.string(), search: z.string().optional(), milestoneId: z.number().optional(), suiteId: z.number().optional(), severity: z.string().optional(), priority: z.string().optional(), type: z.string().optional(), behavior: z.string().optional(), automation: z.string().optional(), status: z.string().optional(), externalIssuesType: z .enum([ 'asana', 'azure-devops', 'clickup-app', 'github-app', 'gitlab-app', 'jira-cloud', 'jira-server', 'linear', 'monday', 'redmine-app', 'trello-app', 'youtrack-app', ]) .optional(), externalIssuesIds: z.array(z.string()).optional(), include: z.string().optional(), limit: z.number().optional(), offset: z.number().optional(), });
- src/index.ts:170-174 (registration)Tool registration in the MCP server's listTools handler, specifying name, description, and input schema.{ name: 'get_cases', description: 'Get all test cases in a project', inputSchema: zodToJsonSchema(GetCasesSchema), },
- src/operations/cases.ts:144-147 (helper)Core helper function that wraps the Qase client call to fetch cases and converts to result format.export const getCases = pipe( apply(client.cases.getCases.bind(client.cases)), toResult, );