import { Tool, Client } from '@tarko/mcp-agent'; import { ConsoleLogger } from '@tarko/mcp-agent'; /** * Configuration for filesystem tools manager */ export interface FilesystemToolsManagerConfig { /** Working directory for path resolution */ workspace: string; } /** * FilesystemToolsManager - Manages filesystem tools with smart filtering * * This manager handles the registration of filesystem tools and provides * a safe directory_tree implementation that prevents prompt overflow. * * Key features: * - Filters out problematic MCP filesystem tools * - Provides safe directory_tree with smart filtering * - Maintains backward compatibility * - Configurable limits and exclusion patterns */ export declare class FilesystemToolsManager { private logger; private config; private filesystemClient?; private readonly EXCLUDED_TOOLS; private readonly DEFAULT_EXCLUDE_PATTERNS; constructor(logger: ConsoleLogger, config: FilesystemToolsManagerConfig); /** * Set the filesystem MCP client */ setFilesystemClient(client: Client): void; /** * Register filesystem tools with filtering * * @param registerTool - Function to register a tool * @returns Array of registered tool names */ registerTools(registerTool: (tool: Tool) => void): Promise; /** * Create a safe directory_tree tool that prevents prompt overflow */ private createSafeDirectoryTreeTool; /** * Get the list of tools that will be excluded from MCP registration */ getExcludedTools(): string[]; /** * Get the default exclusion patterns used for directory filtering */ getDefaultExcludePatterns(): string[]; } //# sourceMappingURL=filesystem-tools-manager.d.ts.map