#!/bin/bash # ABOUTME: Startup script for Claude Code container with MCP server # ABOUTME: Configures environment and starts Claude Code with Twilio MCP integration # Load environment variables from .env if it exists if [ -f /app/.env ]; then set -a source /app/.env 2>/dev/null || true set +a fi # Configure Claude Code to use the MCP server export CLAUDE_MCP_CONFIG=/app/config/mcp-config.json # Start Claude Code with permissions bypass echo "Starting Claude Code..." if [ -n "$TWILIO_ACCOUNT_SID" ] && [ -n "$TWILIO_API_KEY" ]; then echo "Twilio MCP integration enabled" else echo "No Twilio credentials found, MCP features will be unavailable" fi echo "Note: If prompted for authentication, follow the interactive prompts" exec claude --dangerously-skip-permissions "$@"