Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Remove echos

f-trycuad903aecf0776
diff --git a/libs/mcp-server/scripts/run_mcp_server.sh b/libs/mcp-server/scripts/run_mcp_server.sh
index 7caeef6f5d..3295e43a51 100755
--- a/libs/mcp-server/scripts/run_mcp_server.sh
+++ b/libs/mcp-server/scripts/run_mcp_server.sh
@@ -12,19 +12,16 @@ command_exists() {
# Check if Python is installed
if ! command_exists python3; then
- echo "Python 3 is not installed. Please install Python 3."
exit 1
fi
# Check if pip is installed
if ! command_exists pip3; then
- echo "pip3 is not installed. Please install pip3."
exit 1
fi
# Create virtual environment if it doesn't exist
if [ ! -d "$VENV_DIR" ]; then
- echo "Creating virtual environment for CUA MCP Server..."
python3 -m venv "$VENV_DIR"
# Activate virtual environment
@@ -41,17 +38,9 @@ else
# Check if mcp_server package is installed in the virtual environment
if ! python3 -c "import importlib.util; print(importlib.util.find_spec('mcp_server') is not None)" 2>/dev/null | grep -q "True" 2>/dev/null; then
- echo "Installing cua-mcp-server in virtual environment..."
pip install "cua-mcp-server"
fi
-
- # Check if torch is installed in the virtual environment
- if ! python3 -c "import importlib.util; print(importlib.util.find_spec('torch') is not None)" 2>/dev/null | grep -q "True" 2>/dev/null; then
- echo "Installing torch in virtual environment..."
- pip install torch
- fi
fi
# Run the server in the virtual environment
-echo "Starting MCP Server..."
python3 -c "from mcp_server.server import main; main()"