v3.4.7
Added
ctx_callmeta-tool — compatibility tool for MCP clients with static tool registries (e.g. Pi Coding Agent). Invoke anyctx_*tool by name via a stable schema without requiring dynamictools/listrefresh. Fixes #174.- Interactive Graph Explorer —
ctx_graph action=export-htmlgenerates a self-contained, interactive HTML visualization with pan/zoom, node selection, transitive highlighting, and PNG export. - Self-Hosted Team Server —
lean-ctx team serveenables shared context across workspaces with token-based auth, scoped permissions, rate limiting, and audit logging.
Changed
- Dual-format hook output —
lean-ctx hook rewrite/redirectnow emits a combined JSON response compatible with both Cursor (permission/updated_input) and Claude Code (hookSpecificOutput). All IDEs that support PreToolUse hooks now work with the same command. - JetBrains config format —
~/.jb-mcp.jsonnow uses the officialmcpServerssnippet format matching JetBrains AI Assistant documentation (was: nonstandardserversarray). - Shell hook block markers —
lean-ctx init --globalnow writes stable# lean-ctx shell hook — begin/endmarkers, making updates idempotent and safe across reinstalls.
Fixed
- Claude Code hooks not intercepting subagent calls —
extract_json_fieldin hook handlers was too rigid for pretty-printed or spaced JSON from Claude Code. Now robustly handles all formatting styles. Fixes Discord report. - Claude Code hooks overwriting other plugins —
install_claude_hook_confignow merges PreToolUse hooks instead of replacing the entire matcher group, preserving hooks from other plugins (e.g. obra/superpowers). lean-ctx doctorfalse positive "pipe guard missing" — on Windows Git Bash with XDG config paths, doctor now correctly detects shell hooks in both~/.lean-ctx/and~/.config/lean-ctx/directories, with both forward and backslash path separators. Fixes Discord report.- Pi Coding Agent array parameters —
get_str_arraynow accepts JSON-encoded strings (e.g."[\"a\",\"b\"]") in addition to native JSON arrays, fixingctx_multi_readfor the Pi MCP bridge. Fixes #173. - Windows CI test failure —
workspace_configtests now useserde_json::json!for path serialization, preventing invalid JSON escapes on Windows.
Upgrade
lean-ctx update # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx # or
npm update -g lean-ctx-bin # or
brew upgrade lean-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.4.7...v3.4.7