-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·91 lines (76 loc) · 2.63 KB
/
setup.sh
File metadata and controls
executable file
·91 lines (76 loc) · 2.63 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
#!/bin/bash
# MCP Server Examples Setup Script
# Quick setup for all MCP servers in this repository
set -e
echo "🚀 MCP Server Examples Setup"
echo "============================"
echo ""
# Function to check if command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Check prerequisites
echo "📋 Checking prerequisites..."
if ! command_exists python3; then
echo "❌ Python 3 is required but not installed"
exit 1
fi
if ! command_exists node; then
echo "❌ Node.js is required but not installed"
exit 1
fi
if ! command_exists npm; then
echo "❌ npm is required but not installed"
exit 1
fi
echo "✅ Prerequisites check passed"
echo ""
# Install Python dependencies
echo "🐍 Installing Python dependencies..."
cd examples/obsidian_python && pip install -r requirements.txt && cd ../..
cd examples/aws_agent_core_browser_python && pip install -r requirements.txt && cd ../..
echo "✅ Python dependencies installed"
echo ""
# Install TypeScript dependencies
echo "📦 Installing TypeScript dependencies..."
cd examples/obsidian_typescript && npm install && cd ../..
cd examples/aws_agent_core_browser_typescript && npm install && npx playwright install chromium && cd ../..
echo "✅ TypeScript dependencies installed"
echo ""
# Build TypeScript projects
echo "🔨 Building TypeScript projects..."
cd examples/obsidian_typescript && npm run build && cd ../..
cd examples/aws_agent_core_browser_typescript && npm run build && cd ../..
echo "✅ TypeScript projects built"
echo ""
# Create environment template
echo "📄 Creating environment template..."
if [ ! -f .env ]; then
cp .env.example .env
echo "✅ Created .env file from template"
echo " Please edit .env with your actual configuration values"
else
echo "ℹ️ .env file already exists"
fi
echo ""
# Generate configuration files
echo "⚙️ Generating configuration files..."
make generate-claude-config > /dev/null 2>&1
make generate-continue-config > /dev/null 2>&1
echo "✅ Generated claude_desktop_config.json and continue_config.json"
echo ""
echo "🎉 Setup Complete!"
echo ""
echo "Next Steps:"
echo "1. Edit .env with your Obsidian/AWS configuration"
echo "2. Test servers: make test-obsidian-py"
echo "3. Configure your MCP client with generated config files"
echo "4. Start using the servers!"
echo ""
echo "Available commands:"
echo " make help - Show all available commands"
echo " make show-paths - Show absolute server paths"
echo " make show-claude-config - Show Claude Desktop configuration"
echo " make test-obsidian-py - Test Obsidian Python server"
echo ""
echo "Enjoy your MCP servers! 🚀"