MCP-REPL
gm-exec
HINWEIS: Wenn Sie nach mcp-repl, glootie oder GM suchen... das finden Sie jetzt unter: http://github.com/anEntrypoint/gm
Code-Ausführungstool für MCP-Clients und CLI. Unterstützung für mehrere Sprachen (JS/TS, Python, Go, Rust, C, C++, Deno, Java, bash). Basiert auf Bun mit PM2-verwalteter Prozessisolierung.
Related MCP server: MCP QuickJS Runner
MCP-Server
Fügen Sie dies zu Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"gm-exec": {
"command": "bunx",
"args": ["gm-exec", "--mcp"]
}
}
}Oder installieren Sie es global:
bun install -g gm-exec
gm-exec --mcpCLI
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.jsBefehle
gm-exec-cli exec [options] <code> Execute code (waits up to 15s, then backgrounds)
--lang=<lang> nodejs (default), python, go, rust, c, cpp, java, deno
--cwd=<dir> Working directory
--file=<path> Read code from file
gm-exec-cli bash [--cwd=<dir>] <cmd> Execute bash commands, same 15s ceiling
gm-exec-cli status <task_id> Poll status + drain output of a background task
gm-exec-cli close <task_id> 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 statusHintergrundausführung
Befehle haben eine harte Obergrenze von 15 Sekunden. Wenn sie danach noch laufen, wird der Prozess in den Hintergrund verschoben und Sie erhalten eine Aufgaben-ID mit Anweisungen zur Überwachung:
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 stopDer Runner startet automatisch vor jedem Befehl und stoppt automatisch danach – es sei denn, eine Aufgabe wurde in den Hintergrund verschoben; in diesem Fall bleibt der Runner aktiv, bis Sie ihn explizit stoppen.
Unterstützte Sprachen
Sprache | Laufzeit |
JavaScript / TypeScript | Node.js / Bun |
Python | python3 |
Go | go run |
Rust | rustc |
C | gcc |
C++ | g++ |
Java | javac + java |
Deno | deno run |
bash / sh / zsh | shell |
Anforderungen
Bun ≥ 1.0
curl -fsSL https://bun.sh/install | bashResources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AnEntrypoint/gm-exec'
If you have feedback or need assistance with the MCP directory API, please join our Discord server