Skip to main content
Glama

FileScopeMCP

Ваш ИИ уже умеет писать код. Теперь он знает вашу кодовую базу.

Build Status Node.js License Trust Score

FileScopeMCP следит за вашим кодом, ранжирует каждый файл по важности, составляет карту всех зависимостей и поддерживает актуальность ИИ-описаний в фоновом режиме. Когда ваш LLM спрашивает «что делает этот файл?», он получает реальный ответ, не читая исходный код.

Работает с Claude Code, Cursor AI или как отдельный демон. Поддерживает 12 языков «из коробки».

Основные возможности

Ранжирование важности — каждому файлу присваивается оценка от 0 до 10 на основе того, сколько элементов от него зависят, что он экспортирует и где находится. Ваш LLM видит критически важные файлы в первую очередь.

Карта зависимостей — двунаправленное отслеживание импортов для Python, JS/TS, C/C++, Rust, Go, Ruby, Lua, Zig, PHP, C#, Java. Также находит циклические зависимости.

Всегда актуально — файловый наблюдатель + обнаружение семантических изменений означают, что метаданные обновляются автоматически. Диффинг на уровне AST для TS/JS, анализ на базе LLM для всего остального. Повторно обрабатывается только то, что действительно изменилось.

LLM-брокер — фоновый процесс координирует всю работу ИИ через llama-server из llama.cpp (или любой HTTP API, совместимый с OpenAI). Очередь приоритетов гарантирует, что интерактивные запросы выполняются быстрее фоновой обработки. Работает на одном GPU.

Панель управления Nexus — веб-интерфейс на localhost:1234, который позволяет визуально исследовать вашу кодовую базу во всех репозиториях. Интерактивные графы зависимостей, панели сведений о файлах, активность брокера в реальном времени и мониторинг состояния каждого репозитория.

Related MCP server: GonMCPtool

Быстрый старт

git clone https://github.com/admica/FileScopeMCP.git
cd FileScopeMCP
./build.sh          # installs deps, compiles, registers with Claude Code

Вот и всё. Откройте сессию Claude Code в любом проекте, и FileScopeMCP инициализируется автоматически. Попробуйте:

find_important_files(limit: 5)
status()

Нужны ИИ-описания? Запустите ./setup-llm.sh для получения руководства по настройке llama-server из llama.cpp для вашей платформы — подробности см. в docs/llm-setup.md. Без этого всё остальное будет работать по-прежнему.

Добавьте в .gitignore вашего проекта:

.filescope/
.filescope-daemon.log

Инструменты MCP

Инструмент

Что он делает

find_important_files

Топ файлов по оценке важности

get_file_summary

Всё о файле: описание, концепции, влияние изменений, зависимости, актуальность

list_files

Полное дерево файлов с учетом важности

detect_cycles

Поиск цепочек циклических зависимостей

status

Соединение с брокером, глубина очереди, прогресс LLM, состояние наблюдателя

scan_all

Постановка всей кодовой базы в очередь на обработку LLM

set_base_directory

Указание на другой проект

set_file_summary / set_file_importance

Ручные переопределения

exclude_and_remove

Исключение файлов/шаблонов из отслеживания

get_cycles_for_file

Циклы, затрагивающие конкретный файл

Панель управления Nexus

npm run nexus       # opens at http://localhost:1234

Веб-панель управления только для чтения, которая подключается к каждому репозиторию FileScopeMCP на вашем компьютере:

  • Вид проекта — дерево файлов с тепловой картой важности и индикаторами устаревания, нажмите на любой файл для получения полных метаданных

  • Граф зависимостей — интерактивная визуализация Cytoscape.js, фильтрация по директориям, клик по узлам для проверки

  • Вид системы — статус брокера в реальном времени, использование токенов для каждого репозитория, потоковый журнал активности

  • Настройки — управление отображаемыми репозиториями, удаление или восстановление из черного списка

Автоматически обнаруживает репозитории путем сканирования директорий .filescope/data.db. Настройка не требуется.

Как это работает

Your code changes
    → file watcher picks it up
    → AST diff classifies the change (exports? types? body only?)
    → importance scores recalculated
    → staleness cascades to dependents (only if exports/types changed)
    → LLM broker regenerates summaries, concepts, change impact
    → your AI's next query gets fresh answers

Всё хранится в .filescope/data.db (SQLite, режим WAL) для каждого проекта. Брокер координирует работу LLM по всем вашим репозиториям через Unix-сокет по адресу ~/.filescope/broker.sock.

Документация

Документ

О чем он

LLM Setup

Установка llama.cpp / llama-server — локально, WSL2+Windows или удаленно

Configuration

Конфигурация проекта, настройки брокера, шаблоны игнорирования

MCP Clients

Настройка для Claude Code, Cursor AI, режим демона

Troubleshooting

Распространенные проблемы и их решения

Internals

Обнаружение зависимостей, формула важности, механизм каскада, хранилище

Лицензия

Copyright (c) 2026 admica. Все права защищены. См. LICENSE.

Available Tools

14 tools
create_file_treeC

Create or load a file tree configuration

Inputs: baseDirectory (required), filename (required).

debug_list_all_filesB

List all file paths in the current file tree

delete_file_treeC

Delete a file tree configuration

Inputs: filename (required).

find_important_filesC

Find the most important files in the project

Inputs: limit, minImportance.

generate_diagramC

Generate a Mermaid diagram for the current file tree

Inputs: style (required), layout, maxDepth, minImportance, +3 more.

get_file_importanceC

Get the importance ranking of a specific file

Inputs: filepath (required).

get_file_summaryC

Get the summary of a specific file

Inputs: filepath (required).

list_filesB

List all files in the project with their importance rankings

list_saved_treesB

List all saved file trees

read_file_contentC

Read the content of a specific file

Inputs: filepath (required).

recalculate_importanceB

Recalculate importance values for all files based on dependencies

select_file_treeC

Select an existing file tree to work with

Inputs: filename (required).

set_file_importanceC

Manually set the importance ranking of a specific file

Inputs: filepath (required), importance (required).

set_file_summaryC

Set the summary of a specific file

Inputs: filepath (required), summary (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 14 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. Tools like 'create_file_tree', 'delete_file_tree', and 'select_file_tree' handle tree management, while 'read_file_content', 'get_file_summary', and 'set_file_summary' focus on file content operations. The separation between listing functions ('debug_list_all_files', 'list_files', 'list_saved_trees') and importance calculations ('get_file_importance', 'set_file_importance', 'recalculate_importance') is well-defined, preventing misselection.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case throughout. Verbs like 'create', 'delete', 'list', 'get', 'set', 'read', 'find', 'generate', 'select', and 'recalculate' are used predictably with corresponding nouns. There are no deviations in naming conventions, making the tool set highly readable and predictable.

    Tool Count5/5

    With 14 tools, the count is well-scoped for managing file trees and analyzing file importance in a project. Each tool earns its place by covering distinct aspects such as tree configuration, file listing, content access, importance ranking, and diagram generation. This number is neither too sparse nor overwhelming, fitting the server's purpose effectively.

    Completeness5/5

    The tool surface provides complete CRUD/lifecycle coverage for file tree management and file analysis. It includes creation, selection, listing, and deletion of trees, along with operations for reading, summarizing, and setting importance for files. Tools like 'recalculate_importance' and 'generate_diagram' add advanced functionality, leaving no obvious gaps that would cause agent failures in this domain.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that helps AI code editors locate TypeScript symbol definitions in codebases, particularly useful for finding original definitions of imported symbols and classes.
      1
      -
    • A
      license
      C
      quality
      D
      maintenance
      A TypeScript-based Model Context Protocol toolkit that enables AI to interact with code files, manage translations, build projects, and search for files and code content.
      33
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A structural codebase indexer that exposes 18 tools via the Model Context Protocol for AI-assisted code navigation, enabling efficient querying of functions, classes, dependencies, and call chains without reading entire files.
      281 PyPI
      63
      AGPL 3.0
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables Claude Code to query a TypeScript dependency graph and retrieve the minimal set of files needed for code review, implementation, or debugging.
      MIT