File size: 1,480 Bytes
9434d3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

# EU AI Act MCP Server - Local Testing Script
# This script builds and tests the MCP server

set -e

echo "🚀 EU AI Act MCP Server - Local Testing"
echo "========================================"
echo ""

# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Check if we're in the right directory
if [ ! -f "package.json" ]; then
    echo "❌ Error: Please run this script from the project root directory"
    exit 1
fi

# Step 1: Install dependencies
echo -e "${BLUE}Step 1: Installing dependencies...${NC}"
pnpm install --filter @eu-ai-act/mcp-server --filter @eu-ai-act/test-agent
echo -e "${GREEN}✅ Dependencies installed${NC}"
echo ""

# Step 2: Build MCP server
echo -e "${BLUE}Step 2: Building MCP server...${NC}"
pnpm --filter @eu-ai-act/mcp-server build
echo -e "${GREEN}✅ MCP server built successfully${NC}"
echo ""

# Step 3: Run tests
echo -e "${BLUE}Step 3: Running test agent...${NC}"
echo ""
pnpm --filter @eu-ai-act/test-agent dev
echo ""

# Success message
echo ""
echo -e "${GREEN}========================================"
echo "✅ All tests completed successfully!"
echo "========================================${NC}"
echo ""
echo -e "${YELLOW}Next Steps:${NC}"
echo "1. Configure Claude Desktop (see QUICKSTART.md)"
echo "2. Read packages/eu-ai-act-mcp/README.md for API docs"
echo "3. See IMPLEMENTATION.md for architecture details"
echo ""
echo "Your MCP server is ready to use! 🎉"