Files
my-pal-mcp-server/setup.bat
Fahad 961925846c feat: add setup scripts and improve dependency installation
- Add setup.sh for macOS/Linux with dependency installation
- Add setup.bat for Windows with dependency installation
- Update README with clearer setup instructions in Quickstart
- Add troubleshooting for "ModuleNotFoundError: No module named 'mcp'"
- Provide manual installation steps as fallback

This helps users avoid the common "ModuleNotFoundError" by ensuring
dependencies are properly installed before first use.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-09 20:44:25 +04:00

66 lines
1.8 KiB
Batchfile

@echo off
REM Gemini MCP Server Setup Script for Windows
REM This script helps users set up the virtual environment and install dependencies
echo Gemini MCP Server Setup
echo =======================
REM Get the directory where this script is located
set SCRIPT_DIR=%~dp0
cd /d "%SCRIPT_DIR%"
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is not installed or not in PATH.
echo Please install Python 3.10 or higher from https://python.org
echo Make sure to check "Add Python to PATH" during installation.
exit /b 1
)
REM Display Python version
echo Found Python:
python --version
REM Check if venv exists
if exist "venv\" (
echo Virtual environment already exists
) else (
echo Creating virtual environment...
python -m venv venv
if errorlevel 1 (
echo Error: Failed to create virtual environment
exit /b 1
)
echo Virtual environment created
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
REM Install requirements
echo Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo.
echo Error: Failed to install dependencies
echo Please check the error messages above and try again.
exit /b 1
) else (
echo.
echo Setup completed successfully!
echo.
echo Next steps:
echo 1. Get your Gemini API key from: https://makersuite.google.com/app/apikey
echo 2. Configure Claude Desktop with your API key (see README.md)
echo 3. Restart Claude Desktop
echo.
echo Note: The virtual environment has been activated for this session.
echo The run_gemini.bat script will automatically activate it when needed.
)