FileScopeMCP
FileScopeMCP
Ihre KI weiß bereits, wie man programmiert. Jetzt kennt sie auch Ihre Codebasis.
FileScopeMCP überwacht Ihren Code, bewertet jede Datei nach Wichtigkeit, bildet alle Abhängigkeiten ab und hält KI-generierte Zusammenfassungen im Hintergrund aktuell. Wenn Ihr LLM fragt: „Was macht diese Datei?“, erhält es eine echte Antwort, ohne den Quellcode lesen zu müssen.
Funktioniert mit Claude Code, Cursor AI oder als eigenständiger Daemon. Unterstützt 12 Sprachen von Haus aus.
Hauptfunktionen
Wichtigkeitsbewertung — jede Datei erhält eine Punktzahl von 0-10, basierend darauf, wie viele Dinge von ihr abhängen, was sie exportiert und wo sie sich befindet. Ihr LLM sieht die kritischen Dateien zuerst.
Abhängigkeitsabbildung — bidirektionale Import-Verfolgung für Python, JS/TS, C/C++, Rust, Go, Ruby, Lua, Zig, PHP, C#, Java. Findet auch zirkuläre Abhängigkeiten.
Immer aktuell — Dateiüberwachung + semantische Änderungserkennung bedeuten, dass Metadaten automatisch aktualisiert werden. AST-basiertes Diffing für TS/JS, KI-gestützte Analyse für alles andere. Verarbeitet nur das, was sich tatsächlich geändert hat.
LLM-Broker — ein Hintergrundprozess koordiniert alle KI-Aufgaben über llama.cpp's llama-server (oder jede OpenAI-kompatible HTTP-API). Eine Prioritätswarteschlange stellt sicher, dass interaktive Abfragen Vorrang vor der Hintergrundverarbeitung haben. Läuft auf einer einzelnen GPU.
Nexus-Dashboard — eine Web-UI unter localhost:1234, mit der Sie Ihre Codebasis über alle Ihre Repos hinweg visuell erkunden können. Interaktive Abhängigkeitsgraphen, Dateidetail-Panels, Live-Broker-Aktivität und Gesundheitsüberwachung pro Repo.
Related MCP server: GonMCPtool
Schnellstart
git clone https://github.com/admica/FileScopeMCP.git
cd FileScopeMCP
./build.sh # installs deps, compiles, registers with Claude CodeDas ist alles. Öffnen Sie eine Claude Code-Sitzung in einem beliebigen Projekt und FileScopeMCP initialisiert sich automatisch. Versuchen Sie:
find_important_files(limit: 5)
status()Sie möchten KI-Zusammenfassungen? Führen Sie ./setup-llm.sh aus, um eine plattformspezifische Anleitung zur Einrichtung von llama.cpp's llama-server zu erhalten — siehe docs/llm-setup.md für Details. Ohne dies funktioniert alles andere weiterhin.
Fügen Sie dies zur .gitignore Ihres Projekts hinzu:
.filescope/
.filescope-daemon.logMCP-Tools
Tool | Was es tut |
| Top-Dateien nach Wichtigkeitsbewertung |
| Alles über eine Datei: Zusammenfassung, Konzepte, Änderungsauswirkungen, Abhängigkeiten, Veraltung |
| Vollständiger Dateibaum mit Wichtigkeit |
| Zirkuläre Abhängigkeitsketten finden |
| Broker-Verbindung, Warteschlangentiefe, LLM-Fortschritt, Watcher-Status |
| Gesamte Codebasis für LLM-Verarbeitung in die Warteschlange stellen |
| Auf ein anderes Projekt verweisen |
| Manuelle Überschreibungen |
| Dateien/Muster von der Verfolgung ausschließen |
| Zyklen, die eine bestimmte Datei betreffen |
Nexus-Dashboard
npm run nexus # opens at http://localhost:1234Ein schreibgeschütztes Web-Dashboard, das sich mit jedem FileScopeMCP-Repo auf Ihrem Computer verbindet:
Projektansicht — Dateibaum mit Wichtigkeits-Heatmaps und Veraltungsindikatoren, klicken Sie auf eine beliebige Datei für vollständige Metadaten
Abhängigkeitsgraph — interaktive Cytoscape.js-Visualisierung, nach Verzeichnis filtern, auf Knoten klicken zum Untersuchen
Systemansicht — Live-Broker-Status, Token-Verbrauch pro Repo, Streaming-Aktivitätsprotokoll
Einstellungen — verwalten, welche Repos angezeigt werden, aus der Blacklist entfernen oder wiederherstellen
Entdeckt Repos automatisch durch Scannen nach .filescope/data.db-Verzeichnissen. Keine Konfiguration erforderlich.
Funktionsweise
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 answersAlles befindet sich in .filescope/data.db (SQLite, WAL-Modus) pro Projekt. Der Broker koordiniert die LLM-Arbeit über alle Ihre Repos hinweg über einen Unix-Socket unter ~/.filescope/broker.sock.
Dokumentation
Dokument | Inhalt |
llama.cpp / llama-server Installation — lokal, WSL2+Windows oder remote | |
Projektbezogene Konfiguration, Broker-Konfiguration, Ignorier-Muster | |
Einrichtung für Claude Code, Cursor AI, Daemon-Modus | |
Häufige Probleme und Lösungen | |
Abhängigkeitserkennung, Wichtigkeitsformel, Kaskaden-Engine, Speicherung |
Lizenz
Copyright (c) 2026 admica. Alle Rechte vorbehalten. Siehe LICENSE.
Available Tools
14 toolscreate_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
Scored across 14 tools
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.
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.
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.
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
Related MCP Connectors
Coding agents in multi-service codebases routinely rebuild existing helpers, trust stale type definitions, and modify API contracts without knowing who consumes them. Carrick solves this by indexing your entire TypeScript ecosystem across service and repository boundaries. By integrating deeply with the TypeScript compiler, Carrick traces every route, type, and cross-service call while recording function behaviour so agents search by intent rather than name. Delivered via MCP for AI agents and LSP for IDEs, Carrick ensures models see existing endpoints and utilities before generating new code. The scanner is source-available and runs from your CLI or CI pipeline.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Related MCP Servers
- FlicenseBqualityDmaintenanceA 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-
- AlicenseCqualityDmaintenanceA 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.335MIT
- AlicenseNot gradedqualityDmaintenanceA 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 PyPI63AGPL 3.0
- AlicenseNot gradedqualityFmaintenanceEnables Claude Code to query a TypeScript dependency graph and retrieve the minimal set of files needed for code review, implementation, or debugging.MIT