brain-mcp
Version:
Brain MCP Server - Semantic knowledge base access for Claude Code via Model Context Protocol. Provides intelligent search and navigation of files from multiple locations through native MCP tools.
26 lines • 942 B
TypeScript
/**
* Base parser interface for all file parsers
*/
import { Note } from '../models/types';
export interface BaseParser {
/**
* Parse a file and extract structured content
* @param filePath Absolute path to the file
* @param content File content as string or Buffer
* @param notesRoot Root directory of the notes vault
* @returns Parsed note structure
*/
parse(filePath: string, content: string | Buffer, notesRoot: string): Promise<Note>;
/**
* Check if this parser supports the given file extension
* @param extension File extension including dot (e.g., '.md', '.pdf')
* @returns True if parser can handle this file type
*/
supports(extension: string): boolean;
/**
* Get supported file extensions
* @returns Array of supported extensions (e.g., ['.md', '.markdown'])
*/
getSupportedExtensions(): string[];
}
//# sourceMappingURL=BaseParser.d.ts.map