Skip to main content
Glama
verify.shโ€ข2.03 kB
#!/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