Host BookStack MCP as a Streamable HTTP service on Vega over Nebula #283

Closed
opened 2026-10-07 15:22:18 +01:00 by nimmo · 1 comment
Owner

Context & Goal

Currently, BookStack MCP is configured as a local stdio client process on individual hosts, requiring a local Node.js wrapper launcher script and local token credentials in secrets.
Following the successful migration of Forgejo MCP, KiwiFS MCP, and Navidrome MCP to hosted HTTP services over the Nebula overlay network on Vega, we want to host bookstack-mcp as a native Streamable HTTP daemon on Vega (bookstack-mcp.service) listening on 10.10.0.2:8782/mcp.

Implementation Plan

  1. Vega Service Module (modules/services/bookstack-mcp.nix):
    • Declare systemd service bookstack-mcp running packages/bookstack-mcp.
    • Configure environment:
      • MCP_TRANSPORT=http
      • MCP_HTTP_HOST=10.10.0.2 (or dynamically from nixosConfig.nebula.overlayIp)
      • MCP_HTTP_PORT=8782
      • MCP_HTTP_PATH=/mcp
      • BOOKSTACK_BASE_URL=http://127.0.0.1 (direct local loopback connection on Vega)
      • BOOKSTACK_ENABLE_WRITE=true
    • Load token credentials via systemd LoadCredential from Vega's secrets/bookstack.yaml (bookstack/api_token_id and bookstack/api_token_secret).
    • Open TCP 8782 on nebula.mesh interface in Vega firewall.
    • Enable service in hosts/vega/default.nix.
  2. Fleet Client Configuration:
    • In modules/common/default-config.nix: configure nixosConfig.mcp.bookstack.url defaulting to http://10.10.0.2:8782/mcp and default enable = true.
    • In modules/mcp/bookstack.nix: configure BookStack MCP client as type = "http" pointing to config.nixosConfig.mcp.bookstack.url.
    • Remove local stdio wrapper launcher modules/common/bookstack-mcp-launcher.nix.
  3. Validation & Verification:
    • nix flake check passes.
    • Host evaluations pass for electra, lena, vega, lyra.
    • Verify MCP registries across Codex, OpenCode, and Antigravity CLI point cleanly to HTTP URL without local secrets dependency.
## Context & Goal Currently, BookStack MCP is configured as a local stdio client process on individual hosts, requiring a local Node.js wrapper launcher script and local token credentials in secrets. Following the successful migration of Forgejo MCP, KiwiFS MCP, and Navidrome MCP to hosted HTTP services over the Nebula overlay network on Vega, we want to host `bookstack-mcp` as a native Streamable HTTP daemon on Vega (`bookstack-mcp.service`) listening on `10.10.0.2:8782/mcp`. ## Implementation Plan 1. **Vega Service Module (`modules/services/bookstack-mcp.nix`)**: - Declare systemd service `bookstack-mcp` running `packages/bookstack-mcp`. - Configure environment: - `MCP_TRANSPORT=http` - `MCP_HTTP_HOST=10.10.0.2` (or dynamically from `nixosConfig.nebula.overlayIp`) - `MCP_HTTP_PORT=8782` - `MCP_HTTP_PATH=/mcp` - `BOOKSTACK_BASE_URL=http://127.0.0.1` (direct local loopback connection on Vega) - `BOOKSTACK_ENABLE_WRITE=true` - Load token credentials via systemd `LoadCredential` from Vega's `secrets/bookstack.yaml` (`bookstack/api_token_id` and `bookstack/api_token_secret`). - Open TCP 8782 on `nebula.mesh` interface in Vega firewall. - Enable service in `hosts/vega/default.nix`. 2. **Fleet Client Configuration**: - In `modules/common/default-config.nix`: configure `nixosConfig.mcp.bookstack.url` defaulting to `http://10.10.0.2:8782/mcp` and default `enable = true`. - In `modules/mcp/bookstack.nix`: configure BookStack MCP client as `type = "http"` pointing to `config.nixosConfig.mcp.bookstack.url`. - Remove local stdio wrapper launcher `modules/common/bookstack-mcp-launcher.nix`. 3. **Validation & Verification**: - `nix flake check` passes. - Host evaluations pass for electra, lena, vega, lyra. - Verify MCP registries across Codex, OpenCode, and Antigravity CLI point cleanly to HTTP URL without local secrets dependency.
Author
Owner

Completed and merged via PR #284. BookStack MCP is now hosted as a native Streamable HTTP daemon on Vega listening on 10.10.0.2:8782/mcp, and universally configured across the fleet.

Completed and merged via PR #284. BookStack MCP is now hosted as a native Streamable HTTP daemon on Vega listening on `10.10.0.2:8782/mcp`, and universally configured across the fleet.
nimmo closed this issue 2026-10-07 15:57:38 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#283
No description provided.