RTK

•

Route shell commands through Rust Token Killer to achieve 60-90% token reduction before terminal output reaches LLM context windows.

rtk-mcp acts as an MCP server bridge for Rust Token Killer (RTK), enabling AI clients like Claude Desktop, Cursor, and Windsurf to execute terminal commands with dramatically condensed outputs. By utilizing RTK's canonical rewrite hooks, the server intelligently summarizes outputs from high-volume CLI tools such as cargo, git, ls, and grep while leaving unsupported commands untouched. It includes automated self-management capabilities, capable of installing or upgrading RTK binaries in place, and supports Windows, macOS, and Linux with cross-platform shell compatibility.

Key Features

01Achieves 60% to 90% token reduction on common terminal commands like git diff and cargo test
02Uses RTK rewrite hooks to filter known commands while directly passing through unrecognized outputs
03Built-in automated installation, validation, and upgrade management for RTK binaries
04Cross-platform execution supporting sh on Linux/macOS and Git Bash or cmd.exe on Windows
05Preserves command safety by enforcing Claude deny rules and allowing raw output via an override prefix
060 GitHub stars

Use Cases

01Minimizing token usage and context window consumption during long interactive coding sessions with Claude Desktop
02Executing extensive test suites and build tools without flooding the context window with repetitive log outputs
03Inspecting large diffs and directory trees via AI assistants without exceeding context length limits