MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/codegraph/tools.ts:450–461  ·  view source on GitHub ↗
(_args: z.infer<typeof StatsArgs>, _ctx: ToolContext)

Source from the content-addressed store, hash-verified

448 argsSchema = StatsArgs;
449
450 async execute(_args: z.infer<typeof StatsArgs>, _ctx: ToolContext): Promise<ToolResult> {
451 const db = requireDB();
452 if ('error' in db) return { content: db.error, isError: true };
453
454 const s = db.stats();
455 return {
456 content: `Code graph stats:
457 Files indexed: ${s.files}
458 Symbols indexed: ${s.symbols}
459 Last full index: ${s.lastIndexed ?? 'never'}`,
460 };
461 }
462}

Callers

nothing calls this directly

Calls 2

requireDBFunction · 0.85
statsMethod · 0.45

Tested by

no test coverage detected