Skip to content

v2.17.5

Choose a tag to compare

@github-actions github-actions released this 06 Apr 19:49

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