fix: correct tool count (596), default English dashboard, clean up stale references
- Tool count corrected: 589→596 (was missing 4 OAuth + 4 system config tools) - System tools: 17→24 (accurate count of @mcp.tool() functions) - Dashboard defaults to English; Farsi only via ?lang=fa query param - Updated across all files: README, CLAUDE.md, CONTRIBUTING, DOCKER_README, getting-started, CHANGELOG, endpoints config - Removed remaining Phase references from server.py startup log - Tests: 289 passing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -157,15 +157,10 @@ DASHBOARD_TRANSLATIONS = {
|
||||
|
||||
|
||||
def detect_language(accept_language: str | None, query_lang: str | None = None) -> str:
|
||||
"""Detect language from Accept-Language header or query parameter."""
|
||||
"""Detect language from query parameter. Default is English."""
|
||||
if query_lang and query_lang in DASHBOARD_TRANSLATIONS:
|
||||
return query_lang
|
||||
|
||||
if accept_language:
|
||||
# Check for Persian/Farsi
|
||||
if "fa" in accept_language.lower() or "fa-ir" in accept_language.lower():
|
||||
return "fa"
|
||||
|
||||
return "en"
|
||||
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ ENDPOINT_CONFIGS = {
|
||||
allowed_scopes={"admin"},
|
||||
max_tools=400,
|
||||
),
|
||||
# System endpoint - system tools only (17 tools) - Phase X.3
|
||||
# System endpoint - system tools only (24 tools)
|
||||
# For API key management, OAuth, rate limiting without loading all plugins
|
||||
EndpointType.SYSTEM: EndpointConfig(
|
||||
path="/system",
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<div class="mt-6 text-center" {% if lang == 'fa' %}dir="rtl"{% endif %}>
|
||||
<p class="text-xs text-gray-500 dark:text-gray-400">
|
||||
{{ t.need_help }}
|
||||
<a href="https://github.com/airano-ir/coolify-mcp-hub" class="text-purple-600 dark:text-purple-400 hover:underline">{{ t.documentation }}</a>
|
||||
<a href="https://github.com/airano-ir/mcphub" class="text-purple-600 dark:text-purple-400 hover:underline">{{ t.documentation }}</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user