Skip to main content

MaaS E2B sandbox MCP server

Project description

E2B Sandbox MCP Server

MCP server for E2B sandbox. MaaS mode uses MaaS E2B proxy and tenant API key.

Config

Environment:

E2B_API_KEY=e2b_xxx
E2B_API_URL=https://maas.example.com/api/e2b

Optional:

E2B_TEMPLATE=code-interpreter
E2B_TIMEOUT=300
E2B_REQUEST_TIMEOUT=60
E2B_VERIFY_SSL=true

Full env list: ENV.md. OpenClaw and Hermes config: INTEGRATION.md.

The SDK derives MaaS data-plane URLs from E2B_API_URL:

  • HTTP: {E2B_API_URL}/sandbox-proxy/{sandbox_id}/ports/{port}
  • WebSocket: {E2B_API_URL}/ws/sandbox-proxy/{sandbox_id}/ports/{port}

No MaaS /config endpoint is required.

Run

python3.11 -m venv .venv
source .venv/bin/activate
pip install -e .

export E2B_API_KEY=e2b_xxx
export E2B_API_URL=https://maas.example.com/api/e2b

python tests/test_mcp_create_delete.py
python tests/test_mcp_client.py

After install, the server command is maas-e2b-sandbox. For normal installation, use pipx install maas-e2b-sandbox or install with pip inside a virtual environment.

MCP

mcp_servers:
  e2b_sandbox:
    command: maas-e2b-sandbox
    timeout: 180
    env:
      PYTHONUNBUFFERED: "1"
      E2B_API_KEY: e2b_xxx
      E2B_API_URL: https://maas.example.com/api/e2b

Tools

  • code_run
  • cmd_run, cmd_start, cmd_output, cmd_input, cmd_kill
  • file_write, file_read, file_upload, file_download, file_inspect
  • create_session, list_sessions, close_session

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maas_e2b_sandbox-0.1.1.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maas_e2b_sandbox-0.1.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file maas_e2b_sandbox-0.1.1.tar.gz.

File metadata

  • Download URL: maas_e2b_sandbox-0.1.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for maas_e2b_sandbox-0.1.1.tar.gz
Algorithm Hash digest
SHA256 adcc60b0dfd7c74881ccdd7e9296339cf7fdb3a827f74a8e2b60a4da5f9e9ec0
MD5 d18c9094925313aa6b9c03b50709afd0
BLAKE2b-256 d9b796a35d058e0db72d31bb10c007ff7b2af3c99a0425d609602fbecac1d387

See more details on using hashes here.

File details

Details for the file maas_e2b_sandbox-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for maas_e2b_sandbox-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a7dd17121ff79fb25fe6a82f1ebf11edba587d81e6448036951acb187f1b296
MD5 cca61cd4440928ff0d71f622014ab227
BLAKE2b-256 c5cd7b1b473ddba9ba39701fd58051b85a66a3900983e2c9d1553be65335e00f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page