MCP-REPL
gm-exec
참고: mcp-repl, glootie 또는 GM을 찾으시는 경우, 현재 다음 위치로 이전되었습니다: http://github.com/anEntrypoint/gm
MCP 클라이언트 및 CLI를 위한 코드 실행 도구입니다. 다중 언어 지원(JS/TS, Python, Go, Rust, C, C++, Deno, Java, bash). Bun 기반으로 구축되었으며 PM2로 관리되는 프로세스 격리를 제공합니다.
Related MCP server: MCP QuickJS Runner
MCP 서버
MCP 클라이언트 설정에 추가하세요:
{
"mcpServers": {
"gm-exec": {
"command": "bunx",
"args": ["gm-exec", "--mcp"]
}
}
}또는 전역으로 설치하세요:
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.js명령어
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백그라운드 실행
명령어는 15초의 엄격한 제한 시간이 있습니다. 15초 후에도 실행 중인 경우 프로세스는 백그라운드로 전환되며 모니터링 지침이 포함된 작업 ID를 받게 됩니다:
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러너는 각 명령어 실행 전에 자동으로 시작되고 실행 후에 자동으로 중지됩니다. 단, 작업이 백그라운드로 전환된 경우에는 명시적으로 중지할 때까지 러너가 계속 실행됩니다.
지원되는 언어
언어 | 런타임 |
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 |
요구 사항
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