feat(e2b): enable beta_pause() for e2b sandbox#37
Open
gali-leilei wants to merge 6 commits intomainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the e2b-code-interpreter to version 2.0.0 to enable beta_pause() functionality and downgrades the FastMCP import path for better MCP development support.
- Upgrade e2b-code-interpreter from >=1.2.1 to ==2.0.0 for beta_pause support
- Switch from
fastmcptomcp.server.fastmcpimport for improved MCP development workflow - Replace deprecated
set_timeout()calls with timeout parameters andbeta_pause()
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py | Updated e2b sandbox API calls to use v2.0.0 methods and added beta_pause functionality |
| libs/miroflow-tools/pyproject.toml | Pinned e2b-code-interpreter to v2.0.0 and added mcp[cli] dev dependency |
| justfile | Added environment loading and mcp-inspect command for testing MCP servers |
| apps/miroflow-agent/pyproject.toml | Commented out e2b-code-interpreter dependency |
| apps/miroflow-agent/conf/llm/default.yaml | Added max_context_length configuration |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
libs/miroflow-tools/src/miroflow_tools/mcp_servers/python_mcp_server.py
Outdated
Show resolved
Hide resolved
…server.py accepted Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
b94caaf to
1c72a9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
major changes (potentially breaking):
e2b-code-interpreter>=1.2.1toe2b-code-interpreter==2.0.0. This enablesbeta_pause().from fastmcp import fastMCPtofrom mcp.server.fastmcp import fastMCP. This enablesmcp devrecipe, as well as notification messages from mcp server.others small changes:
uv.lockfile update.justfileupdate.max_context_lengthtoconfig/llm/default.yaml.the changes were tested in two ways:
just mcp-inspect python_mcp_server.py.uv run main.py agent=evaluation llm=default.Known minor issues.
timeoutparameter. This is a known open issue.beta_pause().just mcp-inspect xxx.pystill requires setting environment variables.