#!/bin/bash
# Runs AE-mcp-claude commands with the right Node.js, e.g.:  ./aemcp configure --list   ./aemcp doctor
HERE="$(cd "$(dirname "$0")" && pwd)"
NODE=node
if [ -x "$HERE/runtime/node/bin/node" ]; then NODE="$HERE/runtime/node/bin/node"; fi
exec "$NODE" "$HERE/server/index.js" "$@"
