Can connect to Federated Core agent for various MCP actions available in Core. #11

Closed
opened 2026-11-02 21:56:39 +00:00 by david · 3 comments
Owner

Let's use the MCP actions available in Core!

Let's use the MCP actions available in Core!
Collaborator

Status: Superbrain side done and released (1.2.0/1.2.1); the remaining work is suite-side wiring + ops.

Superbrain now works like every other suite app: it exposes an MCP server, and the core agent (Hermes, with whatever LLM Superpanel configures) reaches Superbrain data through the mcpserver gateway — no LLM config inside Superbrain needed.

Done (this repo, released):

  • Personal API keys: ApiKey table (migration 017), sb_... Bearer channel on every data endpoint, /api/keys CRUD, Settings -> API Keys; gated on the mcp-core connector (core plan) at issuance and at use.
  • superbrain-mcp: pip-installable stdio MCP server (mcp/ in the repo) with bookmarks/tags/pages tools, version-safe writes.
  • config_mcpserver_superbrain() in deploy/federated/lib-superbrain.sh: mints the gateway's dedicated key and points it at http://superbrain-app:8080; ships inside the migrate image at /deploy.
  • Copy-paste-ready snippets for the two suite repos in deploy/federated/STRATEGY.md.

Remaining (tracked here until done):

  1. Publish the 1.2.1 images (CI publish needs the DockerHub secrets, or README Option B); core runs 1.0.1 today — no ApiKey table there yet. Then update.sh 1.2.1.
  2. mcpserver image repo: apps_registry.py entry (required_env: SUPERBRAIN_API_URL, command: superbrain-mcp) + install the package into the image; publish.
  3. /federated/lib/mcpserver.sh: superbrain in MCPSERVER_APPS + the mcpserver_app_env_var case.
  4. On core: installapp mcpserver (gateway not installed there yet), then installapp-mcpserver superbrain.
  5. Verify: superbrain tools at mcphub.$DOMAIN, Hermes reconnects with the full tool list, one live tool call. Then close this.

Note: this attach gives the core agent tool access to Superbrain data; Superbrain's own in-app AI (assistant/automations) is a separate path tracked in #1.

**Status: Superbrain side done and released (1.2.0/1.2.1); the remaining work is suite-side wiring + ops.** Superbrain now works like every other suite app: it exposes an MCP server, and the core agent (Hermes, with whatever LLM Superpanel configures) reaches Superbrain data through the mcpserver gateway — no LLM config inside Superbrain needed. Done (this repo, released): - Personal API keys: `ApiKey` table (migration 017), `sb_...` Bearer channel on every data endpoint, `/api/keys` CRUD, Settings -> API Keys; gated on the `mcp-core` connector (core plan) at issuance and at use. - `superbrain-mcp`: pip-installable stdio MCP server (`mcp/` in the repo) with bookmarks/tags/pages tools, version-safe writes. - `config_mcpserver_superbrain()` in `deploy/federated/lib-superbrain.sh`: mints the gateway's dedicated key and points it at `http://superbrain-app:8080`; ships inside the migrate image at `/deploy`. - Copy-paste-ready snippets for the two suite repos in `deploy/federated/STRATEGY.md`. Remaining (tracked here until done): 1. Publish the 1.2.1 images (CI publish needs the DockerHub secrets, or README Option B); core runs 1.0.1 today — no `ApiKey` table there yet. Then `update.sh 1.2.1`. 2. mcpserver image repo: `apps_registry.py` entry (`required_env: SUPERBRAIN_API_URL`, `command: superbrain-mcp`) + install the package into the image; publish. 3. `/federated/lib/mcpserver.sh`: `superbrain` in `MCPSERVER_APPS` + the `mcpserver_app_env_var` case. 4. On core: `installapp mcpserver` (gateway not installed there yet), then `installapp-mcpserver superbrain`. 5. Verify: superbrain tools at `mcphub.$DOMAIN`, Hermes reconnects with the full tool list, one live tool call. Then close this. Note: this attach gives the core agent tool access to Superbrain data; Superbrain's own in-app AI (assistant/automations) is a separate path tracked in #1.
Author
Owner

Moved to Plane.

Moved to Plane.
david closed this issue 2026-11-04 19:12:07 +00:00
Collaborator

Resolved on the erwin core (federatedcomputer.ai) — closing.

Verified live 2026-11-05 on superbrain 1.2.4:

  • installapp mcpserver + installapp-mcpserver superbrain ran the house flow: dedicated mcpserver API key minted for the admin account (ApiKey row, prefix shown in Settings -> API Keys), gateway .env pointed at http://superbrain-app:8080.
  • Gateway (mcpserver.$DOMAIN) spawns superbrain-mcp; the hub (mcphub.$DOMAIN, basic-auth) aggregates it. An MCP client session against the hub lists all 14 tools (search/get/create/update/delete bookmarks, tags, pages incl. markdown + append), a read call succeeds against the empty workspace, and a bad id returns a proper tool error carrying the Go API's 404 — i.e. the key-authenticated round trip works.
  • pdns records for mcpserver/mcphub added by the flow; Hermes restart attempted (not installed on this core yet — it will pick the tools up on its next start).

Interim measure, documented in deploy/federated/STRATEGY.md: upstream federatedcomputer/mcpserver does not yet ship superbrain support, so a derived image federatedcomputer/mcpserver-superbrain:1.8.8 (upstream + pipx-installed superbrain-mcp + apps_registry entry, Dockerfile in this repo) is published and the core's mcpserver service CONTAINER points at it. Maintainer TODOs to retire it: add the apps_registry entry + package bake upstream, add superbrain to MCPSERVER_APPS/mcpserver_app_env_var and the render image repo in lib/mcpserver.sh (local edits on erwin today), then move CONTAINER back.

Note for other cores: land the Core-repo updater fix (see #1 thread / core-fix-upgrade-superbrain.patch) and upgrade superbrain to >=1.2.4 before attaching there.

**Resolved on the erwin core (federatedcomputer.ai) — closing.** Verified live 2026-11-05 on superbrain 1.2.4: - `installapp mcpserver` + `installapp-mcpserver superbrain` ran the house flow: dedicated `mcpserver` API key minted for the admin account (ApiKey row, prefix shown in Settings -> API Keys), gateway `.env` pointed at `http://superbrain-app:8080`. - Gateway (`mcpserver.$DOMAIN`) spawns `superbrain-mcp`; the hub (`mcphub.$DOMAIN`, basic-auth) aggregates it. An MCP client session against the hub lists all 14 tools (search/get/create/update/delete bookmarks, tags, pages incl. markdown + append), a read call succeeds against the empty workspace, and a bad id returns a proper tool error carrying the Go API's 404 — i.e. the key-authenticated round trip works. - pdns records for mcpserver/mcphub added by the flow; Hermes restart attempted (not installed on this core yet — it will pick the tools up on its next start). Interim measure, documented in deploy/federated/STRATEGY.md: upstream `federatedcomputer/mcpserver` does not yet ship superbrain support, so a derived image `federatedcomputer/mcpserver-superbrain:1.8.8` (upstream + pipx-installed superbrain-mcp + apps_registry entry, Dockerfile in this repo) is published and the core's mcpserver service CONTAINER points at it. Maintainer TODOs to retire it: add the apps_registry entry + package bake upstream, add superbrain to MCPSERVER_APPS/mcpserver_app_env_var and the render image repo in lib/mcpserver.sh (local edits on erwin today), then move CONTAINER back. Note for other cores: land the Core-repo updater fix (see #1 thread / core-fix-upgrade-superbrain.patch) and upgrade superbrain to >=1.2.4 before attaching there.
Sign in to join this conversation.
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Federated_Computer/superbrain#11