-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-start.sh
More file actions
119 lines (106 loc) · 4.21 KB
/
quick-start.sh
File metadata and controls
119 lines (106 loc) · 4.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
# Quick Start - Complete setup in one command!
################################################################################
# RobotFramework MCP Server + Books Database - Complete Quick Start
#
# This script sets up everything you need:
# 1. Generates MCP configuration for your IDE
# 2. Starts services via docker compose:
# - Books database initialization
# - Books store application (API)
# - RobotFramework MCP server
################################################################################
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "$0")" && pwd)"
MCP_DIR="${PROJECT_ROOT}/RobotFramework-MCP-server"
echo "╔════════════════════════════════════════════════════════════════════════╗"
echo "║ RobotFramework MCP Server + Books Database - Complete Quick Start ║"
echo "╚════════════════════════════════════════════════════════════════════════╝"
echo ""
# Detect if running interactively
if [ -t 0 ]; then
echo "Select your AI assistant:"
echo ""
echo " 1) GitHub Copilot"
echo " 2) Claude Code"
echo " 3) GitLab Duo"
echo " 4) Amazon Q"
echo ""
read -p "Enter your choice (1-4): " choice
case "$choice" in
1) tool="copilot" ;;
2) tool="claude-code" ;;
3) tool="gitlab" ;;
4) tool="amazonq" ;;
*)
echo "Invalid choice."
exit 1
;;
esac
else
echo "Usage: ./quick-start.sh"
echo ""
echo "Run interactively to select your IDE."
exit 0
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Step 1: Generate MCP Configuration
echo "📋 Step 1: Generating MCP configuration for $tool..."
cd "$MCP_DIR"
if bash create-mcp-config.sh "$tool"; then
echo "✅ MCP configuration generated"
else
echo "❌ Failed to generate MCP configuration"
exit 1
fi
echo ""
# Step 2: Start services
echo "📚 Step 2: Starting services..."
cd "$PROJECT_ROOT"
if docker compose up -d; then
echo "✅ Services started"
else
echo "❌ Failed to start services"
exit 1
fi
echo ""
echo "📚 Step 3: Generating RF library documentation..."
echo " This creates documentation for Browser, Requests, and Robocop libraries"
sleep 3 # Give container time to fully start
if docker exec robotframework-mcp /app/generate_library_docs.sh; then
echo "✅ Library documentation generated successfully"
else
echo "⚠️ Library documentation generation had issues (non-critical)"
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "✅ Everything is running!"
echo ""
echo "📍 Services:"
echo " • Books Database API: http://localhost:8000"
echo " • Database Initialization: One-time setup container"
echo " • MCP Server: robotframework-mcp container"
echo ""
echo "📚 Library Documentation:"
echo " Generated in container at: /app/docs/"
echo " • Browser.html, Browser.json, Browser.xml"
echo " • RequestsLibrary.html, RequestsLibrary.json, RequestsLibrary.xml"
echo " • Robocop_help.txt, Robocop_rules.txt"
echo ""
echo " View docs: docker exec robotframework-mcp ls -lh /app/docs"
echo " Regenerate: docker exec robotframework-mcp /app/generate_library_docs.sh"
echo ""
echo "🔧 Next steps:"
echo " 1. Add your Robot Framework tests to robot_tests/ directory"
echo " 2. Use MCP tools to run tests"
echo ""
echo "📚 Documentation:"
echo " • README.md - Project overview"
echo " • docs/ - Detailed documentation"
echo ""
echo "🛑 To stop services and remove containers, networks, and volumes:"
echo " docker-compose down # Stop container"
echo ""