Setting up AI tools for every IDE and every team is a nightmare.
LeanCTX installs once and adapts automatically to your AI tool. Automatic agent prompt injection ensures every IDE uses lean-ctx tools without manual rule setup. It runs as an MCP server with 58+ tools, provides an HTTP API with typed errors and rate limiting, offers a TypeScript SDK for custom integrations, and supports 29+ IDEs including Cursor, Claude Code, Copilot, Windsurf, Pi, JetBrains, and Neovim.
Locked to a Single IDE
Your context tools are locked to a single IDE or agent. Switching from Cursor to Claude Code means losing all context infrastructure. Teams using different editors cannot share context or collaborate effectively.
LeanCTX works with 29+ editors and agents through MCP, HTTP API, and SDK. Install once, use everywhere.
6 tools
CLI-Redirect Mode
Zero MCP overhead. Agents call lean-ctx directly via shell for maximum token savings and fastest response times.
Smart Mode Selection
Automatically detects each agent's capabilities and configures CLI-Redirect, Hybrid, or Full MCP mode.
Background Daemon
Persistent Unix Domain Socket daemon with session state, instant cache hits, and zero startup overhead. Auto-restarts on binary update, proactive stale-file cleanup, 3s connect timeout for resilience.
29+ Agent Support
Cursor, Claude Code, Windsurf, Copilot, Pi, JetBrains, Gemini CLI, Codex, Qoder, and 15+ more — all auto-configured.
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.
See it in action
LeanCTX installs once and adapts automatically to your AI tool. Automatic agent prompt injection ensures every IDE uses lean-ctx tools without manual rule setup. It runs as an MCP server with 58+ tools, provides an HTTP API with typed errors and rate limiting, offers a TypeScript SDK for custom integrations, and supports 29+ IDEs including Cursor, Claude Code, Copilot, Windsurf, Pi, JetBrains, and Neovim.
7 MCP tools
LeanCTX installs once and adapts automatically to your AI tool. Automatic agent prompt injection ensures every IDE uses lean-ctx tools without manual rule setup. It runs as an MCP server with 58+ tools, provides an HTTP API with typed errors and rate limiting, offers a TypeScript SDK for custom integrations, and supports 29+ IDEs including Cursor, Claude Code, Copilot, Windsurf, Pi, JetBrains, and Neovim.
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.
Related Documentation
Every output carries proof
LeanCTX generates proof artifacts for every session: which files were read, what was compressed, which checks passed, and how tokens were spent. This makes AI work auditable, replayable, and trustworthy.
Explore Integrations
LeanCTX installs once and adapts automatically to your AI tool. Automatic agent prompt injection ensures every IDE uses lean-ctx tools without manual rule setup. It runs as an MCP server with 58+ tools, provides an HTTP API with typed errors and rate limiting, offers a TypeScript SDK for custom integrations, and supports 29+ IDEs including Cursor, Claude Code, Copilot, Windsurf, Pi, JetBrains, and Neovim.