octocode-mcp
Version:
Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.
20 lines (19 loc) • 683 B
TypeScript
/**
* Folder names to ignore (exact matches)
*/
export declare const IGNORED_FOLDER_NAMES: string[];
export declare const IGNORED_FILE_NAMES: string[];
/**
* File extensions to ignore
*/
export declare const IGNORED_FILE_EXTENSIONS: string[];
/**
* Check if a directory should be ignored based on folder name
*/
export declare function shouldIgnoreDir(folderName: string): boolean;
/**
* Check if a file should be ignored based on file name, extension, and path
* Optimized order: extension (fastest) → file name → path (most expensive)
* @param filePath - Full file path (e.g., ".yarn/x/y/z.js")
*/
export declare function shouldIgnoreFile(filePath: string): boolean;