Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_BRIDGE_CPUS | No | CPU limit | |
| MCP_BRIDGE_PIDS | No | Process limit | 128 |
| MCP_BRIDGE_IMAGE | No | Container image | python:3.12-slim |
| MCP_BRIDGE_MEMORY | No | Memory limit | 512m |
| MCP_BRIDGE_RUNTIME | No | Container runtime (podman/docker) | auto |
| MCP_BRIDGE_TIMEOUT | No | Default timeout | 30s |
| MCP_BRIDGE_STATE_DIR | No | Host directory for IPC sockets and temp state | ./.mcp-bridge |
| MCP_BRIDGE_MAX_TIMEOUT | No | Max timeout | 120s |
| MCP_BRIDGE_CONTAINER_USER | No | Run as UID:GID | 65534:65534 |
| MCP_BRIDGE_RUNTIME_IDLE_TIMEOUT | No | Shutdown delay | 300s |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| run_python | The Code Execution MCP engine. Executes Python code in a stateful, persistent rootless sandbox environment similar to a Jupyter notebook. Variables, functions, and imports are preserved across calls. Use this tool for general code execution, data analysis, or when the user asks to 'run code'. Supports loading additional MCP servers via the 'servers' array. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| code-execution-capabilities | Capability overview, helper reference, and sandbox usage notes (call runtime.capability_summary() inside the sandbox for this text). |