()
| 60 | static args = zodToArgs(codegenInputs); |
| 61 | |
| 62 | async run(): Promise<void> { |
| 63 | const {args} = await this.parse(Codegen); |
| 64 | |
| 65 | try { |
| 66 | await codegenAdapter(process.cwd(), args, commandLogger(this)); |
| 67 | } catch (err: any) { |
| 68 | this.error(`${err.message}, ${err.cause}`); |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | export function registerCodegenMCPTool(server: McpServer): RegisteredTool { |
nothing calls this directly
no test coverage detected