Open
Description
Environment
- OS: macOS
- Using requirements.txt for Python dependencies
- Project structure includes main.py and requirements.txt
Description
The mcp__code-sandbox__run_project tool fails when attempting to execute Python projects that use requirements.txt. The error is simply reported as "undefined" without any additional details, making
debugging difficult.
Steps to Reproduce
- Create a Python project with main.py and requirements.txt
- Add dependencies to requirements.txt (e.g., requests==2.31.0)
- Try to run the project using:
mcp__code-sandbox__run_project
projectDir: /path/to/project
language: python
entrypointCmd: python main.py
Expected Behavior
The sandbox should successfully:
- Create a Docker container
- Install dependencies using uv (from requirements.txt)
- Execute the Python script
- Return the resource URI of the container logs
Actual Behavior
The tool fails with the error: "Error calling tool run_project: undefined"
Metadata
Metadata
Assignees
Labels
No labels