mirror of
https://github.com/hanzoai/mcp-server-cloudflare.git
synced 2026-10-30 18:28:06 +00:00
14 lines
297 B
Bash
Executable File
14 lines
297 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
script_path="$(realpath "$(dirname "$0")/../src/bin/runx.ts")"
|
|
|
|
bin_dir="$(realpath "$(dirname "$0")")"
|
|
tsx_path="$(realpath "$bin_dir/../node_modules/.bin/tsx")"
|
|
|
|
if command -v bun >/dev/null 2>&1; then
|
|
bun "$script_path" "$@"
|
|
else
|
|
"$tsx_path" "$script_path" "$@"
|
|
fi
|