FileScopeMCP
FileScopeMCP
Tu IA ya sabe programar. Ahora conoce tu base de código.
FileScopeMCP observa tu código, clasifica cada archivo por importancia, mapea todas las dependencias y mantiene los resúmenes generados por IA actualizados en segundo plano. Cuando tu LLM pregunta "¿qué hace este archivo?", obtiene una respuesta real sin leer el código fuente.
Funciona con Claude Code, Cursor AI o como un demonio independiente. Compatible con 12 lenguajes de forma nativa.
Características clave
Clasificación por importancia — cada archivo recibe una puntuación de 0 a 10 basada en cuántas cosas dependen de él, qué exporta y dónde se encuentra. Tu LLM ve primero los archivos críticos.
Mapeo de dependencias — seguimiento de importaciones bidireccional en Python, JS/TS, C/C++, Rust, Go, Ruby, Lua, Zig, PHP, C#, Java. También encuentra dependencias circulares.
Siempre actualizado — el observador de archivos + la detección de cambios semánticos significa que los metadatos se actualizan automáticamente. Diferenciación a nivel de AST para TS/JS, análisis potenciado por LLM para todo lo demás. Solo reprocesa lo que realmente cambió.
Intermediario de LLM (Broker) — un proceso en segundo plano coordina todo el trabajo de IA a través de llama-server de llama.cpp (o cualquier API HTTP compatible con OpenAI). La cola de prioridad asegura que las consultas interactivas tengan prioridad sobre el procesamiento en segundo plano. Se ejecuta en una sola GPU.
Panel de control Nexus — una interfaz web en localhost:1234 que te permite explorar visualmente tu base de código en todos tus repositorios. Gráficos de dependencias interactivos, paneles de detalles de archivos, actividad del intermediario en tiempo real y monitoreo de salud por repositorio.
Related MCP server: GonMCPtool
Inicio rápido
git clone https://github.com/admica/FileScopeMCP.git
cd FileScopeMCP
./build.sh # installs deps, compiles, registers with Claude CodeEso es todo. Abre una sesión de Claude Code en cualquier proyecto y FileScopeMCP se inicializará automáticamente. Prueba:
find_important_files(limit: 5)
status()¿Quieres resúmenes de IA? Ejecuta ./setup-llm.sh para obtener una guía específica de la plataforma para configurar llama-server de llama.cpp — consulta docs/llm-setup.md para más detalles. Sin esto, todo lo demás sigue funcionando.
Añade esto al .gitignore de tu proyecto:
.filescope/
.filescope-daemon.logHerramientas MCP
Herramienta | Qué hace |
| Archivos principales por puntuación de importancia |
| Todo sobre un archivo: resumen, conceptos, impacto del cambio, dependencias, obsolescencia |
| Árbol de archivos completo con importancia |
| Encuentra cadenas de dependencia circular |
| Conexión del intermediario, profundidad de cola, progreso de LLM, estado del observador |
| Pone en cola toda la base de código para procesamiento de LLM |
| Apunta a un proyecto diferente |
| Sobrescrituras manuales |
| Elimina archivos/patrones del seguimiento |
| Ciclos que involucran un archivo específico |
Panel de control Nexus
npm run nexus # opens at http://localhost:1234Un panel web de solo lectura que se conecta a cada repositorio de FileScopeMCP en tu máquina:
Vista de proyecto — árbol de archivos con colores de calor de importancia e indicadores de obsolescencia, haz clic en cualquier archivo para ver los metadatos completos
Gráfico de dependencias — visualización interactiva con Cytoscape.js, filtra por directorio, haz clic en los nodos para inspeccionar
Vista del sistema — estado del intermediario en tiempo real, uso de tokens por repositorio, registro de actividad en streaming
Configuración — gestiona qué repositorios aparecen, elimina o restaura desde la lista negra
Descubre repositorios automáticamente escaneando directorios .filescope/data.db. No se requiere configuración.
Cómo funciona
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 answersTodo reside en .filescope/data.db (SQLite, modo WAL) por proyecto. El intermediario coordina el trabajo de LLM en todos tus repositorios a través de un socket Unix en ~/.filescope/broker.sock.
Documentación
Doc | Qué contiene |
Instalación de llama.cpp / llama-server — local, WSL2+Windows o remoto | |
Configuración por proyecto, configuración del intermediario, patrones de ignorar | |
Configuración para Claude Code, Cursor AI, modo demonio | |
Problemas comunes y soluciones | |
Detección de dependencias, fórmula de importancia, motor de cascada, almacenamiento |
Licencia
Copyright (c) 2026 admica. Todos los derechos reservados. Consulta 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