You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: enhance code sandbox tools and update dependencies
- Introduce new tools for initializing environments, copying files, and executing commands in Docker containers.
- Refactor existing tools to improve functionality and streamline code execution processes.
- Update Go module dependencies to the latest versions, including Docker and OpenTelemetry packages.
- Remove outdated tools related to running code and projects, consolidating functionality into new tools.
- Improve error handling and logging across the code sandbox functionality.
A secure sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.
5
-

5
+
6
6
## 🌟 Features
7
7
8
-
-**Multi-Language Support**: Run Python, Go, and Node.js code in isolated Docker containers
9
-
-**TypeScript Support**: Built-in support for TypeScript and JSX/TSX files
10
-
-**Dependency Management**: Automatic handling of project dependencies (pip, go mod, npm)
11
-
-**Flexible Execution**: Custom entrypoints for both single-file code and full projects
12
-
-**Background Mode**: Run long-running services in the background
13
-
-**Real-time Output**: Capture and stream container logs in real-time
8
+
-**Flexible Container Management**: Create and manage isolated Docker containers for code execution
9
+
-**Custom Environment Support**: Use any Docker image as your execution environment
10
+
-**File Operations**: Easy file and directory transfer between host and containers
11
+
-**Command Execution**: Run any shell commands within the containerized environment
12
+
-**Real-time Logging**: Stream container logs and command output in real-time
13
+
-**Auto-Updates**: Built-in update checking and automatic binary updates
14
+
-**Multi-Platform**: Supports Linux, macOS, and Windows
14
15
15
16
## 🚀 Installation
16
17
@@ -28,16 +29,6 @@ A secure sandbox environment for executing code within Docker containers. This M
2. Download the appropriate binary for your system
50
-
3. Create Claude Desktop configuration
41
+
3. Create necessary configuration files
51
42
52
-
### Manual Installation (Not necesary if automated installation is used)
43
+
### Manual Installation
53
44
54
45
1. Download the latest release for your platform from the [releases page](https://github.com/Automata-Labs-team/code-sandbox-mcp/releases)
55
46
2. Place the binary in a directory in your PATH
56
47
3. Make it executable (Unix-like systems only):
57
48
```bash
58
49
chmod +x code-sandbox-mcp
59
50
```
51
+
60
52
## 🛠️ Available Tools
61
53
62
-
#### `run_code`
63
-
Executes code snippets in an isolated Docker container.
54
+
#### `sandbox_initialize`
55
+
Initialize a new compute environment for code execution.
56
+
Creates a container based on the specified Docker image.
64
57
65
58
**Parameters:**
66
-
-`code` (string, required): The code to run
67
-
-`language` (enum, required): Programming language to use
68
-
- Supported values: `python`, `go`, `nodejs`
69
-
- Note: If your Python code requires external dependencies, it is recommended to use the `run_project` tool instead. Go and Node.js script dependencies are automatically installed.
59
+
-`image` (string, optional): Docker image to use as the base environment
60
+
- Default: 'python:3.12-slim-bookworm'
70
61
71
62
**Returns:**
72
-
-Container execution output (stdout + stderr)
63
+
-`container_id` that can be used with other tools to interact with this environment
73
64
74
-
**Features:**
75
-
- Automatic dependency detection and installation
76
-
- Python: Detects imports and installs via pip
77
-
- Node.js: Detects require/import statements and installs via npm
0 commit comments