This file context server, developed for enhanced Model Context Protocol (MCP) interactions, provides AI assistants with advanced file system access and code analysis capabilities. It implements real-time file watching, smart caching with LRU strategy, and detailed code metrics calculation including cyclomatic complexity and dependency extraction. The server exposes tools for file operations, code analysis, and advanced searching with regex support and context-aware results. By offering a comprehensive file system interface through MCP, it enables AI systems to efficiently read, search, and analyze code files. This implementation is particularly suited for scenarios involving large codebases, continuous integration environments, or AI-assisted code review processes, facilitating use cases such as automated code quality assessment, intelligent code navigation, and context-aware programming assistance.
Lists files in a directory with detailed metadata. Parameters: path (string), recursive (boolean), includeHidden (boolean)
Reads file or directory contents with metadata. Parameters: path (string), encoding (string), maxSize (integer), recursive (boolean), fileTypes (array of strings)
Searches for patterns in files with context. Parameters: pattern (string), path (string), options (object with recursive (boolean), contextLines (integer), fileTypes (array of strings))
Analyzes code files for quality metrics. Parameters: path (string), recursive (boolean), metrics (array of strings)
Gets cache statistics and performance metrics. Parameters: detailed (boolean)
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!