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

Class MigrateSubgraph

packages/cli/src/commands/migrate.ts:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134export default class MigrateSubgraph extends Command {
135 static description = 'Migrate a Subgraph project to a SubQuery project, including the manifest and schema.';
136 static flags = zodToFlags(migrateSubgraphInputs);
137
138 async run(): Promise<void> {
139 const {flags} = await this.parse(MigrateSubgraph);
140
141 const {output} = await migrateSubgraphAdapter(process.cwd(), flags, commandLogger(this));
142
143 this.log(`Output migrated SubQuery project to ${output}`);
144 }
145}
146
147export function registerMigrateSubgraphMCPTool(server: McpServer): RegisteredTool {
148 return server.registerTool(

Callers

nothing calls this directly

Calls 1

zodToFlagsFunction · 0.90

Tested by

no test coverage detected