Back to Home
M-Pineapple icon

claude-command-runner

by M-Pineapple

Overview

Facilitates AI-driven command execution and terminal automation by bridging Claude Desktop with local macOS terminals, primarily Warp, enabling intelligent output capture, command pipelines, real-time streaming, and reusable templates for developers.

Installation

Run Command
./.build/release/claude-command-runner --port 9876

Environment Variables

  • EDITOR

Security Notes

The most significant security risk is the direct use of `eval "$COMMAND"` within the `createOutputCaptureScript`. This command executes arbitrary strings as shell commands, making it highly vulnerable to command injection if the `$COMMAND` variable, derived from user input, is not perfectly sanitized. While there are security configurations to block known dangerous commands and patterns, and to require confirmation for sensitive operations, these are blacklist-based and an attacker could potentially bypass them with novel injection techniques (e.g., using semicolons, backticks, or other shell metacharacters not covered by the single-quote escaping). Crucially, the user is only prompted to execute `bash /tmp/claude_script_UUID.sh` in the terminal, not the potentially malicious command string itself, removing the user's direct visibility over the actual command being evaluated. This significantly reduces the user's ability to act as the final arbiter of safety. Additionally, the reliance on AppleScript for keystroke automation can be fragile and requires specific macOS accessibility permissions, which is a common point of friction and potential permission escalation.

Similar Servers

Stats

Interest Score26
Security Score3
Cost ClassHigh
Avg Tokens750
Stars11
Forks0
Last Update2025-12-30

Tags

MCP ServerTerminal AutomationClaude Desktop IntegrationWarp TerminalDeveloper Tools