get_run
Retrieve a specific test run by providing a project code and run ID, with optional inclusion of test cases, for streamlined test management on the QASE MCP Server.
Instructions
Get a specific test run
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| id | Yes | ||
| include | No |
Implementation Reference
- src/index.ts:384-387 (handler)Handler for the 'get_run' tool call: parses input arguments using GetRunSchema and invokes the getRun helper function..with({ name: 'get_run' }, ({ arguments: args }) => { const { code, id, include } = GetRunSchema.parse(args); return getRun(code, id, include); })
- src/operations/runs.ts:19-23 (schema)Zod schema defining the input parameters for the get_run tool: code (string), id (number), include (optional enum ['cases']).export const GetRunSchema = z.object({ code: z.string(), id: z.number(), include: z.enum(['cases']).optional(), });
- src/index.ts:196-199 (registration)Registers the 'get_run' tool in the ListToolsRequestSchema response, providing name, description, and JSON schema derived from GetRunSchema.name: 'get_run', description: 'Get a specific test run', inputSchema: zodToJsonSchema(GetRunSchema), },
- src/operations/runs.ts:30-30 (helper)Helper function that pipes the Qase client runs.getRun method (bound) through toResult for processing the response.export const getRun = pipe(client.runs.getRun.bind(client.runs), toResult);