-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·68 lines (59 loc) · 1.89 KB
/
Copy pathdeploy.sh
File metadata and controls
executable file
·68 lines (59 loc) · 1.89 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
#!/bin/bash
# Apollo.io MCP Server Deployment Script
# This script helps set up and run the Apollo.io MCP server
set -e
echo "🚀 Apollo.io MCP Server Deployment"
echo "=================================="
# Check if UV is installed
if ! command -v uv &> /dev/null; then
echo "📦 Installing UV package manager..."
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.cargo/bin:$PATH"
fi
echo "✅ UV is available"
# Sync dependencies
echo "📚 Installing dependencies..."
uv sync
# Check if .env file exists
if [ ! -f ".env" ]; then
echo "⚠️ Creating .env file..."
echo "APOLLO_API_KEY=your_apollo_api_key_here" > .env
echo "📝 Please edit .env file and add your real Apollo.io API key"
fi
# Run verification
echo "🔍 Running setup verification..."
if uv run python verify_setup.py; then
echo ""
echo "🎉 Setup completed successfully!"
echo ""
echo "Next steps:"
echo "1. Edit .env file and set your Apollo.io API key:"
echo " APOLLO_API_KEY=your_actual_api_key_here"
echo ""
echo "2. Run the server:"
echo " ./deploy.sh run"
echo ""
echo "3. Or run in development mode:"
echo " uv run python src/apollo_mcp_server.py"
echo ""
echo "4. Configure your MCP client (e.g., Claude Desktop):"
echo " Use the configuration in claude_desktop_config.json"
else
echo "❌ Setup verification failed. Please check the errors above."
exit 1
fi
# Handle command line arguments
if [ "$1" = "run" ]; then
echo "🏃 Starting Apollo.io MCP Server..."
uv run python src/apollo_mcp_server.py
elif [ "$1" = "test" ]; then
echo "🧪 Running tests..."
uv run python verify_setup.py
elif [ "$1" = "format" ]; then
echo "🎨 Formatting code..."
uv run black src/ tests/
uv run isort src/ tests/
elif [ "$1" = "check" ]; then
echo "🔍 Running type checks..."
uv run mypy src/
fi