MCP catalog: core-hub suggestion from MCP_HUB_URL (deployment data)

When the deployment sets MCP_HUB_URL (the Core installer now writes
https://mcphub.$DOMAIN, the NEXTCLOUD_URL pattern), the MCP list appends
a core-hub suggestion: the federated tool hub over SSE with the user's
own mhub_ bearer token (DESIGN_MCP_HUB_AUTH.md step 3). Unset/invalid ->
no suggestion; never a TIER fork. The UI renders it generically (Use
prefills URL/transport/auth + token hint). Go test covers the env gate;
regression fixture carries the entry.
This commit is contained in:
Andrew S Erwin
2026-11-25 01:26:43 -06:00
parent 922cb46596
commit 5b3dcfdbb7
6 changed files with 63 additions and 3 deletions
+6
View File
@@ -244,6 +244,12 @@ NETGUARD_TRUSTED_HOSTS=mail.$DOMAIN
# connection still needs the person's own username and app password; see the
# three DAV sections in API.md).
NEXTCLOUD_URL=https://nextcloud.$DOMAIN
# --- MCP hub (Settings → MCP) ----------------------------------------------
# The core's federated tool hub (mcpserver-hub) as a one-connection MCP
# suggestion; each person connects with their OWN mhub_ bearer token
# (mcphub-token CLI; DESIGN_MCP_HUB_AUTH.md). Purely a hint, like NEXTCLOUD_URL.
MCP_HUB_URL=https://mcphub.$DOMAIN
EOF
chmod 600 /federated/apps/superbrain/.env