FileScopeMCP

FileScopeMCP

3.6

If you are the rightful owner of FileScopeMCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

FileScopeMCP is a TypeScript-based tool designed to analyze codebases, rank files by importance, track dependencies, and provide summaries to enhance code understanding.

FileScopeMCP is a Model Context Protocol server that helps developers understand their codebase by analyzing file importance and dependencies. It assigns importance scores to files based on their role in the codebase, tracks bidirectional dependencies, and allows for custom file summaries. The server supports multiple programming languages and provides visualization tools to generate diagrams of file relationships. It also offers persistent storage of data and supports multiple project configurations, making it a versatile tool for managing complex codebases.

Features

  • File Importance Analysis: Ranks files on a 0-10 scale based on dependencies, file type, location, and name significance.
  • Dependency Tracking: Maps bidirectional dependencies between files, supporting multiple languages like Python, JavaScript, and C++.
  • Visualization: Generates Mermaid diagrams to visualize file relationships with color-coded importance scores.
  • File Summaries: Allows adding and retrieving human or AI-generated summaries for files, persisting across server restarts.
  • Multiple Project Support: Manages multiple file trees for different projects with cached data for faster operations.

Tools

  1. list_saved_trees

    List all saved file trees.

  2. create_file_tree

    Create a new file tree configuration for a specific directory.

  3. select_file_tree

    Select an existing file tree to work with.

  4. delete_file_tree

    Delete a file tree configuration.

  5. list_files

    List all files in the project with their importance rankings.

  6. get_file_importance

    Get detailed information about a specific file, including dependencies and dependents.

  7. find_important_files

    Find the most important files in the project based on configurable criteria.

  8. read_file_content

    Read the content of a specific file.

  9. recalculate_importance

    Recalculate importance values for all files based on dependencies.

  10. get_file_summary

    Get the stored summary of a specific file.

  11. set_file_summary

    Set or update the summary of a specific file.

  12. toggle_file_watching

    Toggle file watching on/off.

  13. get_file_watching_status

    Get the current status of file watching.

  14. update_file_watching_config

    Update file watching configuration.

  15. generate_diagram

    Create Mermaid diagrams with customizable options.