Commit Graph

41 Commits

Author SHA1 Message Date
Jonas Scholz d7d55df930 Add mcp to request body (#961)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Adds `mcp` config support for sandbox creation across API, JS, and
Python SDKs, and updates timeout tests to use explicit request timeouts.
> 
> - **API/OpenAPI**:
> - Add `McpConfig` schema and `mcp` field to `NewSandbox` in
`spec/openapi.yml` and generated TS `schema.gen.ts`.
> - **JS SDK**:
> - `SandboxApi.createSandbox` sends `mcp` in POST body
(`packages/js-sdk/src/sandbox/sandboxApi.ts`).
>   - Types updated to include `components["schemas"]["McpConfig"]`.
> - **Python SDK**:
> - Extend `NewSandbox` model and sandbox create flow to accept/pass
`mcp`; async/sync APIs propagate `mcp` to POST `/sandboxes`.
> - **Tests**:
> - Increase `is_running` request timeouts in timeout tests to reduce
flakiness (JS and Python).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
04ad4e6d4947e33523b74aba2f703fa1e9c05e72. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-10-17 12:31:32 -07:00
Mish Ushakov 67070bb9ea Synced spec + generated API client (#889)
Changelog

- Synced latest spec from e2b-dev/infra
- Regenerated API clients
2025-09-03 05:43:47 -07:00
Jakub Novák cf0bb40ed3 Fix autopause (#876)
# Description

Autopause option shouldn't be passed for resume
2025-09-03 11:48:12 +00:00
Jakub Novák 74457ff1dd SDK v2 - Changeset and docs (#862)
SDK v2 release
2025-08-21 08:45:25 -07:00
Jakub Novák 1aee7c8195 Refactor Sandbox object in Python (#855)
# Description

We can simplify typing and return only SandboxInfo in SDKs as the types
are very similar (there are some extra fields in detail, which we don't
want to expose but we need them e.g. for connect)
2025-08-10 12:40:09 -07:00
Jakub Novák f123091e9a Allow to block network from SDK (#834)
# Description

This pull request introduces the ability to control internet access for
sandboxes, enhancing security for sensitive workloads.
2025-07-31 02:34:57 -07:00
Jakub Novák 706ebd9af8 Fix generating files with docker (#829)
# Description

Fixes an issue in generating files in Docker. There has been an
incompatibility of `buf` (version `29.5`) and `protoc-gen-es` (version
`2.2.2`).

I updated `protoc-gen-es@` to `2.6.2`

Also refactored the code a little so it's easier to read
Added a CI pipeline job to check all files are properly generated
2025-07-28 13:47:26 +02:00
Jiri Sveceny 10e9a28a82 Support sandbox domain in sdk and cli (#821)
Support sandbox traffic routing to the custom domain returned from API.
2025-07-18 13:15:12 +02:00
Jiri Sveceny 2def1305f3 Flag for securing envd access with auth token (#688)
Waiting until secure flag will be available in production cluster.

---------

Co-authored-by: Jakub Novák <jakub@e2b.dev>
2025-05-14 15:15:18 +00:00
Jakub Novák 5c4d07536f Add filtering option for listing sandboxes (#532)
# Description

Allow users to filter out sandbox based on metadata

---------

Co-authored-by: Mish Ushakov <10400064+mishushakov@users.noreply.github.com>
2025-03-21 15:57:48 +01:00
Jakub Novak 594bb174d2 Generate only relevant api routes for the client in SDKs 2025-01-17 11:01:40 -08:00
Mish Ushakov fc8086dcf5 Changed template ls command to sync with latest API changes (#508)
- Added createdBy, createdAt columns
- Hidden 'buildCount', 'lastSpawnedAt', 'spawnCount', 'updatedAt'
columns
- Sync API spec and ts schema to latest

---------

Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>
Co-authored-by: Jakub Novák <jakub@e2b.dev>
2024-12-17 11:35:20 +01:00
Jakub Novak b38e0ee2a4 Fix env vars type 2024-08-14 13:12:01 +02:00
Jakub Novak 2357fa3da7 Add possibility to add env vars on sandbox create 2024-08-14 11:08:25 +02:00
Tomas Valenta 41703374c0 Merge branch 'grpc' into beta 2024-06-28 11:10:10 -07:00
Jakub Novak dd8960c572 Add check if template has envd V2 2024-06-26 12:51:12 +02:00
Tomas Valenta 955876ef29 Fix openapi specs 2024-06-24 21:59:12 -07:00
Tomas Valenta 5bfcc9a20e Imrpove connection config; [WIP] Rework Python SDK 2024-06-01 21:07:13 +02:00
Tomas Valenta 068ff5613f Regenerate APIs 2024-05-31 06:40:42 +02:00
Tomas Valenta 3b4c915a48 Generate clients 2024-05-17 02:05:12 -07:00
Tomas Valenta 34adeb29d2 Update spec/openapi.yml
Co-authored-by: Jakub Novák <jakub@e2b.dev>
2024-04-05 16:30:42 -07:00
Tomas Valenta 8f784c210f Fix logs response handling 2024-04-04 14:20:36 -07:00
Tomas Valenta f00c58658e Regenerate logs endpoint from API spec 2024-04-04 13:44:55 -07:00
Tomas Valenta e24a494969 Add basic logs command 2024-04-03 16:12:40 -07:00
Jakub Novák 2bafaf0db4 Switch the template build to local (#338)
Change CLI to build the docker image locally
2024-03-24 10:12:43 -07:00
Jakub Novak 1801039dbf Add info about memory and cpus to sandbox list 2024-02-28 06:57:27 -08:00
Vasek Mlejnsky 710f227b85 Document process for customizing sandbox compute (#322)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
Co-authored-by: Jakub Novak <jakub@e2b.dev>
2024-02-27 21:43:48 -08:00
Jakub Novák 7fe1d3b569 Rename api endpoints (#298) 2024-02-02 18:57:40 +01:00
Jakub Novak 363b577c69 Add alias to list command 2024-01-30 10:56:25 +01:00
Jakub Novák 34f49ca350 List running sandboxes (#297) 2024-01-29 17:10:11 +01:00
Tomas Valenta 962b867c97 Add delete command to CLI 2023-11-20 13:31:41 +01:00
Jakub Novak f636bdb997 Fix minor issues, raise error on incorrect values 2023-11-16 09:45:12 +01:00
Jakub Novak 89d90f86db Update schema 2023-11-16 09:45:11 +01:00
Jakub Novak cc39593e3d Regenerate python client 2023-11-16 09:45:10 +01:00
Jakub Novak 3c2fc9faf5 Regenerate clients 2023-11-09 17:04:18 +01:00
Jakub Novak 9b3a162b39 Update openapi spec 2023-11-09 11:09:17 +01:00
Jakub Novak 2e1da46935 Update openapi spec 2023-11-09 11:06:37 +01:00
Tomas Valenta 417035073c Update JS SDK generated API client 2023-11-08 12:35:05 +01:00
Jakub Novák 388309830b New infra (#212)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
Co-authored-by: Vasek Mlejnsky <vasek.mlejnsky@gmail.com>
2023-11-06 15:07:09 +01:00
Jakub Novák 4ad651feaa Support both pydantic v1 and v2 in python sdk (#176)
Test CLI / Build CLI (push) Has been cancelled
2023-09-29 16:27:26 +02:00
Jakub Novak 491863313b Merge commit '4ff975b65580fca7a843fdc214e875f2f2147db6' as 'spec' 2023-09-15 14:11:13 +02:00