1203ccbad3
<!-- CURSOR_SUMMARY --> > [!NOTE] > Adds beta MCP support to JS/Python SDKs with template auto-selection, config POST, MCP URL helpers, and codegen for MCP types/schemas. > > - **SDKs (Beta MCP support)**: > - **JS SDK**: > - Add `McpServer` types and export; extend `Sandbox.betaCreate` with `mcp` option that auto-selects `mcp-gateway-v0`, configures MCP via POST `/config` on port `50005` with retries, and expose `betaGetMcpUrl()`. > - Add `wait(ms)` util; generate MCP types from `spec/mcp-server.json`; new `generate:mcp` script and dev dep `json-schema-to-typescript`. > - **Python SDK**: > - Generate and export `McpServer` (TypedDict); extend sync/async `beta_create` with `mcp` option, auto-select default MCP template, POST MCP config with retries, and add `beta_get_mcp_url()`; define `mcp_port` and `default_mcp_template`. > - Makefile: add `generate-mcp` target; include `datamodel-code-generator` in tooling; update lockfile/pyproject deps. > - **Tooling**: > - Add `spec/mcp-server.json` schema; update codegen Dockerfile to install `datamodel-code-generator`. > - > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit cf3f175d310d4c242cd2e867efd801f5c04f2099. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Jonas Scholz <Jonas.Scholz@bbscholz.de>
44 lines
1.0 KiB
TOML
44 lines
1.0 KiB
TOML
[tool.poetry]
|
|
name = "e2b"
|
|
version = "2.2.2"
|
|
description = "E2B SDK that give agents cloud environments"
|
|
authors = ["e2b <hello@e2b.dev>"]
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
homepage = "https://e2b.dev/"
|
|
repository = "https://github.com/e2b-dev/e2b/tree/main/packages/python-sdk"
|
|
packages = [{ include = "e2b" }, { include = "e2b_connect" }]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.9"
|
|
|
|
python-dateutil = ">=2.8.2"
|
|
protobuf = ">=4.21.0"
|
|
httpcore = "^1.0.5"
|
|
httpx = ">=0.27.0, <1.0.0"
|
|
attrs = ">=23.2.0"
|
|
packaging = ">=24.1"
|
|
typing-extensions = ">=4.1.0"
|
|
dockerfile-parse = "^2.0.1"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
pytest = "^7.4.0"
|
|
pytest-xdist = "^3.3.1"
|
|
python-dotenv = "^1.0.0"
|
|
pytest-dotenv = "^0.5.2"
|
|
pytest-asyncio = "^0.23.7"
|
|
pydoc-markdown = "^4.8.2"
|
|
datamodel-code-generator = "^0.34.0"
|
|
ruff = "^0.11.12"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.poetry.urls]
|
|
"Bug Tracker" = "https://github.com/e2b-dev/e2b/issues"
|
|
|
|
[tool.ruff]
|
|
exclude = [
|
|
"e2b/envd/filesystem/filesystem_pb2.py"
|
|
] |