MCPcopy Create free account
hub / github.com/subquery/subql / Codegen

Class Codegen

packages/cli/src/commands/codegen/index.ts:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58export default class Codegen extends Command {
59 static description = 'Generate entity types from the GraphQL schema and contract interfaces';
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
73export function registerCodegenMCPTool(server: McpServer): RegisteredTool {
74 return server.registerTool(

Callers

nothing calls this directly

Calls 1

zodToArgsFunction · 0.90

Tested by

no test coverage detected