| 132 | } |
| 133 | |
| 134 | export 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 | |
| 147 | export function registerMigrateSubgraphMCPTool(server: McpServer): RegisteredTool { |
| 148 | return server.registerTool( |
nothing calls this directly
no test coverage detected