{
  "_comment": "TEMPLATE for backend:\"service\" on OPENCODE (dev-loop P8 portability; see docs/PORTABILITY.md). Recommended install: `npm i -g @dyzsasd/dev-loop`, then merge the `mcp` entry into your opencode config (e.g. ~/.config/opencode/config.json or a repo-local opencode.json). VERIFY against your installed opencode version: (1) the exact `mcp` server schema (this uses type:\"local\" + a command ARRAY + an `environment` map), and (2) whether opencode propagates the launching process env to the MCP subprocess. Per-pane identity is load-bearing: DEVLOOP_ACTOR differs per agent pane, so it must ride the launcher/env or an opencode-specific override. Confirm with the identity gate in docs/PORTABILITY.md.",
  "mcp": {
    "dev-loop-hub": {
      "type": "local",
      "command": ["dev-loop", "serve"],
      "environment": {
        "DEVLOOP_PROJECT": "",
        "DEVLOOP_HUB_DB": "/ABSOLUTE/PATH/.dev-loop/hub.db"
      },
      "_DEVLOOP_PROJECT_note": "literal empty (NOT shell-expanded here) ⇒ the hub auto-resolves the project from the spawned process's cwd (DL-13); set a non-empty value to pin one explicitly, or omit the key.",
      "_shim_note": "OPT-IN daemon transport (DL-55): a 100% `serve` drop-in — the shim proxies ALL 27 server.ts tools through the running daemon's loopback op-API instead of opening hub.db directly (identity rides env → X-Devloop-Actor header); change command to [\"dev-loop\", \"shim\"]. REQUIRES the workspace hub daemon up (`dev-loop hub ensure`; raw `dev-loop daemon up` is for debugging) + settings_json.hub.transport=\"daemon\" (DL-43).",
      "enabled": true
    }
  }
}
