Dokumentation

Tool-Referenz

Vollständige Referenz für alle 58 LeanCTX MCP Tools.

LeanCTX bietet 58 MCP Tools in vier Kategorien. Jedes Tool wird von der KI automatisch verwendet.

Kern-Tools - Datei & Code

Das Fundament - 90% der AI-Coding-Interaktionen.

ToolWas es machtEinsparung
ctx_readIntelligentes Dateilesen mit 10 Lesemodi + Session-Cachingup to 99%
ctx_multi_readBatch-Dateilesen in einem Aufrufweniger Roundtrips
ctx_treeKompakte Projektstruktur-Karten34-60%
ctx_shellShell-Befehle mit 95+ Muster-Kompression. Verwende raw=true für unkomprimierte Ausgabe.
ctx_searchRegex-Code-Suche mit kompakten Ergebnissen50-80%
ctx_editContext-aware file editor with create, replace, and replace_all-
ctx_deltaShow only changed lines since last read80-95%
ctx_smart_readIntelligent single-call read with auto-modevaries

Vollständige Kern-Tools-Dokumentation ansehen →


Intelligence Engine

Tools, die über Kompression hinausgehen - sie verstehen deinen Workflow.

ToolWas es macht
ctx_fillPrioritätsbasierte Kontextbefüllung mit Token-Budget
ctx_intentSemantische Absichtserkennung + automatisches Dateiladen
ctx_contextMulti-Turn Kontext-Zustandsübersicht
ctx_graphPersistenter Projekt-Abhängigkeitsgraph
ctx_dedupDateiübergreifende Deduplizierungsanalyse
ctx_responseBidirektionale Antwortkompression
ctx_discoverShell-Verlaufsanalyse für verpasste Kompressionsopportunitäten
ctx_preloadProaktiver Kontext-Lader - cached aufgabenrelevante Dateien beim Sitzungsstart
ctx_semantic_searchHybride semantische Suche (BM25 + Embeddings) - findet Code nach Bedeutung, auch ohne Keyword-Overlap
ctx_overviewProject overview with structure, entry points, and key files
ctx_prefetchPre-load files based on task context and changed files
ctx_graph_diagramMermaid-Diagramme für Dependency- oder Call-Graph
ctx_compress_memoryMemory/Config-Markdown komprimieren (Code/URLs behalten) + .original Backup
ctx_impactImpact analysis: trace dependency chains and build graphs
ctx_architectureGraph-based architecture analysis: clusters, layers, cycles
ctx_analyzeEntropy analysis - recommends optimal compression mode

Vollständige Intelligence Engine Dokumentation ansehen →


Session & Monitoring

Alles für Token-Einsparungen messen und optimieren.

ToolWas es macht
ctx_sessionChat-übergreifender Session-Speicher
ctx_compressKompakter Kontext-Checkpoint
ctx_benchmarkEchte Token-Zählungen pro Modus
ctx_metricsSession-Statistiken mit USD-Kostenschätzungen
ctx_wrappedEinsparungs-Report
ctx_cacheExplizite Cache-Verwaltung
ctx_gainQuery token savings, GainScore (0–100), cost breakdowns, task classifications, and per-agent statistics. Powered by the GainEngine with embedded ModelPricing.
ctx_heatmapFile access heatmap - find hot files and cold directories

Vollständige Session & Monitoring Dokumentation ansehen →


Speicher & Multi-Agent

Sitzungsübergreifender Speicher und Multi-Agent-Koordination. Neu in v2.7.0.

ToolWas es macht
ctx_knowledgePersistenter Projekt-Wissensspeicher
ctx_agentMulti-Agent Koordination - Registrierung, Posting, Aufgaben-Handoff, Status-Sync
ctx_shareMulti-Agent Kontext-Sharing - Push/Pull gecachter Dateikontexte zwischen Agenten
ctx_taskTask delegation and tracking across agents
ctx_costCost attribution - track token spend per agent and tool
ctx_contextMulti-Turn Kontext-Zustandsübersicht

Vollständige Speicher & Multi-Agent Dokumentation ansehen →


Workflow & Orchestration

State machines, context handoff, sandboxed code execution, and quality feedback loops.

ToolWas es macht
ctx_workflowState-machine workflows with step ordering and evidence
ctx_handoffContext transfer between sessions or agents
ctx_executeSandboxed code execution in 11 languages
ctx_feedbackQuality feedback: latency, token counts, model info

View Workflow & Orchestration docs →


Analysis & Navigation

Tree-sitter-powered symbol navigation, call graphs, route extraction, and structural outlining.

ToolWas es macht
ctx_symbolFind symbol definitions across 18 languages
ctx_callersFind all call sites of a function
ctx_calleesFind all functions called by a symbol
ctx_outlineStructural outline of a file
ctx_routesExtract HTTP routes from web frameworks
ctx_smellsCode smell detection with graph-enriched scoring (long functions, deep nesting, complexity)
ctx_smellsDetect code smells and anti-patterns

View Analysis & Navigation docs →