STRATEGY: copy-paste-ready suite-side snippets for the mcpserver link
release gate / check (push) Failing after 6m45s

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.
This commit is contained in:
Andrew S Erwin
2026-11-02 21:07:48 -06:00
parent 9a9c3bb80d
commit 6fbe5f23bf
+32 -11
View File
@@ -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