Skip to content

Conversation

@gali-leilei
Copy link
Contributor

major changes (potentially breaking):

  • upgrade e2b-code-interpreter>=1.2.1 to e2b-code-interpreter==2.0.0. This enables beta_pause().
  • downgrade from fastmcp import fastMCP to from mcp.server.fastmcp import fastMCP. This enables mcp dev recipe, as well as notification messages from mcp server.

others small changes:

  • uv.lock file update.
  • justfile update.
  • add max_context_length to config/llm/default.yaml.

the changes were tested in two ways:

  1. unit test with just mcp-inspect python_mcp_server.py.
image
  1. e2e test with uv run main.py agent=evaluation llm=default.
image image

Known minor issues.

  • http 409 from having timeout parameter. This is a known open issue.
  • http 204 from calling beta_pause().
  • just mcp-inspect xxx.py still requires setting environment variables.

@gali-leilei gali-leilei requested review from BinWang28, Copilot and jenny-miromind and removed request for Copilot September 22, 2025 03:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 fastmcp to mcp.server.fastmcp import for improved MCP development workflow
  • Replace deprecated set_timeout() calls with timeout parameters and beta_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants