feat(v3.13.0): settings live DB reads, remove Directus/Appwrite, admin stats

Settings fixes:
- MAX_SITES_PER_USER, USER_RATE_LIMIT_PER_MIN/HR now read from DB settings
  table (DB > ENV > default), so dashboard/settings changes apply without
  restart. Sync cache refreshed on every save or delete.
- /api/me reports the live DB value for max_sites_per_user.

Admin improvements:
- Admin users bypass per-user rate limiting entirely (role=admin or ADMIN_EMAILS).
- Admin Overview now shows platform stats: registered users, new users (7d),
  total user sites, available tools.

Plugin cleanup:
- Appwrite and Directus plugins removed from the active registry (8 plugins
  now: WordPress, WooCommerce, WordPress Specialist, Gitea, n8n, Supabase,
  OpenPanel, Coolify). Plugin code is retained for future re-enabling.
- Settings page plugin visibility list updated to match.

Mobile onboarding:
- Stepper steps on narrow viewports stack vertically with correct full border
  and rounded corners on each step.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 23:33:20 +02:00
parent f203ca88de
commit 43fd2201a0
223 changed files with 36183 additions and 4115 deletions

View File

@@ -1,6 +1,6 @@
[project]
name = "mcphub-server"
version = "3.12.0"
version = "3.13.0"
description = "AI-native management hub for WordPress, WooCommerce, and self-hosted services via Model Context Protocol (MCP)"
authors = [
{name = "MCP Hub", email = "contact@mcphub.dev"}
@@ -78,8 +78,14 @@ include = ["core*", "plugins*"]
exclude = ["tests*", "data*", "logs*", "temp*", "scripts*", "docs*"]
[tool.setuptools.package-data]
"core" = ["templates/**/*.html"]
"*" = ["*.html", "*.css", "*.js", "*.json"]
"core" = [
"templates/**/*.html",
"templates/static/*.svg",
"templates/static/*.css",
"templates/static/dist/*",
"templates/static/dist/**/*",
]
"*" = ["*.html", "*.css", "*.js", "*.json", "*.svg", "*.map", "*.woff", "*.woff2"]
# ====================================
# pytest Configuration
@@ -104,6 +110,7 @@ markers = [
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
"security: marks tests as security tests",
"frontend: marks tests covering the SPA / Track G backend support routes",
]
asyncio_mode = "auto" # Automatically detect async tests