LeanCTX يوفر 58 أداة MCP في أربع فئات.
الأدوات الأساسية - ملف ورمز
الأساس - 90% من تفاعلات البرمجة.
| الأداة | ماذا تفعل | التوفير |
|---|---|---|
ctx_read | قراءة ملف ذكية مع 10 read modes | up to 99% |
ctx_multi_read | قراءة ملفات دفعية | رحلات أقل |
ctx_tree | خرائط بنية مشروع مدمجة | 34-60% |
ctx_shell | أوامر الشل مع ضغط أكثر من 95 نمطاً. | |
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 |
عرض توثيق الأدوات الأساسية الكامل ←
محرك الذكاء
أدوات تتجاوز الضغط.
| الأداة | ماذا تفعل |
|---|---|
ctx_fill | ملء سياق بميزانية رموز |
ctx_intent | اكتشاف النية الدلالية |
ctx_context | نظرة عامة على السياق |
ctx_graph | رسم اعتماديات مشروع دائم |
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 للذاكرة/الإعدادات (يحافظ على الكود/الروابط) + نسخة احتياطية .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 |
عرض توثيق محرك الذكاء الكامل ←
الجلسة والمراقبة
كل ما تحتاجه لقياس وتحسين توفير الرموز.
| الأداة | ماذا تفعل |
|---|---|
ctx_session | ذاكرة جلسة عبر المحادثات |
ctx_compress | نقطة تفتيش سياق مدمجة |
ctx_benchmark | عدد الرموز الفعلي لكل وضع |
ctx_metrics | إحصائيات الجلسة بالدولار |
ctx_wrapped | بطاقة تقرير التوفير |
ctx_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 |