From d903aecf0776e4b5d5ca018dba2fff25c0e6e5e2 Mon Sep 17 00:00:00 2001 From: f-trycua Date: Sun, 6 Apr 2025 18:46:17 -0700 Subject: [PATCH] Remove echos --- libs/mcp-server/scripts/run_mcp_server.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libs/mcp-server/scripts/run_mcp_server.sh b/libs/mcp-server/scripts/run_mcp_server.sh index 7caeef6f..3295e43a 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()"