MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / tool

Function tool

__tests__/pascal-implementation-tools.test.ts:78–82  ·  view source on GitHub ↗
(name: string, args: Record<string, unknown>)

Source from the content-addressed store, hash-verified

76 }
77
78 async function tool(name: string, args: Record<string, unknown>): Promise<string> {
79 const result = await new ToolHandler(cg).execute(name, args);
80 expect(result.isError ?? false).toBe(false);
81 return result.content[0]?.text ?? '';
82 }
83
84 function cli(args: string[]): string {
85 const result = spawnSync(process.execPath, [...WASM_RUNTIME_FLAGS, BIN, ...args, '-p', dir], {

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected