#!/bin/bash
# ACI MCP Server Startup Script
# Check if build directory exists
if [ ! -d "build" ]; then
echo "Build directory not found. Running npm run build..."
npm run build
fi
# Check if Node.js modules are installed
if [ ! -d "node_modules" ]; then
echo "Node modules not found. Running npm install..."
npm install
fi
# Set default environment if not already set
export ACI_TOOL_MODE=${ACI_TOOL_MODE:-"core"}
export ACI_VALIDATE_CERTS=${ACI_VALIDATE_CERTS:-"false"}
export ACI_TIMEOUT=${ACI_TIMEOUT:-"30000"}
# Check for configuration
if [ -z "$ACI_APIC_URL" ] && [ ! -f "aci-config.json" ]; then
echo "Warning: No ACI configuration found!"
echo "Please set ACI_APIC_URL and other environment variables,"
echo "or create aci-config.json from aci-config.json.example"
fi
echo "Starting ACI MCP Server..."
echo "- Tool mode: $ACI_TOOL_MODE"
echo "- APIC URL: $ACI_APIC_URL"
echo "- Username: $ACI_USERNAME"
# Start the server
exec node build/index.js
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