macOS Terminal

•

Enables AI agents to inspect and control macOS Terminal.app tabs, including listing windows, reading scrollback, executing commands, and clearing buffers, with robust three-tier safety and user confirmation.

This tool acts as a local Model Context Protocol (MCP) server, allowing AI agents to interact directly with your macOS Terminal.app. It provides eleven distinct tools across three categories: terminal interaction (list, read, execute, clear), safety policy management (list, add, remove, set level), and an asynchronous approval queue. A key highlight is its sophisticated three-tier safety model, which evaluates commands against regex patterns tagged as 'safe', 'requires_approval', or 'forbidden', ensuring that critical operations are either auto-run, require user confirmation via native macOS dialogs, or are outright refused. This system safeguards your system while empowering AI agents to automate and assist with terminal tasks.

Características Principales

01List and inspect all open Terminal.app tabs with detailed information.
02Three-tier safety model ('safe', 'requires_approval', 'forbidden') for command execution.
03Read the full buffer and scrollback of any Terminal.app tab.
04Native macOS confirmation dialogs for all non-safe write operations and an async approval queue for queued commands.
05Execute commands, clear buffers, and manage safety policies within Terminal.app.
060 GitHub stars

Casos de Uso

01Allowing AI agents to monitor and understand terminal session context.
02Enabling AI agents to safely execute commands and automate tasks in the terminal.
03Configuring granular safety policies for AI interaction with the command line.