### Install gm-exec globally and start MCP server Source: https://github.com/anentrypoint/gm-exec/blob/main/README.md Install gm-exec globally with Bun and start the MCP server. This is an alternative to using bunx directly. ```bash bun install -g gm-exec gm-exec --mcp ``` -------------------------------- ### Background execution output example Source: https://github.com/anentrypoint/gm-exec/blob/main/README.md Example output when a command exceeds the 15-second ceiling and is backgrounded. The task ID is provided, and you can monitor or close the task with the shown commands. ```text Backgrounded after 15s — task still running. Task ID: task_3 Watch output: gm-exec-cli status task_3 gm-exec-cli close task_3 gm-exec-cli runner stop ``` -------------------------------- ### Install Bun Source: https://github.com/anentrypoint/gm-exec/blob/main/README.md Install Bun, which is required (version 1.0 or higher) for gm-exec. ```bash curl -fsSL https://bun.sh/install | bash ``` -------------------------------- ### CLI usage examples for gm-exec-cli Source: https://github.com/anentrypoint/gm-exec/blob/main/README.md CLI usage examples: execute JavaScript, run bash commands, execute Python, and read code from a file. The --cwd option sets the working directory, --lang selects the language, and --file reads code from a file. ```bash bunx gm-exec-cli exec --cwd=/app "console.log('hello')" bunx gm-exec-cli bash --cwd=/app "npm install && npm test" bunx gm-exec-cli exec --lang=python --cwd=/app "print('hello')" bunx gm-exec-cli exec --file=script.js ``` -------------------------------- ### gm-exec-cli command reference Source: https://github.com/anentrypoint/gm-exec/blob/main/README.md Command reference for gm-exec-cli. The exec command waits up to 15 seconds before backgrounding, and bash has the same 15-second ceiling. The runner can be started manually with PM2 and no autorestart. ```text gm-exec-cli exec [options] Execute code (waits up to 15s, then backgrounds) --lang= nodejs (default), python, go, rust, c, cpp, java, deno --cwd= Working directory --file= Read code from file gm-exec-cli bash [--cwd=] Execute bash commands, same 15s ceiling gm-exec-cli status Poll status + drain output of a background task gm-exec-cli close Delete a background task gm-exec-cli runner start Start the runner manually (PM2, no autorestart) gm-exec-cli runner stop Stop the runner gm-exec-cli runner status Show runner PM2 status ``` -------------------------------- ### MCP client configuration for gm-exec Source: https://github.com/anentrypoint/gm-exec/blob/main/README.md Add this configuration to your MCP client config to use gm-exec as an MCP server. The command uses bunx to run gm-exec with the --mcp flag. ```json { "mcpServers": { "gm-exec": { "command": "bunx", "args": ["gm-exec", "--mcp"] } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.