get_shared_steps
Retrieve all shared steps from a QASE test management project to reuse common test procedures across multiple test cases.
Instructions
Get all shared steps in a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| search | No | ||
| limit | No | ||
| offset | No |
Implementation Reference
- src/operations/shared-steps.ts:67-70 (handler)The core handler function for the 'get_shared_steps' tool. It wraps the Qase client call to retrieve shared steps using Ramda's pipe and a result transformer.export const getSharedSteps = pipe( client.sharedSteps.getSharedSteps.bind(client.sharedSteps), toResult, );
- src/operations/shared-steps.ts:6-11 (schema)Zod schema defining the input parameters for the 'get_shared_steps' tool: project code (required), optional search, limit, and offset.export const GetSharedStepsSchema = z.object({ code: z.string(), search: z.string().optional(), limit: z.number().optional(), offset: z.number().optional(), });
- src/index.ts:240-244 (registration)Tool registration in the ListToolsRequestSchema handler, specifying name, description, and input schema for 'get_shared_steps'.{ name: 'get_shared_steps', description: 'Get all shared steps in a project', inputSchema: zodToJsonSchema(GetSharedStepsSchema), },
- src/index.ts:420-423 (handler)MCP server request handler for CallToolRequestSchema specific to 'get_shared_steps': parses arguments using the schema and delegates to the getSharedSteps function..with({ name: 'get_shared_steps' }, ({ arguments: args }) => { const { code, search, limit, offset } = GetSharedStepsSchema.parse(args); return getSharedSteps(code, search, limit, offset); })