Fix Twilio MCP integration with baked-in credentials

- Add proper type and env sections to mcp-config.json
- Remove dynamic MCP add command, use pre-configured MCP
- Bake .env credentials into Docker image at build time
- Remove runtime .env volume mount - true one-time setup
- Auto-rebuild image when .env file changes
- Export Twilio env vars for MCP server subprocess
- Remove conflicting .mcp.json file
This commit is contained in:
Vishal Jain
2025-06-13 09:53:43 +01:00
parent 8f637508f4
commit 6cb57c9dc6
9 changed files with 262 additions and 35 deletions

View File

@@ -1,12 +1,12 @@
# ABOUTME: Environment variables for Claude Docker
# ABOUTME: Copy this to ~/.claude-docker/.env and fill in your values
# Copy this file to .env and fill in your credentials
# The .env file will be baked into the Docker image during build
# Optional: Anthropic API key (only needed if not using subscription auth)
# ANTHROPIC_API_KEY=sk-ant-your_anthropic_api_key_here
# Required for Claude Code
ANTHROPIC_API_KEY=your_anthropic_api_key_here
# Optional: Twilio credentials for SMS notifications via MCP
# TWILIO_ACCOUNT_SID=your_twilio_sid_here
# TWILIO_API_KEY=your_twilio_api_key_here
# TWILIO_API_SECRET=your_twilio_api_secret_here
# TWILIO_FROM_NUMBER=+1234567890 # Your Twilio phone number
# TWILIO_TO_NUMBER=+1234567890 # Your personal phone to receive SMS
# Optional: Twilio credentials for SMS notifications
TWILIO_ACCOUNT_SID=your_twilio_account_sid
TWILIO_API_KEY=your_twilio_api_key
TWILIO_API_SECRET=your_twilio_api_secret
TWILIO_FROM_NUMBER=+1234567890
TWILIO_TO_NUMBER=+0987654321