#!/bin/bash
# Development Environment Setup Script
# This script sets up the virtual environment and installs all dependencies
# for the Claude Gemini MCP Slim project
set -e # Exit on any error
echo "๐ Setting up development environment for Claude Gemini MCP Slim..."
# Check if Python 3 is available
if ! command -v python3 &> /dev/null; then
echo "โ Python 3 is not installed. Please install Python 3.8+ first."
exit 1
fi
# 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..."
python -m pip install --upgrade pip
# Install production dependencies
echo "๐ Installing production dependencies..."
pip install -r requirements.txt
# Install development dependencies
echo "๐ ๏ธ Installing development dependencies..."
pip install -r requirements-dev.txt
# Initialize Husky hooks
echo "๐ง Initializing Husky hooks..."
npx husky install || echo "โน๏ธ Husky hooks already initialized or npm not available"
# Run a test to make sure everything is working
echo "๐งช Running a quick test..."
python -m pytest tests/unit/test_basic_operations.py -v
echo ""
echo "โ Development environment setup complete!"
echo ""
echo "๐ To activate the virtual environment in the future, run:"
echo " source .venv/bin/activate"
echo ""
echo "๐งช To run all tests:"
echo " python -m pytest"
echo ""
echo "๐ To run code quality checks manually:"
echo " npm run lint"
echo " npm run format"
echo " npm run test"
echo ""
echo "๐ You're ready to start developing!"
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cmdaltctr/claude-gemini-mcp-slim'
If you have feedback or need assistance with the MCP directory API, please join our Discord server