#!/bin/bash
# Development script - runs Claude with this plugin loaded locally
#
# Usage: ./scripts/dev.sh [claude args...]
#
# This sets CLAUDE_PLUGIN_ROOT so the MCP server can find its files
# when running with --plugin-dir (which doesn't set this var automatically).

set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PLUGIN_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"

export CLAUDE_PLUGIN_ROOT="$PLUGIN_ROOT"

exec claude --plugin-dir "$PLUGIN_ROOT" "$@"
