Skip to main content
Glama

gm-exec

NOTA: Si buscas mcp-repl, glootie o GM... ahora está en: http://github.com/anEntrypoint/gm

Herramienta de ejecución de código para clientes MCP y CLI. Soporte multilingüe (JS/TS, Python, Go, Rust, C, C++, Deno, Java, bash). Construido sobre Bun con aislamiento de procesos gestionado por PM2.

Related MCP server: MCP QuickJS Runner

Servidor MCP

Añádelo a la configuración de tu cliente MCP:

{
  "mcpServers": {
    "gm-exec": {
      "command": "bunx",
      "args": ["gm-exec", "--mcp"]
    }
  }
}

O instálalo globalmente:

bun install -g gm-exec
gm-exec --mcp

CLI

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

Comandos

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 status

Ejecución en segundo plano

Los comandos tienen un límite estricto de 15 segundos. Si siguen ejecutándose después de ese tiempo, el proceso pasa a segundo plano y obtienes un ID de tarea con instrucciones de monitoreo:

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

El ejecutor se inicia automáticamente antes de cada comando y se detiene automáticamente después, a menos que una tarea se haya enviado a segundo plano, en cuyo caso el ejecutor permanece activo hasta que lo detengas explícitamente.

Lenguajes soportados

Lenguaje

Entorno de ejecución

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

Requisitos

curl -fsSL https://bun.sh/install | bash
Install Server
A
license - permissive license
A
quality
F
maintenance

Resources

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