التوثيق

مرجع الأدوات

مرجع كامل لجميع أدوات LeanCTX MCP الـ 58.

LeanCTX يوفر 58 أداة MCP في أربع فئات.

الأدوات الأساسية - ملف ورمز

الأساس - 90% من تفاعلات البرمجة.

الأداةماذا تفعلالتوفير
ctx_readقراءة ملف ذكية مع 10 read modesup to 99%
ctx_multi_readقراءة ملفات دفعيةرحلات أقل
ctx_treeخرائط بنية مشروع مدمجة34-60%
ctx_shellأوامر الشل مع ضغط أكثر من 95 نمطاً.
ctx_searchبحث في الكود بالتعابير النمطية50-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

عرض توثيق الأدوات الأساسية الكامل ←


محرك الذكاء

أدوات تتجاوز الضغط.

الأداةماذا تفعل
ctx_fillملء سياق بميزانية رموز
ctx_intentاكتشاف النية الدلالية
ctx_contextنظرة عامة على السياق
ctx_graphرسم اعتماديات مشروع دائم
ctx_dedupتحليل إزالة التكرار
ctx_responseضغط استجابة ثنائي الاتجاه
ctx_discoverتحليل سجل الشل
ctx_preloadمحمّل سياق استباقي - يخزّن الملفات ذات الصلة مؤقتًا عند بدء الجلسة
ctx_semantic_searchبحث دلالي هجين (BM25 + تمثيلات متجهية) - يعثر على الكود بالمعنى حتى بدون تطابق كلمات مفتاحية
ctx_overviewProject overview with structure, entry points, and key files
ctx_prefetchPre-load files based on task context and changed files
ctx_graph_diagramمخططات Mermaid لرسم الاعتماديات أو الاستدعاءات
ctx_compress_memoryضغط Markdown للذاكرة/الإعدادات (يحافظ على الكود/الروابط) + نسخة احتياطية .original
ctx_impactImpact analysis: trace dependency chains and build graphs
ctx_architectureGraph-based architecture analysis: clusters, layers, cycles
ctx_analyzeEntropy analysis - recommends optimal compression mode

عرض توثيق محرك الذكاء الكامل ←


الجلسة والمراقبة

كل ما تحتاجه لقياس وتحسين توفير الرموز.

الأداةماذا تفعل
ctx_sessionذاكرة جلسة عبر المحادثات
ctx_compressنقطة تفتيش سياق مدمجة
ctx_benchmarkعدد الرموز الفعلي لكل وضع
ctx_metricsإحصائيات الجلسة بالدولار
ctx_wrappedبطاقة تقرير التوفير
ctx_cacheإدارة التخزين المؤقت
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

عرض توثيق الجلسة الكامل ←


الذاكرة والوكلاء المتعددين

ذاكرة عبر الجلسات. جديد في v2.7.0.

الأداةماذا تفعل
ctx_knowledgeمخزن معرفة مشروع دائم
ctx_agentتنسيق متعدد الوكلاء - تسجيل، نشر، تسليم المهام، مزامنة الحالة
ctx_shareمشاركة السياق بين الوكلاء - دفع/سحب محتويات الملفات المخزنة مؤقتًا
ctx_taskTask delegation and tracking across agents
ctx_costCost attribution - track token spend per agent and tool
ctx_contextنظرة عامة على السياق

عرض توثيق الذاكرة الكامل ←


Workflow & Orchestration

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

الأداةماذا تفعل
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.

الأداةماذا تفعل
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 →