FileScopeMCP is a TypeScript-based MCP server that analyzes codebases to identify important files based on dependency relationships, providing AI tools with structural understanding of projects. It scans source files to detect imports across multiple languages (JavaScript, TypeScript, Python, C/C++, Rust, Lua, Zig), calculates importance scores (0-10) based on dependency patterns, and generates visualizations using Mermaid diagrams. The implementation features persistent storage of file trees, cross-platform path handling, and tools for querying file importance, finding critical components, and adding human-readable summaries to files, making it valuable for developers who want AI assistants to understand the architecture and significance of different files in their projects.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Top files by importance score. Parameters: limit (integer)
Retrieve everything about a file, including summary, concepts, change impact, dependencies, and staleness. Parameters: file (string)
Get the full file tree with importance scores.
Find circular dependency chains.
Check broker connection, queue depth, LLM progress, and watcher state.
Queue the entire codebase for LLM processing.
Point at a different project. Parameters: directory (string)
Manual override to set the summary for a specific file. Parameters: file (string), summary (string)
Manual override to set the importance score for a specific file. Parameters: file (string), importance (integer)
Drop files or patterns from tracking. Parameters: pattern (string)
Retrieve cycles involving a specific file. Parameters: file (string)