Skip to main content
Glama

FileScopeMCP

あなたのAIはすでにコーディングの方法を知っています。今度はあなたのコードベースを知る番です。

Build Status Node.js License Trust Score

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.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リポジトリに接続する読み取り専用の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作業を調整します。

ドキュメント

ドキュメント

内容

LLM Setup

llama.cpp / llama-serverのインストール(ローカル、WSL2+Windows、リモート)

Configuration

プロジェクトごとの設定、ブローカー設定、除外パターン

MCP Clients

Claude Code、Cursor AI、デーモンモードのセットアップ

Troubleshooting

よくある問題と解決策

Internals

依存関係検知、重要度計算式、カスケードエンジン、ストレージ

ライセンス

Copyright (c) 2026 admica. All rights reserved. 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