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

Function ask

__tests__/mcp-projectpath-file.test.ts:62–70  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

60 // not-indexed guidance), the file gets that same answer.
61 it('answers a file exactly as it answers the folder holding it', async () => {
62 const ask = async (projectPath: string) => {
63 const h = new ToolHandler(null);
64 try {
65 const res = await h.execute('codegraph_search', { query: 'fileTarget', projectPath });
66 return { isError: res.isError, text: res.content[0]!.text };
67 } finally {
68 await h.closeAll();
69 }
70 };
71 const ssh = path.join(os.homedir(), '.ssh');
72 const outside = fs.realpathSync(fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-2982-outside-')));
73 try {

Callers 1

Calls 2

executeMethod · 0.95
closeAllMethod · 0.95

Tested by

no test coverage detected