-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-servers.sh
More file actions
54 lines (45 loc) · 1.21 KB
/
Copy pathbuild-servers.sh
File metadata and controls
54 lines (45 loc) · 1.21 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
#!/bin/bash
# Build script for all MCP servers
# Agentic Creator OS
set -e
PROJECT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$PROJECT_DIR"
echo "========================================"
echo "Building MCP Servers"
echo "========================================"
echo ""
# Check if npm is available
if ! command -v npm &> /dev/null; then
echo "Error: npm is not installed"
exit 1
fi
# Install dependencies if needed
if [ ! -d "node_modules" ]; then
echo "Installing dependencies..."
npm install
fi
# Install workspace dependencies
echo "Installing MCP server dependencies..."
npm run install:all
# Build all servers
echo ""
echo "Building MCP servers..."
npm run build:all
echo ""
echo "========================================"
echo "Build Complete!"
echo "========================================"
echo ""
echo "Built servers:"
for server in mcp-servers/*/; do
if [ -d "$server" ] && [ -f "${server}package.json" ]; then
server_name=$(basename "$server")
if [ -d "${server}build" ]; then
echo " ✓ $server_name"
else
echo " ✗ $server_name (build failed)"
fi
fi
done
echo ""
echo "MCP servers ready in: mcp-servers/*/build/"