#!/bin/bash
# Simple Test Verification Script
echo "๐งช ACI MCP Server - Quick Verification"
echo "======================================"
# Check if files exist
echo "๐ Checking project structure..."
if [ ! -f "build/src/index.js" ]; then
echo "โ Main server file not found"
exit 1
fi
if [ ! -f "build/src/services/aciApi.js" ]; then
echo "โ ACI API service not found"
exit 1
fi
if [ ! -f "build/test/mock-server.js" ]; then
echo "โ Mock server not found"
exit 1
fi
echo "โ All main files present"
# Test mock server startup
echo ""
echo "๐ Testing mock server startup..."
# Start mock server in background
node build/test/mock-server.js &
MOCK_PID=$!
# Give it time to start
sleep 3
# Test if server is responding
if curl -s http://localhost:8443/api/node/class/fvTenant.json > /dev/null 2>&1; then
echo "โ Mock server is responding"
else
echo "โ Mock server not responding"
kill $MOCK_PID 2>/dev/null || true
exit 1
fi
# Test authentication
echo ""
echo "๐ Testing authentication..."
AUTH_RESPONSE=$(curl -s -X POST http://localhost:8443/api/aaaLogin.json \
-H "Content-Type: application/json" \
-d '{"aaaUser":{"attributes":{"name":"admin","pwd":"admin"}}}')
if echo "$AUTH_RESPONSE" | grep -q "token"; then
echo "โ Authentication working"
else
echo "โ Authentication failed"
echo "Response: $AUTH_RESPONSE"
kill $MOCK_PID 2>/dev/null || true
exit 1
fi
# Clean up
kill $MOCK_PID 2>/dev/null || true
wait $MOCK_PID 2>/dev/null || true
echo ""
echo "๐ All basic tests passed!"
echo ""
echo "๐ Available Testing Options:"
echo " 1. Unit Tests: npm test (when Jest is configured)"
echo " 2. Integration Test: node build/test/integration.test.js --mock"
echo " 3. Manual Testing: node build/test/manual-test.js --mock"
echo " 4. Mock Server Only: node build/test/mock-server.js"
echo " 5. Real APIC Test: Set ACI_* env vars and run without --mock"
echo ""
echo "โจ ACI MCP Server is ready for use!"
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jim-coyne/ACI_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server