#!/bin/bash
# Wrapper script for running MCP proxy with smart mode (lazy loading) enabled

# Set environment variables
export PLUGGEDIN_API_KEY="${1:-pg_in_aHHmjDVB4r3Ff7a7XbCdH1ocetd6qfAeMdyGzVSjSsT6Vyoakpi7lVbe9v3uFURn}"
export PLUGGEDIN_API_BASE_URL="${2:-http://localhost:12005}"
export ENABLE_LAZY_TOOL_LOADING=true

# Run the MCP proxy
exec node "$(dirname "$0")/index.js"