Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .claude/mcp-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_TOKEN_HERE"
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
},
"description": "GitHub MCP Server - Enables repository management, branch creation, commits, and PR operations"
},
Expand All @@ -28,24 +28,24 @@
"command": "npx",
"args": ["-y", "@neondatabase/mcp-server-neon"],
"env": {
"NEON_API_KEY": "YOUR_NEON_API_KEY_HERE"
"NEON_API_KEY": "${NEON_API_KEY}"
},
"description": "Neon MCP Server - Manage Neon PostgreSQL projects, branches, databases, and run SQL queries"
},
"supabase": {
"command": "npx",
"args": ["-y", "@supabase/mcp-server"],
"env": {
"SUPABASE_ACCESS_TOKEN": "YOUR_SUPABASE_ACCESS_TOKEN_HERE"
"SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
},
"description": "Supabase MCP Server - Manage Supabase projects, databases, tables, and run SQL queries"
},
"cloudflare": {
"command": "npx",
"args": ["-y", "@cloudflare/mcp-server-cloudflare"],
"env": {
"CLOUDFLARE_API_TOKEN": "YOUR_CLOUDFLARE_API_TOKEN_HERE",
"CLOUDFLARE_ACCOUNT_ID": "YOUR_CLOUDFLARE_ACCOUNT_ID_HERE"
"CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_API_TOKEN}",
"CLOUDFLARE_ACCOUNT_ID": "${CLOUDFLARE_ACCOUNT_ID}"
},
"description": "Cloudflare MCP Server - Manage Workers, Pages, D1, R2, KV, Hyperdrive, and other Cloudflare services"
}
Expand Down
91 changes: 74 additions & 17 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,26 @@ MCP_SERVER_PORT=3001
MCP_SERVER_URL=http://mcp-server:3001

# ============================================
# Database Configuration
# Database Configuration (Neon)
# ============================================

# PostgreSQL connection string
# Docker Compose: postgresql://USER:PASS@postgres:5432/healthcare_ai_db
# Cloudflare: Use Hyperdrive connection string (hyperdrive://HYPERDRIVE_ID)
# Neon: postgresql://USER:PASS@ep-xxx.neon.tech/dbname?sslmode=require
DATABASE_URL=postgresql://healthcare_user:healthcare_pass@postgres:5432/healthcare_ai_db
# Cloudflare: Use Hyperdrive connection string (hyperdrive://HYPERDRIVE_ID)
DATABASE_URL=postgresql://neondb_owner:YOUR_PASSWORD@ep-xxx.neon.tech/neondb?sslmode=require

# Neon API Key (for MCP server)
NEON_API_KEY=napi_your_neon_api_key_here

# Individual database connection parameters (alternative to DATABASE_URL)
DB_HOST=postgres
DB_HOST=ep-xxx.neon.tech
DB_PORT=5432
DB_NAME=healthcare_ai_db
DB_USER=healthcare_user
DB_PASSWORD=healthcare_pass
DB_NAME=neondb
DB_USER=neondb_owner
DB_PASSWORD=your_password_here

# ============================================
# AI Service Configuration
# AI Service Configuration (Anthropic)
# ============================================

# Anthropic API Key (Claude AI)
Expand All @@ -55,6 +57,49 @@ ANTHROPIC_API_KEY=sk-ant-api03-your-key-here
# AI request timeout in milliseconds (optional, default: 30000)
# AI_TIMEOUT=30000

# ============================================
# Email Service (Resend)
# ============================================

# Resend API Key for transactional emails
# Get your key from: https://resend.com
RESEND_API_KEY=re_your_resend_api_key_here

# ============================================
# Payment Processing (Stripe)
# ============================================

# Stripe Test Keys (for development)
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
STRIPE_SECRET_KEY=sk_test_your_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret

# Stripe Live Keys (for production)
STRIPE_LIVE_PUBLISHABLE_KEY=pk_live_your_live_publishable_key
STRIPE_LIVE_SECRET_KEY=sk_live_your_live_secret_key

# ============================================
# Cache (Redis/Upstash)
# ============================================

# Upstash Redis REST API
UPSTASH_REDIS_REST_URL=https://your-redis.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_upstash_token_here

# Redis connection string (alternative)
REDIS_URL=rediss://default:your_token@your-redis.upstash.io:6379

# ============================================
# Authentication & OAuth
# ============================================

# GitHub Personal Access Token
GITHUB_TOKEN=ghp_your_github_token_here

# LinkedIn OAuth
LINKEDIN_CLIENT_ID=your_linkedin_client_id
LINKEDIN_CLIENT_SECRET=your_linkedin_client_secret

# ============================================
# CORS Configuration
# ============================================
Expand All @@ -80,13 +125,23 @@ VITE_API_URL=http://localhost:3000
# ============================================

# Cloudflare Account ID (for deployment)
# CLOUDFLARE_ACCOUNT_ID=your-account-id
CLOUDFLARE_ACCOUNT_ID=your-account-id

# Cloudflare API Token (for Wrangler CLI)
# CLOUDFLARE_API_TOKEN=your-api-token
CLOUDFLARE_API_TOKEN=your-api-token

# Hyperdrive ID (for database connection pooling)
# HYPERDRIVE_ID=your-hyperdrive-id
HYPERDRIVE_ID=your-hyperdrive-id

# ============================================
# External Services
# ============================================

# Vercel Token (if using Vercel)
VERCEL_TOKEN=your_vercel_token_here

# Render API Key (legacy, if needed)
# RENDER_API_KEY=your_render_api_key_here

# ============================================
# Optional: Advanced Configuration
Expand Down Expand Up @@ -122,7 +177,7 @@ VITE_API_URL=http://localhost:3000
# 1. Copy this file to .env in project root:
# cp .env.example .env
#
# 2. Update ANTHROPIC_API_KEY with your actual API key
# 2. Update the credentials with your actual values
#
# 3. Start services:
# docker-compose up -d
Expand All @@ -131,14 +186,15 @@ VITE_API_URL=http://localhost:3000
# docker-compose exec backend env | grep ANTHROPIC_API_KEY

# CLOUDFLARE DEPLOYMENT:
# 1. Create accounts on Cloudflare and Neon (or Supabase)
# 1. Create accounts on Cloudflare and Neon
#
# 2. Set up Hyperdrive:
# wrangler hyperdrive create renalguard-db --connection-string="YOUR_NEON_URL"
#
# 3. Configure secrets in Cloudflare dashboard:
# - ANTHROPIC_API_KEY
# - DATABASE_URL (Hyperdrive connection string)
# 3. Configure secrets in Cloudflare dashboard or via CLI:
# wrangler pages secret put ANTHROPIC_API_KEY
# wrangler pages secret put DATABASE_URL
# (etc.)
#
# 4. Deploy frontend to Cloudflare Pages:
# cd frontend && wrangler pages deploy dist
Expand All @@ -156,3 +212,4 @@ VITE_API_URL=http://localhost:3000
# - Keep database passwords strong and unique
# - Review .gitignore to ensure .env is excluded
# - In Cloudflare, use encrypted secrets for sensitive values
# - Use test keys for development, live keys for production
Loading
Loading