forked from davehague/mcp-talk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·59 lines (50 loc) · 1.67 KB
/
setup.sh
File metadata and controls
executable file
·59 lines (50 loc) · 1.67 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
#!/bin/bash
# MCP Talk Demo Setup Script
# Creates virtual environment and installs dependencies
set -e # Exit on any error
echo "🚀 Setting up MCP Talk Demo Environment"
echo "======================================"
# Check if Python 3.8+ is available
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 not found. Please install Python 3.8+ first."
exit 1
fi
PYTHON_VERSION=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
echo "✅ Found Python $PYTHON_VERSION"
# Create virtual environment
echo "📦 Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
echo "🔌 Activating virtual environment..."
source venv/bin/activate
# Upgrade pip
echo "⬆️ Upgrading pip..."
pip install --upgrade pip
# Install requirements
echo "📥 Installing Python dependencies..."
pip install -r requirements.txt
echo ""
echo "✅ Setup complete!"
echo ""
echo "To use the demos:"
echo "1. Activate the environment:"
echo " source venv/bin/activate"
echo ""
echo "2. Test the setup:"
echo " python test_setup.py"
echo ""
echo "3. Run any demo:"
echo " python 02_system_monitor_server.py # Complete MCP server"
echo " python 03_sse_server_complete.py # SSE server"
echo " python 04_https_streamable.py # Streamable HTTP"
echo ""
echo "4. For the Python client demo:"
echo " # Terminal 1 - Start filesystem server"
echo " npx -y @modelcontextprotocol/server-filesystem /tmp"
echo " # Terminal 2 - Run client (with venv activated)"
echo " python 01_python_client_demo.py"
echo ""
echo "5. When done, deactivate:"
echo " deactivate"
echo ""
echo "🎯 You're ready for your MCP presentation!"