#!/bin/bash
# OmniMCP installation script
# Create virtual environment
echo "Creating virtual environment..."
uv venv
# Activate virtual environment
echo "Activating virtual environment..."
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
source .venv/Scripts/activate
else
source .venv/bin/activate
fi
# Install OmniMCP
echo "Installing OmniMCP with minimal dependencies..."
uv pip install -e ".[test]" # Install with test dependencies
echo ""
echo "OmniMCP installed successfully!"
echo ""
echo "To activate the environment in the future:"
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
echo " source .venv/Scripts/activate"
else
echo " source .venv/bin/activate"
fi
echo ""
echo "To run OmniMCP:"
echo " python -m run_omnimcp cli # For CLI mode"
echo " python -m run_omnimcp server # For MCP server mode"
echo " python -m run_omnimcp debug # For debug mode"
echo ""
echo "To run tests:"
echo " pytest tests/ # Run all tests"
echo " pytest tests/ -v # Run tests with verbose output"
echo " python tests/test_synthetic_ui.py # Generate test UI images"
echo ""