MCPcopy Index your code
hub / github.com/Waishnav/devspace / findFilesTool

Function findFilesTool

src/pi-tools.ts:107–112  ·  view source on GitHub ↗
(input: FindToolInput, context: ToolContext)

Source from the content-addressed store, hash-verified

105}
106
107export async function findFilesTool(input: FindToolInput, context: ToolContext): Promise<ToolResponse> {
108 if (input.path) resolveAllowedPath(input.path, context.cwd, [context.root]);
109 const tool = createFindTool(context.cwd);
110
111 return runTool((params) => tool.execute("find_files", params), input, context);
112}
113
114export async function listDirectoryTool(input: LsToolInput, context: ToolContext): Promise<ToolResponse> {
115 if (input.path) resolveAllowedPath(input.path, context.cwd, [context.root]);

Callers 1

createMcpServerFunction · 0.85

Calls 2

resolveAllowedPathFunction · 0.85
runToolFunction · 0.85

Tested by

no test coverage detected