giteamcp/start.bat
2025-07-15 14:32:59 +05:30

65 lines
1.5 KiB
Batchfile

@echo off
echo 🤖 MCP Server - AI-Powered Code Editor
echo ================================================
echo.
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.8+ from https://python.org
pause
exit /b 1
)
REM Check if pip is available
python -m pip --version >nul 2>&1
if errorlevel 1 (
echo ❌ Error: pip is not available
echo Please ensure pip is installed with Python
pause
exit /b 1
)
echo ✅ Python is installed
echo.
REM Install dependencies
echo 📦 Installing Python dependencies...
python -m pip install -r requirements.txt
if errorlevel 1 (
echo ❌ Error installing dependencies
pause
exit /b 1
)
echo ✅ Dependencies installed successfully
echo.
REM Check for .env file
if not exist .env (
if exist env.example (
copy env.example .env >nul
echo ✅ Created .env file from template
echo ⚠️ Please edit .env file and add your API keys
) else (
echo ⚠️ No .env file found and no template available
)
) else (
echo ✅ .env file already exists
)
echo.
echo 🚀 Starting MCP Server...
echo 📱 Web interface will be available at: http://localhost:8000
echo 🔧 API documentation at: http://localhost:8000/docs
echo.
echo Press Ctrl+C to stop the server
echo.
REM Start the server
python main.py
echo.
echo 👋 Server stopped
pause