>_

mcfly

agent-ready non-interactive

Fly through your shell history. Great Scott!

How to install mcfly

brew install mcfly

mcfly use case

Intelligently search and retrieve shell commands from history based on working directory and recent context

When to use mcfly

  • When you need to quickly recall a previously executed command
  • When you want history results prioritized by your current directory and recent commands
  • When you need to filter history by exit status or timestamp

When not to use mcfly

  • When you want a simple, uncontextualized history search (e.g., default ctrl-r)
  • When you need to share history across multiple machines without a shared database

mcfly features

  • · Rebinds ctrl-r to a full-screen contextual history search
  • · Prioritizes results using a small neural network trained on exit status, directory, and recent commands
  • · Stores history in a SQLite database with metadata (exit status, timestamp, directory)
  • · Supports Unicode and wildcard (%) matching

Want your agent to find this automatically?

Add the MCP server to your agent config and it will discover tools like mcfly on its own.

Set up MCP →

Similar tools to mcfly