.env.example•2.21 kB
# Gravity MCP Configuration
# Required: Gravity Forms REST API v2 Credentials
# Generate these in your WordPress admin: Forms > Settings > REST API
GRAVITY_FORMS_CONSUMER_KEY=ck_your_consumer_key_here
GRAVITY_FORMS_CONSUMER_SECRET=cs_your_consumer_secret_here
# Required: Your WordPress site URL (no trailing slash)
GRAVITY_FORMS_BASE_URL=https://yoursite.com
# Example for local development:
# GRAVITY_FORMS_CONSUMER_KEY=ck_3f4d5e6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e
# GRAVITY_FORMS_CONSUMER_SECRET=cs_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b
# GRAVITY_FORMS_BASE_URL=https://local.gravityforms.test
# Example for live site:
# GRAVITY_FORMS_CONSUMER_KEY=ck_production_key_from_wordpress_admin
# GRAVITY_FORMS_CONSUMER_SECRET=cs_production_secret_from_wordpress_admin
# GRAVITY_FORMS_BASE_URL=https://www.yourwebsite.com
# Authentication Settings
# Authentication method: 'basic' (recommended) or 'oauth'
GRAVITY_FORMS_AUTH_METHOD=basic
# Security Settings
# Set to 'true' to enable DELETE operations (forms and entries)
# WARNING: This allows permanent deletion of data
GRAVITY_FORMS_ALLOW_DELETE=false
# Optional: Connection Settings
GRAVITY_FORMS_TIMEOUT=30000
GRAVITY_FORMS_MAX_RETRIES=3
GRAVITY_FORMS_RETRY_DELAY=1000
# SSL Certificate Validation (for local development only)
# Set to 'true' to allow self-signed SSL certificates (Laravel Valet, MAMP, Local WP, etc.)
# ⚠️ SECURITY WARNING: Only enable for local development, never in production!
# MCP_ALLOW_SELF_SIGNED_CERTS=true
# Optional: Debug Settings
# ⚠️ SECURITY WARNING: Debug logs may contain sensitive data (API keys, user info)
# Only enable in secure development environments. Never share debug logs publicly.
# Logs are automatically sanitized but review before sharing with support.
GRAVITY_FORMS_DEBUG=false
# Optional: Rate Limiting
GRAVITY_FORMS_RATE_LIMIT=100
GRAVITY_FORMS_RATE_WINDOW=60000
# Test Settings (for integration tests)
# Use a separate test site to avoid affecting production data
GRAVITY_FORMS_TEST_BASE_URL=https://test.yoursite.com
GRAVITY_FORMS_TEST_CONSUMER_KEY=ck_test_key_here
GRAVITY_FORMS_TEST_CONSUMER_SECRET=cs_test_secret_here
# Enable test mode (MCP-specific setting)
# GRAVITYMCP_TEST_MODE=true