From 6fbe5f23bf920ef93564e60ab5b83e2eedd9f7bb Mon Sep 17 00:00:00 2001 From: Andrew S Erwin Date: Mon, 2 Nov 2026 21:07:48 -0600 Subject: [PATCH] STRATEGY: copy-paste-ready suite-side snippets for the mcpserver link Also records the product framing: the MCP attach is how the core's already-configured AI (Superpanel -> Hermes) reaches Superbrain data with zero per-app LLM config - apps expose tools, the house agent owns the LLM. Superbrain's own AI features (automations/assistant) keep resolving BYO first, then the plan-gated AI_* server env key. --- deploy/federated/STRATEGY.md | 43 +++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/deploy/federated/STRATEGY.md b/deploy/federated/STRATEGY.md index 0be4eae..42491b3 100644 --- a/deploy/federated/STRATEGY.md +++ b/deploy/federated/STRATEGY.md @@ -284,18 +284,39 @@ real API-key mechanism — is resolved. Superbrain now has: so the gateway must talk to the app container directly — no traefik hairpin needed since the app speaks plain HTTP internally). -Suite-side work items to finish the link (NOT in this repo): +Suite-side work items to finish the link (NOT in this repo), copy-paste ready: -- `/federated/lib/mcpserver.sh`: add `superbrain` to `MCPSERVER_APPS` and - `mcpserver_app_env_var() { superbrain) echo "SUPERBRAIN_API_URL" ;; }` — - the restart/uninstall machinery keys off both. -- mcpserver image repo: add the `apps_registry.py` entry - (`"superbrain": {"required_env": "SUPERBRAIN_API_URL", - "command": "superbrain-mcp", "args": []}`) and install the package into - the image (pipx like the other Python servers; publish `superbrain-mcp` - to PyPI or vendor it from the repo's `mcp/` directory). -- Then on a core: `/federated/bin/installapp-mcpserver superbrain` links it - and `mcphub`/Hermes pick the tools up like every other app. +- `/federated/lib/mcpserver.sh` — extend the app list and the env-var map + (both load-bearing for restart/uninstall bookkeeping): + + ```bash + MCPSERVER_APPS="listmonk nextcloud espocrm baserow bookstack n8n immich gitea plane erpnext kimai matomo wordpress vaultwarden superbrain" + # in mcpserver_app_env_var(): + superbrain) echo "SUPERBRAIN_API_URL" ;; + ``` + +- mcpserver image repo — `/app/apps_registry.py` (shared by entrypoint.py and + hub_entrypoint.py) plus installing the package into the image (pipx like + the other Python servers; publish `superbrain-mcp` to PyPI or vendor it + from this repo's `mcp/`): + + ```python + "superbrain": { + "required_env": "SUPERBRAIN_API_URL", + "command": "superbrain-mcp", + "args": [], + }, + ``` + +- Then on a core: `/federated/bin/installapp mcpserver` (if the gateway is + not installed yet — the container stays down until the first app links) + and `/federated/bin/installapp-mcpserver superbrain`; `mcphub`/Hermes pick + the tools up like every other app. Product framing: this is how the + core's already-configured AI (Superpanel → Hermes) reaches Superbrain + data with zero per-app LLM config — apps expose tools, the house agent + owns the LLM. It does NOT enable Superbrain's own AI features + (automations/assistant); those still resolve per-user BYO first, then the + plan-gated `AI_*` server env key. ### Not applicable