-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_server.sh
More file actions
executable file
·33 lines (26 loc) · 854 Bytes
/
Copy pathstart_server.sh
File metadata and controls
executable file
·33 lines (26 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Start script for MVG MCP Server
echo "Starting MVG MCP Server..."
echo "=========================="
# Check if virtual environment exists
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate virtual environment
source venv/bin/activate
# Install dependencies if needed
if ! python -c "import httpx, pydantic" 2>/dev/null; then
echo "Installing dependencies..."
pip install httpx pydantic
fi
# Try to install MCP if not available
if ! python -c "import mcp" 2>/dev/null; then
echo "Warning: MCP package not found. Installing from pip..."
pip install mcp || echo "Note: MCP package installation failed. You may need to install it manually."
fi
echo "Starting MCP server..."
echo "Press Ctrl+C to stop the server"
echo ""
# Start the server
python3 mvg_mcp_server.py