get_shared_step
Retrieve a specific shared step from the QASE MCP Server by providing the required code and hash, enabling efficient access to shared test case components.
Instructions
Get a specific shared step
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| hash | Yes |
Implementation Reference
- src/index.ts:245-249 (registration)Registration of the 'get_shared_step' tool in the ListToolsRequestSchema handler, including name, description, and input schema reference.{ name: 'get_shared_step', description: 'Get a specific shared step', inputSchema: zodToJsonSchema(GetSharedStepSchema), },
- src/index.ts:424-427 (handler)MCP tool dispatch handler that parses input arguments using the schema and delegates to the getSharedStep function..with({ name: 'get_shared_step' }, ({ arguments: args }) => { const { code, hash } = GetSharedStepSchema.parse(args); return getSharedStep(code, hash); })
- src/operations/shared-steps.ts:13-16 (schema)Zod schema defining the input parameters for the get_shared_step tool: project code and step hash.export const GetSharedStepSchema = z.object({ code: z.string(), hash: z.string(), });
- src/operations/shared-steps.ts:72-75 (handler)Core handler function for get_shared_step tool: binds the Qase client sharedSteps.getSharedStep method and applies toResult transformation.export const getSharedStep = pipe( client.sharedSteps.getSharedStep.bind(client.sharedSteps), toResult, );