FileScopeMCP
FileScopeMCP
あなたのAIはすでにコーディングの方法を知っています。今度はあなたのコードベースを知る番です。
FileScopeMCPはあなたのコードを監視し、すべてのファイルの重要度をランク付けし、すべての依存関係をマッピングし、AIが生成した要約をバックグラウンドで常に最新の状態に保ちます。LLMが「このファイルは何をするもの?」と尋ねたとき、ソースコードを読み込ませることなく、正確な回答を得ることができます。
Claude Code、Cursor AI、またはスタンドアロンのデーモンとして動作します。標準で12の言語をサポートしています。
主な機能
重要度ランキング — 依存関係の数、エクスポート内容、配置場所に基づいて、すべてのファイルが0〜10でスコアリングされます。LLMは重要なファイルを優先的に認識します。
依存関係マッピング — Python、JS/TS、C/C++、Rust、Go、Ruby、Lua、Zig、PHP、C#、Javaにわたる双方向のインポート追跡。循環依存関係も検出します。
常に最新 — ファイル監視機能とセマンティックな変更検知により、メタデータが自動的に更新されます。TS/JSはASTレベルの差分検知、それ以外はLLMによる分析を行います。実際に変更されたものだけを再処理します。
LLMブローカー — バックグラウンドプロセスが、llama.cppの llama-server(またはOpenAI互換のHTTP API)を通じてすべてのAI作業を調整します。優先順位付きキューにより、対話型クエリがバックグラウンド処理よりも優先されます。単一のGPUで動作します。
Nexusダッシュボード — localhost:1234 で動作するWeb UI。すべてのリポジトリにわたるコードベースを視覚的に探索できます。インタラクティブな依存関係グラフ、ファイル詳細パネル、ライブブローカーアクティビティ、リポジトリごとの健全性監視を提供します。
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()AIによる要約が必要ですか? ./setup-llm.sh を実行して、プラットフォーム固有のガイドに従いllama.cppの llama-server をセットアップしてください。詳細は docs/llm-setup.md を参照してください。これを行わなくても、他の機能はすべて動作します。
プロジェクトの .gitignore に以下を追加してください:
.filescope/
.filescope-daemon.logMCPツール
ツール | 説明 |
| 重要度スコアの高いファイル |
| ファイルに関するすべての情報:要約、概念、変更の影響、依存関係、鮮度 |
| 重要度付きのファイルツリー全体 |
| 循環依存関係チェーンの検出 |
| ブローカー接続、キューの深さ、LLMの進捗、監視状態 |
| コードベース全体をLLM処理キューに追加 |
| 別のプロジェクトを指定 |
| 手動オーバーライド |
| 追跡対象からファイルやパターンを除外 |
| 特定のファイルに関連する循環依存関係 |
Nexusダッシュボード
npm run nexus # opens at http://localhost:1234マシン上のすべてのFileScopeMCPリポジトリに接続する読み取り専用のWebダッシュボードです:
プロジェクトビュー — 重要度によるヒートカラーと鮮度インジケーター付きのファイルツリー。ファイルをクリックすると詳細メタデータを表示
依存関係グラフ — インタラクティブな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モード)に保存されます。ブローカーは ~/.filescope/broker.sock のUnixソケットを介して、すべてのリポジトリのLLM作業を調整します。
ドキュメント
ドキュメント | 内容 |
llama.cpp / llama-serverのインストール(ローカル、WSL2+Windows、リモート) | |
プロジェクトごとの設定、ブローカー設定、除外パターン | |
Claude Code、Cursor AI、デーモンモードのセットアップ | |
よくある問題と解決策 | |
依存関係検知、重要度計算式、カスケードエンジン、ストレージ |
ライセンス
Copyright (c) 2026 admica. All rights reserved. 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