Back to Home
timoconnellaus icon

bun-runner-mcp

Verified Safe

by timoconnellaus

Overview

Execute TypeScript/JavaScript code in a sandboxed Bun environment with permission-based security controls, supporting code snippets and web-based management.

Installation

Run Command
bun run ./src/mcp/server.ts

Environment Variables

  • EXECUTION_MODE
  • BUN_RUNNER_DATA_DIR
  • BUN_RUNNER_HTTP_PORT
  • BUN_*

Security Notes

The server employs robust sandboxing, offering two main modes: preload and container. Preload mode uses Bun's `--preload` to intercept dangerous APIs (like `fetch`, `Bun.write`, `Bun.spawn`, `process.env` access) and routes them through a permission-checking proxy. Container mode (recommended for untrusted code) leverages Apple Containers (macOS 26+) for VM-level isolation, resource limits (CPU, memory), and package management. The accompanying Docker configuration (`docker-compose.yml`, `seccomp-profile.json`) further demonstrates a high level of security consciousness, implementing read-only filesystems, dropped capabilities, and syscall filtering. Hardcoded secrets are not apparent; environment variables are loaded securely from files or prefixed process environment variables.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-11-28

Tags

sandboxed executionpermission systemcode snippetsApple ContainersHTTP proxy