-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup_mcp.sh
More file actions
executable file
·51 lines (43 loc) · 1.36 KB
/
Copy pathsetup_mcp.sh
File metadata and controls
executable file
·51 lines (43 loc) · 1.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
#!/bin/bash
# Setup script for MCP integration
set -e # Exit on error
echo "🚀 Setting up MCP Integration for Xantus..."
echo
# Check if git submodule is initialized
if [ ! -f "mcp-servers/mcp-starter-template-ts/package.json" ]; then
echo "📦 Initializing MCP server submodule..."
git submodule update --init --recursive
else
echo "✅ MCP server submodule already initialized"
fi
# Navigate to MCP server directory
cd mcp-servers/mcp-starter-template-ts
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "📥 Installing MCP server dependencies..."
npm install
else
echo "✅ Dependencies already installed"
fi
# Build the MCP server
echo "🔨 Building MCP server..."
npm run build
# Return to xantus directory
cd ../..
echo
echo "✨ MCP setup complete!"
echo
echo "The MCP server provides the following tools:"
echo " • Calculator - Perform mathematical calculations"
echo " • File System - Read/write files"
echo " • Text Processing - Word counting, sentiment analysis"
echo " • Weather - Get weather information"
echo
echo "To enable MCP, set 'mcp.enabled: true' in config.yaml"
echo "(It's already enabled by default!)"
echo
echo "Next steps:"
echo " 1. ./start_api.sh # Start the Xantus server"
echo " 2. Check logs for: 'Loaded 4 tools from mcp-starter-template'"
echo " 3. Ask Claude to use the tools!"
echo