MCPcopy
hub / github.com/subquery/subql / registerMigrateSubgraphMCPTool

Function registerMigrateSubgraphMCPTool

packages/cli/src/commands/migrate.ts:147–161  ·  view source on GitHub ↗
(server: McpServer)

Source from the content-addressed store, hash-verified

145}
146
147export function registerMigrateSubgraphMCPTool(server: McpServer): RegisteredTool {
148 return server.registerTool(
149 MigrateSubgraph.name,
150 {
151 description: MigrateSubgraph.description,
152 inputSchema: migrateSubgraphInputs.shape,
153 outputSchema: getMCPStructuredResponse(migrateSubgraphOutputs).shape,
154 },
155 withStructuredResponse(async (args, meta) => {
156 const logger = mcpLogger(server.server);
157 const cwd = await getMCPWorkingDirectory(server);
158 return migrateSubgraphAdapter(cwd, args, logger);
159 })
160 );
161}

Callers 1

runMethod · 0.90

Calls 5

getMCPStructuredResponseFunction · 0.90
withStructuredResponseFunction · 0.90
mcpLoggerFunction · 0.90
getMCPWorkingDirectoryFunction · 0.90
migrateSubgraphAdapterFunction · 0.85

Tested by

no test coverage detected