mcp-file-context-server
The File Context Server is an MCP server that enhances LLMs by providing extensive file system context capabilities. It enables advanced file operations, smart caching, and code analysis, making it useful for developers seeking efficient file management and analysis tools.
What file operations are supported by the File Context Server?
The server supports reading file and directory contents, listing files with metadata, real-time file watching, and recursive directory traversal.
How does the server handle caching?
The server uses an LRU caching strategy with automatic cache invalidation on file changes, size-aware caching, and provides cache statistics and performance metrics.
What code analysis features are available?
The server can calculate cyclomatic complexity, extract dependencies, analyze comments, and provide quality metrics such as duplicate lines detection and complex function identification.
Is the File Context Server cross-platform compatible?
Yes, the server is designed for cross-platform compatibility, using POSIX-style paths and normalized absolute paths for file operations.
What error codes does the server provide?
The server provides error codes such as FILE_NOT_FOUND, PERMISSION_DENIED, INVALID_PATH, FILE_TOO_LARGE, ENCODING_ERROR, and UNKNOWN_ERROR.