-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
94 lines (79 loc) · 2.36 KB
/
setup.sh
File metadata and controls
94 lines (79 loc) · 2.36 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
# Quick setup script for Unix/Linux/Mac
echo "=========================================="
echo "Unified MCP Client - Quick Setup"
echo "=========================================="
echo ""
# Check prerequisites
echo "Checking prerequisites..."
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.8 or higher."
exit 1
fi
echo "✅ Python 3 found: $(python3 --version)"
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js 16 or higher."
exit 1
fi
echo "✅ Node.js found: $(node --version)"
if ! command -v npm &> /dev/null; then
echo "❌ npm is not installed. Please install npm."
exit 1
fi
echo "✅ npm found: $(npm --version)"
echo ""
echo "Setting up Python environment..."
# Create virtual environment
python3 -m venv .venv
echo "✅ Virtual environment created"
# Activate virtual environment
source .venv/bin/activate
echo "✅ Virtual environment activated"
# Install Python dependencies
pip install -r requirements.txt
echo "✅ Python dependencies installed"
echo ""
echo "Setting up Filesystem MCP Server..."
# Setup filesystem server
cd filesystem-mcp-server
npm install
npm run build
cd ..
echo "✅ Filesystem server ready"
echo ""
echo "Setting up Browser MCP Server..."
# Setup browser server (if requirements.txt exists)
cd mcp-server-browser-use-ollama
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
echo "✅ Browser server dependencies installed"
else
echo "⚠️ No requirements.txt found for browser server"
fi
cd ..
echo ""
echo "Creating Sandbox directory..."
mkdir -p Sandbox
echo "✅ Sandbox directory created"
echo ""
echo "=========================================="
echo "Setup Complete! 🎉"
echo "=========================================="
echo ""
echo "Next steps:"
echo "1. Activate the virtual environment:"
echo " source .venv/bin/activate"
echo ""
echo "2. (Optional) Set up API keys in .env file:"
echo " echo 'GEMINI_API_KEY=your_key' > .env"
echo " echo 'GROQ_API_KEY=your_key' >> .env"
echo ""
echo "3. (Optional) Install Ollama for local LLM:"
echo " Visit https://ollama.ai"
echo " Then run: ollama pull qwen2.5-coder:14b"
echo ""
echo "4. Test the client:"
echo " python client/main.py 'Create a file test.txt'"
echo ""
echo "For more information, see README.md"
echo ""