LeanCTX は4つのカテゴリに整理された58の MCP ツールを提供します。各ツールは AI が自動的に使用します - これらのコマンドを覚えたり入力する必要はありません。
コアツール - ファイル&コード
基盤となるツール群です。ファイル読み取り、ディレクトリ探索、コマンド実行、コード検索を担当します - AI コーディング操作の90%を占めます。
| ツール | 機能 | 節約量 |
|---|---|---|
ctx_read | 10 read modes + セッション cache を備えたスマートファイル読み取り | up to 99% |
ctx_multi_read | 1回の呼び出しで複数ファイルをバッチ読み取り | ラウンドトリップの削減 |
ctx_tree | コンパクトなプロジェクト構造マップ | 34-60% |
ctx_shell | 95以上のパターン圧縮付きシェルコマンド。非圧縮出力には raw=true を使用。 | |
ctx_search | コンパクトな結果の正規表現コード検索 | 50-80% |
ctx_edit | Context-aware file editor with create, replace, and replace_all | - |
ctx_delta | Show only changed lines since last read | 80-95% |
ctx_smart_read | Intelligent single-call read with auto-mode | varies |
インテリジェンスエンジン
圧縮を超えたツール群 - ワークフローを理解し、意図を検出し、コンテキストを重複排除し、token予算をインテリジェントに管理します。
| ツール | 機能 |
|---|---|
ctx_fill | token予算による優先度ベースのコンテキスト充填 |
ctx_intent | セマンティック意図検出 + 自動ファイルロード |
ctx_context | マルチターンのコンテキスト状態概要 |
ctx_graph | 永続的なプロジェクト依存関係グラフ(build、related、symbol、impact) |
ctx_dedup | クロスファイル重複排除分析 |
ctx_response | 双方向レスポンス圧縮 |
ctx_discover | 圧縮の機会を逃したシェル履歴の分析 |
ctx_preload | プロアクティブなコンテキストローダー - セッション開始時にタスク関連ファイルをキャッシュ |
ctx_semantic_search | ハイブリッド意味検索(BM25 + 埋め込み)- キーワードが一致しなくても意味でコードを検索 |
ctx_overview | Project overview with structure, entry points, and key files |
ctx_prefetch | Pre-load files based on task context and changed files |
ctx_graph_diagram | 依存グラフ/コールグラフの Mermaid 図 |
ctx_compress_memory | メモリ/設定 Markdown を圧縮(コード/URL保持)+ .original バックアップ |
ctx_impact | Impact analysis: trace dependency chains and build graphs |
ctx_architecture | Graph-based architecture analysis: clusters, layers, cycles |
ctx_analyze | Entropy analysis - recommends optimal compression mode |
セッション&モニタリング
セッションの永続化、パフォーマンス監視、圧縮分析、ベンチマーク - token節約を測定・最適化するために必要なすべて。
| ツール | 機能 |
|---|---|
ctx_session | クロスチャットのセッションメモリ(タスク、発見事項、決定事項) |
ctx_compress | チャット継続のためのコンパクトなコンテキストチェックポイント |
ctx_benchmark | モードごとの実際のtoken数 - 単一ファイルまたはプロジェクト全体 |
ctx_metrics | USD コスト見積もり付きセッション統計 |
ctx_wrapped | 節約レポートカード(週次 / 月次 / 全期間) |
ctx_cache | 明示的な cache 管理(状態確認、クリア、無効化) |
ctx_gain | Query token savings, GainScore (0–100), cost breakdowns, task classifications, and per-agent statistics. Powered by the GainEngine with embedded ModelPricing. |
ctx_heatmap | File access heatmap - find hot files and cold directories |
メモリ&マルチエージェント
クロスセッションメモリ、マルチエージェント調整、タスク対応のプロジェクトオリエンテーション。v2.7.0の新機能。
| ツール | 機能 |
|---|---|
ctx_knowledge | 永続的なプロジェクト知識ストア - セッション間で事実を記憶 |
ctx_agent | マルチエージェント調整 - 登録、投稿、タスクハンドオフ、ステータス同期 |
ctx_share | マルチエージェントコンテキスト共有 - エージェント間のキャッシュファイルのプッシュ/プル |
ctx_task | Task delegation and tracking across agents |
ctx_cost | Cost attribution - track token spend per agent and tool |
ctx_context | マルチターンのコンテキスト状態概要 |
Workflow & Orchestration
State machines, context handoff, sandboxed code execution, and quality feedback loops.
| ツール | 機能 |
|---|---|
ctx_workflow | State-machine workflows with step ordering and evidence |
ctx_handoff | Context transfer between sessions or agents |
ctx_execute | Sandboxed code execution in 11 languages |
ctx_feedback | Quality feedback: latency, token counts, model info |
View Workflow & Orchestration docs →
Analysis & Navigation
Tree-sitter-powered symbol navigation, call graphs, route extraction, and structural outlining.
| ツール | 機能 |
|---|---|
ctx_symbol | Find symbol definitions across 18 languages |
ctx_callers | Find all call sites of a function |
ctx_callees | Find all functions called by a symbol |
ctx_outline | Structural outline of a file |
ctx_routes | Extract HTTP routes from web frameworks |
ctx_smells | Code smell detection with graph-enriched scoring (long functions, deep nesting, complexity) |
ctx_smells | Detect code smells and anti-patterns |