#!/bin/bash
# Wrapper for clients that need a single executable to launch the server.
#
# Prefer `uvx pal-mcp-server` (the published package) where the client lets you
# set the command directly; this wrapper exists for clients that do not.

# Get the directory of this script
DIR="$(cd "$(dirname "$0")" && pwd)"

# Run from this checkout, letting uv resolve .python-version and the synced .venv.
exec uv run --project "$DIR" python "$DIR/server.py" "$@"
