github yvgude/lean-ctx v2.17.5

latest releases: v3.9.6, v3.9.5, v3.9.4...
3 months ago

Fix: ctx_shell Input Validation (#50)

Added

  • File-write command blockingctx_shell now detects and rejects shell redirects (>, >>), heredocs (<< EOF), and tee commands. Returns a clear error redirecting to the native Write tool
  • Command size limit — Rejects commands over 8KB, preventing oversized heredocs from corrupting the MCP protocol stream
  • Quote-aware redirect parsing — Redirect detection respects single/double quotes, ignores 2> (stderr) and > /dev/null

This prevents the cascading failure reported in #50:
Oversized ctx_shell → API Error 400 → MCP stream corruption → "path is required" → MCP stops

Upgrade

cargo install lean-ctx          # or
npm update -g lean-ctx-bin      # or
brew upgrade lean-ctx

Full Changelog: v2.17.4...v2.17.5

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.