锁定在单一IDE
您的上下文工具被锁定在单一IDE或Agent上。切换编辑器意味着丢失所有上下文基础设施。
LeanCTX通过MCP、HTTP API和SDK支持29+种编辑器和Agent。安装一次,随处使用。
6 工具
CLI-Redirect 模式
零 MCP 开销。代理直接通过 shell 调用 lean-ctx,实现最大 token 节省和最快响应。
智能模式选择
自动检测每个代理的能力,配置 CLI-Redirect、Hybrid 或 Full MCP 模式。
后台守护进程
持久 Unix Domain Socket daemon,具备会话状态、即时缓存命中和零启动开销。Binary 更新时自动重启,主动清理过期文件,3秒连接 timeout 确保可靠性。
29+ 代理支持
Cursor、Claude Code、Windsurf、Copilot、Pi、JetBrains、Gemini CLI、Codex、Qoder 等 15+ 更多——全部自动配置。
HTTP Tool Gateway
Every MCP tool is also callable via REST. The gateway persists shared state and publishes events for downstream automations.
Event-Driven Routing
Tool calls route through the Team Server with audit logging, scope enforcement, and real-time event publication.
查看实际效果
LeanCTX安装一次,自动适配--提供MCP服务器、HTTP API、SDK和29+个AI工具的原生集成。
7 MCP 工具
LeanCTX安装一次,自动适配--提供MCP服务器、HTTP API、SDK和29+个AI工具的原生集成。
ctx_call Compatibility meta-tool: call any ctx_* tool by name using a stable schema. Useful for MCP clients that freeze tool registries at startup (static tools/list).
ctx_provider External context provider (GitLab-first). Actions: gitlab_issues (list), gitlab_issue (show by iid), gitlab_mrs (list MRs), gitlab_pipelines (list pipelines). Requires GITLAB_TOKEN or LEAN_CTX_GITLAB_TOKEN.
ctx_index Index orchestration. Actions: status|build|build-full.
ctx_pack PR Context Pack. action=pr yields changed files, related tests, impact summary, and relevant context artifacts.
ctx_discover Find missed compression opportunities in shell history.
ctx_analyze Entropy analysis — recommends optimal compression mode for a file.
ctx_graph_diagram Generate a Mermaid diagram of the dependency or call graph. Deprecated alias for ctx_graph action=diagram.
每个输出都附带证明
LeanCTX为每个会话生成证明构件:读取了哪些文件、压缩了什么、哪些检查通过了、Token如何使用。这使AI工作可审计、可重放、值得信赖。