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

Function registerBuildMCPTool

packages/cli/src/commands/build.ts:71–93  ·  view source on GitHub ↗
(server: McpServer)

Source from the content-addressed store, hash-verified

69}
70
71export function registerBuildMCPTool(server: McpServer): RegisteredTool {
72 return server.registerTool(
73 Build.name,
74 {
75 description: Build.description,
76 inputSchema: buildInputs.shape,
77 // outputSchema: buildOutputs.shape,
78 },
79 async (args) => {
80 const cwd = await getMCPWorkingDirectory(server);
81 await buildAdapter(cwd, args, mcpLogger(server.server));
82
83 return {
84 content: [
85 {
86 type: 'text',
87 text: `${Build.name} completed successfully.`,
88 },
89 ],
90 };
91 }
92 );
93}

Callers 1

runMethod · 0.90

Calls 3

getMCPWorkingDirectoryFunction · 0.90
mcpLoggerFunction · 0.90
buildAdapterFunction · 0.85

Tested by

no test coverage detected