mirror of
https://github.com/trycua/computer.git
synced 2026-01-03 12:00:00 -06:00
Remove echos
This commit is contained in:
@@ -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()"
|
||||
|
||||
Reference in New Issue
Block a user