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_FILE_CHUNK_BYTES=49152

Full env list: ENV.md.

Do not configure domain, gateway, sandbox URL template, CA, or TLS flags in client. They are loaded from E2B_API_URL/config.

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.

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
  • get_host

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.0.tar.gz (18.7 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.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maas_e2b_sandbox-0.1.0.tar.gz
  • Upload date:
  • Size: 18.7 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.0.tar.gz
Algorithm Hash digest
SHA256 b82725777a9de06e8d60903902a5c67501bfe2c7453274226c5a9ce814fbd780
MD5 ecce1b1679eef5bbe94c2b8cd9b55eae
BLAKE2b-256 b18dc2211c82ee196cbcfd328483323ec66cbb06a7c3611514afa75c34edd0c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for maas_e2b_sandbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f3216a977f1d4bc85fd12c45c01d6039d4c20f7613b21c20634d85e2bd93f05
MD5 4876a07558d2d8b907ec207a43be2545
BLAKE2b-256 936819b3cecdda52a313f6b382a060c5e927dc8c66f4248792d93ce8f3776113

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