docs: clarify OAuth as optional, document CONTAINER env var

- docker-compose: OAuth vars commented out by default
- env.example: added WordPress Advanced section with CONTAINER docs
- DOCKER_README: added CONTAINER to env var table with usage notes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
airano
2026-02-19 02:46:53 +03:30
parent cb2a835d0e
commit b6551abe0a
3 changed files with 31 additions and 16 deletions

View File

@@ -143,8 +143,13 @@ docker compose up -d
| `WORDPRESS_SITE1_USERNAME` | For WP | WordPress admin username | | `WORDPRESS_SITE1_USERNAME` | For WP | WordPress admin username |
| `WORDPRESS_SITE1_APP_PASSWORD` | For WP | WordPress Application Password | | `WORDPRESS_SITE1_APP_PASSWORD` | For WP | WordPress Application Password |
| `WORDPRESS_SITE1_ALIAS` | Recommended | Friendly name (e.g., `myblog`) | | `WORDPRESS_SITE1_ALIAS` | Recommended | Friendly name (e.g., `myblog`) |
| `OAUTH_JWT_SECRET_KEY` | For OAuth | JWT secret for ChatGPT/Claude auto-registration | | `WORDPRESS_SITE1_CONTAINER` | For WP-CLI | Docker container name of your WordPress site (enables cache/db/system tools) |
| `OAUTH_BASE_URL` | For OAuth | Public URL of your server | | `OAUTH_JWT_SECRET_KEY` | For OAuth | JWT secret for ChatGPT auto-registration (not needed for Claude/Cursor) |
| `OAUTH_BASE_URL` | For OAuth | Public URL of your server (not needed for Claude/Cursor) |
> **CONTAINER**: Required for WP-CLI tools (cache flush, database export, system info) and **all** WordPress Advanced tools. Find your container name: `docker ps --filter name=wordpress`. Also requires Docker socket mount.
> **OAuth**: Only needed for ChatGPT Remote MCP auto-registration. For Claude Desktop, Claude Code, Cursor, and VS Code — just use `MASTER_API_KEY` with Bearer token auth.
Add more sites with `SITE2`, `SITE3`, etc. See [full configuration guide](https://github.com/airano-ir/mcphub/blob/main/docs/getting-started.md). Add more sites with `SITE2`, `SITE3`, etc. See [full configuration guide](https://github.com/airano-ir/mcphub/blob/main/docs/getting-started.md).

View File

@@ -36,22 +36,17 @@ services:
- LOG_LEVEL=${LOG_LEVEL:-INFO} - LOG_LEVEL=${LOG_LEVEL:-INFO}
- PYTHONUNBUFFERED=1 - PYTHONUNBUFFERED=1
# === OAuth 2.1 Configuration === # === OAuth 2.1 (OPTIONAL) ===
# Required for OAuth authentication # Only needed for ChatGPT auto-registration or third-party OAuth clients.
- OAUTH_JWT_SECRET_KEY=${OAUTH_JWT_SECRET_KEY} # For Claude Desktop/Code/Cursor with Bearer token auth, skip these entirely.
- OAUTH_JWT_ALGORITHM=${OAUTH_JWT_ALGORITHM:-HS256} # - OAUTH_JWT_SECRET_KEY=${OAUTH_JWT_SECRET_KEY}
- OAUTH_ACCESS_TOKEN_TTL=${OAUTH_ACCESS_TOKEN_TTL:-3600} # - OAUTH_BASE_URL=${OAUTH_BASE_URL}
- OAUTH_REFRESH_TOKEN_TTL=${OAUTH_REFRESH_TOKEN_TTL:-604800} # - OAUTH_JWT_ALGORITHM=${OAUTH_JWT_ALGORITHM:-HS256}
# - OAUTH_ACCESS_TOKEN_TTL=${OAUTH_ACCESS_TOKEN_TTL:-3600}
# - OAUTH_REFRESH_TOKEN_TTL=${OAUTH_REFRESH_TOKEN_TTL:-604800}
- OAUTH_STORAGE_TYPE=${OAUTH_STORAGE_TYPE:-json} - OAUTH_STORAGE_TYPE=${OAUTH_STORAGE_TYPE:-json}
- OAUTH_STORAGE_PATH=${OAUTH_STORAGE_PATH:-/app/data} - OAUTH_STORAGE_PATH=${OAUTH_STORAGE_PATH:-/app/data}
# OAuth Authorization Security
# IMPORTANT: API Key is always required for authorization (OAuth manual mode)
# Use 'required' (recommended) to enforce API Key authentication
- OAUTH_AUTH_MODE=${OAUTH_AUTH_MODE:-required}
# OAUTH_TRUSTED_DOMAINS is deprecated - API Key always required for security
- OAUTH_BASE_URL=${OAUTH_BASE_URL}
# === WordPress Projects === # === WordPress Projects ===
# Configure WordPress sites in Coolify environment variables # Configure WordPress sites in Coolify environment variables
# Format: WORDPRESS_{SITE_ID}_{CONFIG_KEY} # Format: WORDPRESS_{SITE_ID}_{CONFIG_KEY}

View File

@@ -37,7 +37,8 @@ WORDPRESS_SITE1_APP_PASSWORD=xxxx xxxx xxxx xxxx
WORDPRESS_SITE1_ALIAS=mysite WORDPRESS_SITE1_ALIAS=mysite
# Optional: Docker container name for WP-CLI tools (cache flush, transients, etc.) # Optional: Docker container name for WP-CLI tools (cache flush, transients, etc.)
# Find with: docker ps --filter name=wordpress # Find your container name with: docker ps --filter name=wordpress
# This lets MCP Hub run wp-cli commands inside your WordPress container.
# WORDPRESS_SITE1_CONTAINER=wordpress-container-name # WORDPRESS_SITE1_CONTAINER=wordpress-container-name
# Second site example (uncomment to use): # Second site example (uncomment to use):
@@ -46,6 +47,20 @@ WORDPRESS_SITE1_ALIAS=mysite
# WORDPRESS_SITE2_APP_PASSWORD=yyyy yyyy yyyy yyyy # WORDPRESS_SITE2_APP_PASSWORD=yyyy yyyy yyyy yyyy
# WORDPRESS_SITE2_ALIAS=blog # WORDPRESS_SITE2_ALIAS=blog
# ============================================
# WORDPRESS ADVANCED (database, bulk, system)
# ============================================
# Pattern: WORDPRESS_ADVANCED_{SITE_ID}_{CONFIG_KEY}
# Provides database operations, bulk operations, and system management.
# REQUIRES Docker socket AND container name — all tools use WP-CLI.
#
# Uses the same credentials as WordPress, but the CONTAINER key is REQUIRED.
# WORDPRESS_ADVANCED_SITE1_URL=https://your-site.com
# WORDPRESS_ADVANCED_SITE1_USERNAME=admin
# WORDPRESS_ADVANCED_SITE1_APP_PASSWORD=xxxx xxxx xxxx xxxx
# WORDPRESS_ADVANCED_SITE1_CONTAINER=wordpress-container-name
# WORDPRESS_ADVANCED_SITE1_ALIAS=mysite-advanced
# ============================================ # ============================================
# WOOCOMMERCE STORES # WOOCOMMERCE STORES
# ============================================ # ============================================