zen-marketing/run-server.sh
Ben 371806488d Initial commit: Zen-Marketing MCP Server v0.1.0
- Core architecture from zen-mcp-server
- OpenRouter and Gemini provider configuration
- Content variant generator tool (first marketing tool)
- Chat tool for marketing strategy
- Version and model listing tools
- Configuration system with .env support
- Logging infrastructure
- Ready for Claude Desktop integration
2025-11-07 11:35:17 -04:00

66 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
# Zen-Marketing MCP Server Setup and Run Script
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
echo "=================================="
echo "Zen-Marketing MCP Server Setup"
echo "=================================="
# Check Python version
echo "Checking Python installation..."
if ! command -v python3 &> /dev/null; then
echo "Error: Python 3 is required but not installed"
exit 1
fi
PYTHON_VERSION=$(python3 --version 2>&1 | awk '{print $2}')
echo "Found Python $PYTHON_VERSION"
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
echo "Creating virtual environment..."
python3 -m venv .venv
else
echo "Virtual environment already exists"
fi
# Activate virtual environment
echo "Activating virtual environment..."
source .venv/bin/activate
# Upgrade pip
echo "Upgrading pip..."
pip install --upgrade pip --quiet
# Install requirements
echo "Installing requirements..."
pip install -r requirements.txt --quiet
# Check for .env file
if [ ! -f ".env" ]; then
echo ""
echo "WARNING: No .env file found!"
echo "Please create a .env file based on .env.example:"
echo " cp .env.example .env"
echo " # Then edit .env with your API keys"
echo ""
read -p "Continue anyway? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
# Run the server
echo ""
echo "=================================="
echo "Starting Zen-Marketing MCP Server"
echo "=================================="
echo ""
python server.py