@gork-labs/secondbrain-mcp
Version:
Second Brain MCP Server - Agent team orchestration with dynamic tool discovery
58 lines (57 loc) • 1.55 kB
TypeScript
export interface VSCodeToolResult {
content: string;
isError: boolean;
}
/**
* VS Code Tool Proxy - Provides sub-agents with REAL file system tool access
*
* Instead of trying to proxy back to VS Code, this implements the essential
* VS Code tools directly using Node.js APIs. This gives sub-agents actual
* tool capabilities and solves the "hallucination" problem.
*/
export declare class VSCodeToolProxy {
private static instance;
private readonly VSCODE_TOOLS;
private constructor();
static getInstance(): VSCodeToolProxy;
/**
* Check if a tool is a VS Code tool we can implement
*/
isVSCodeTool(toolName: string): boolean;
/**
* Execute a VS Code tool using Node.js APIs - REAL IMPLEMENTATION!
*/
executeVSCodeTool(toolName: string, args: Record<string, any>): Promise<VSCodeToolResult>;
/**
* Read file content with line range support
*/
private readFile;
/**
* List directory contents
*/
private listDir;
/**
* Search for text in files using grep-like functionality
*/
private grepSearch;
/**
* Search for files by name pattern
*/
private fileSearch;
/**
* Create a new file with content
*/
private createFile;
/**
* Replace string in file
*/
private replaceStringInFile;
/**
* Helper: Find files matching a pattern
*/
private findMatchingFiles;
/**
* Get list of available VS Code tools
*/
getAvailableVSCodeTools(): string[];
}