Add Build Remote Agent phone pairing
Document the optional Build Remote Agent phone pairing setup and MCP configuration. Co-authored-by: LinespottingPrivate <149178915+user@users.noreply.github.com>
- commit
- 82191b33a9d54993ce9c85988dc250421623b75b
- author
- Owner of LinespottingOrg · · 2026-08-24 05:59 UTC
- committer
- GitHub · · 2026-08-24 05:59 UTC
- parent
- 2470fda
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown - refs
- tag: v0.3.50
1 file · +69 -0
M examples/extensions/mcp-bridge/README.md +69 -0
| @@ -58,6 +58,65 @@ This extension reads MCP server configurations from standard locations (same for | |||
| 58 | 58 | ||
| 59 | 59 | The model initially sees one small loader tool, `mcp__search_tools`. It searches cached MCP tool names and descriptions locally, activates up to eight relevant definitions by default, and then calls the selected MCP tool normally. This keeps large MCP installations compatible with providers that limit request or tool-schema size. | |
| 60 | 60 | ||
| 61 | + | ### Phone pairing with Build Remote Agent | |
| 62 | + | ||
| 63 | + | [Build Remote Agent](https://grokbuildremote.com/) is an optional, third-party integration that lets a paired phone observe terminal sessions and veto actions. It is an independent Linespotting AB product and is not affiliated with xAI or SpaceX. | |
| 64 | + | ||
| 65 | + | #### Install the agent | |
| 66 | + | ||
| 67 | + | Pin release `v0.6.0` and verify the binary against the checksum listed here. The release's own `SHA256SUMS` file does not currently match five of its six binary assets, so do not use that file as the trust source. These checksums were verified directly against the release assets on 2026-08-24: | |
| 68 | + | ||
| 69 | + | ```text | |
| 70 | + | 62673a6856342a87d4a2a659bc1de92200aa19a5b60d88d252254940820f0b7f gbr-agent-darwin-amd64 | |
| 71 | + | 7baa1a8e214cd71b60e3f2b5063713e00ff740939749c3cab3d702784a1432f8 gbr-agent-darwin-arm64 | |
| 72 | + | fb54724367882497f2e8e05e40ecdeb4be29e008e6c865fc5c426cf464e6ad6e gbr-agent-linux-amd64 | |
| 73 | + | 9e9d7ca45bb0c4ded9d04226136013e9b64ae30f16bcf03069d35e9c38171cb9 gbr-agent-linux-arm64 | |
| 74 | + | 40355b2be6cd68f3be68f2a06dfd30307ec1a60f16f87f1d6174012b35aa4a49 gbr-agent-windows-amd64.exe | |
| 75 | + | 8fb9efcbc7e2ac91c11964944bf0f45e31bb23f4356d9dcb4b305d7cb9b0fe8c gbr-agent-windows-arm64.exe | |
| 76 | + | ``` | |
| 77 | + | ||
| 78 | + | This macOS Apple Silicon example downloads, verifies, and installs the binary. Change both `ASSET` and `SHA` for another platform. | |
| 79 | + | ||
| 80 | + | ```bash | |
| 81 | + | VER=v0.6.0 | |
| 82 | + | ASSET=gbr-agent-darwin-arm64 | |
| 83 | + | SHA=7baa1a8e214cd71b60e3f2b5063713e00ff740939749c3cab3d702784a1432f8 | |
| 84 | + | BASE="https://github.com/LinespottingOrg/GrokBuildRemote-Agents/releases/download/$VER" | |
| 85 | + | curl -fsSL -o "$ASSET" "$BASE/$ASSET" | |
| 86 | + | if command -v sha256sum >/dev/null 2>&1; then | |
| 87 | + | printf '%s %s\n' "$SHA" "$ASSET" | sha256sum -c - | |
| 88 | + | else | |
| 89 | + | printf '%s %s\n' "$SHA" "$ASSET" | shasum -a 256 -c - | |
| 90 | + | fi | |
| 91 | + | mkdir -p "$HOME/.local/bin" | |
| 92 | + | install -m 0755 "$ASSET" "$HOME/.local/bin/gbr-agent" | |
| 93 | + | export PATH="$HOME/.local/bin:$PATH" | |
| 94 | + | gbr-agent version # must report v0.6.0 | |
| 95 | + | gbr-agent pair | |
| 96 | + | gbr-agent run | |
| 97 | + | ``` | |
| 98 | + | ||
| 99 | + | Keep `gbr-agent run` running. Its Bot API should only be available over loopback: | |
| 100 | + | ||
| 101 | + | ```bash | |
| 102 | + | curl -sS http://127.0.0.1:8788/health | |
| 103 | + | curl -sS http://127.0.0.1:8788/v1/sessions | |
| 104 | + | ``` | |
| 105 | + | ||
| 106 | + | #### Install the MCP server | |
| 107 | + | ||
| 108 | + | The MCP server requires Node.js 20 or newer. Pin its source instead of cloning the mutable default branch: | |
| 109 | + | ||
| 110 | + | ```bash | |
| 111 | + | git clone --branch v0.6.0 --depth 1 https://github.com/LinespottingOrg/GrokBuildRemote-Agents.git | |
| 112 | + | cd GrokBuildRemote-Agents/mcp/gbr-mcp | |
| 113 | + | npm install --ignore-scripts | |
| 114 | + | MCP_PATH="$(pwd)/bin/gbr-mcp.js" | |
| 115 | + | node "$MCP_PATH" --diagnose | |
| 116 | + | ``` | |
| 117 | + | ||
| 118 | + | The `v0.6.0` source does not include a package lock, so its npm dependency resolution is not fully reproducible. Review the package manifest and resolved dependency tree before use. Put the absolute value of `MCP_PATH` in the configuration below. Never put mailbox keys in `mcp.json`. | |
| 119 | + | ||
| 61 | 120 | ## Configuration | |
| 62 | 121 | ||
| 63 | 122 | Config files are loaded from two locations (project overrides global per-server): | |
| @@ -86,6 +145,13 @@ Standard MCP config — same as Claude Desktop, with zot-specific extensions: | |||
| 86 | 145 | "idleTimeout": 300 // idle timeout before stopping (seconds) | |
| 87 | 146 | }, | |
| 88 | 147 | ||
| 148 | + | // Build Remote Agent (gbr/1). Pair with `gbr-agent pair`, then keep | |
| 149 | + | // `gbr-agent run` running. Use an absolute path to the pinned MCP checkout. | |
| 150 | + | "gbr": { | |
| 151 | + | "command": "node", | |
| 152 | + | "args": ["/ABSOLUTE/PATH/GrokBuildRemote-Agents/mcp/gbr-mcp/bin/gbr-mcp.js"] | |
| 153 | + | }, | |
| 154 | + | ||
| 89 | 155 | // ── Streamable HTTP transport (modern HTTP) ───────────────────────────── | |
| 90 | 156 | "supabase": { | |
| 91 | 157 | "transport": "streamable-http", | |
| @@ -289,3 +355,6 @@ Tested MCP servers: | |||
| 289 | 355 | ||
| 290 | 356 | Note: grep.app uses the root endpoint `/`. Streamable HTTP protocol headers are handled automatically by the bridge and should not be written to `mcp.json`. | |
| 291 | 357 | ||
| 358 | + | ## What the paired phone sees | |
| 359 | + | ||
| 360 | + | Build Remote Agent exposes terminal windows on the machine. Its loopback `:8788` endpoint is a Bot API that returns JSON, not an MCP endpoint or terminal transcript. See the third-party's [current phone visibility documentation](https://github.com/LinespottingOrg/GrokBuildRemote-Agents/blob/main/docs/WHAT-THE-PHONE-SEES.md) for details. | |
| @@ -58,6 +58,65 @@ This extension reads MCP server configurations from standard locations (same for | |||||
| 58 | 58 | ||||
| 59 | The model initially sees one small loader tool, `mcp__search_tools`. It searches cached MCP tool names and descriptions locally, activates up to eight relevant definitions by default, and then calls the selected MCP tool normally. This keeps large MCP installations compatible with providers that limit request or tool-schema size. | 59 | The model initially sees one small loader tool, `mcp__search_tools`. It searches cached MCP tool names and descriptions locally, activates up to eight relevant definitions by default, and then calls the selected MCP tool normally. This keeps large MCP installations compatible with providers that limit request or tool-schema size. | ||
| 60 | 60 | ||||
| 61 | + | ### Phone pairing with Build Remote Agent | |||
| 62 | + | ||||
| 63 | + | [Build Remote Agent](https://grokbuildremote.com/) is an optional, third-party integration that lets a paired phone observe terminal sessions and veto actions. It is an independent Linespotting AB product and is not affiliated with xAI or SpaceX. | |||
| 64 | + | ||||
| 65 | + | #### Install the agent | |||
| 66 | + | ||||
| 67 | + | Pin release `v0.6.0` and verify the binary against the checksum listed here. The release's own `SHA256SUMS` file does not currently match five of its six binary assets, so do not use that file as the trust source. These checksums were verified directly against the release assets on 2026-08-24: | |||
| 68 | + | ||||
| 69 | + | ```text | |||
| 70 | + | 62673a6856342a87d4a2a659bc1de92200aa19a5b60d88d252254940820f0b7f gbr-agent-darwin-amd64 | |||
| 71 | + | 7baa1a8e214cd71b60e3f2b5063713e00ff740939749c3cab3d702784a1432f8 gbr-agent-darwin-arm64 | |||
| 72 | + | fb54724367882497f2e8e05e40ecdeb4be29e008e6c865fc5c426cf464e6ad6e gbr-agent-linux-amd64 | |||
| 73 | + | 9e9d7ca45bb0c4ded9d04226136013e9b64ae30f16bcf03069d35e9c38171cb9 gbr-agent-linux-arm64 | |||
| 74 | + | 40355b2be6cd68f3be68f2a06dfd30307ec1a60f16f87f1d6174012b35aa4a49 gbr-agent-windows-amd64.exe | |||
| 75 | + | 8fb9efcbc7e2ac91c11964944bf0f45e31bb23f4356d9dcb4b305d7cb9b0fe8c gbr-agent-windows-arm64.exe | |||
| 76 | + | ``` | |||
| 77 | + | ||||
| 78 | + | This macOS Apple Silicon example downloads, verifies, and installs the binary. Change both `ASSET` and `SHA` for another platform. | |||
| 79 | + | ||||
| 80 | + | ```bash | |||
| 81 | + | VER=v0.6.0 | |||
| 82 | + | ASSET=gbr-agent-darwin-arm64 | |||
| 83 | + | SHA=7baa1a8e214cd71b60e3f2b5063713e00ff740939749c3cab3d702784a1432f8 | |||
| 84 | + | BASE="https://github.com/LinespottingOrg/GrokBuildRemote-Agents/releases/download/$VER" | |||
| 85 | + | curl -fsSL -o "$ASSET" "$BASE/$ASSET" | |||
| 86 | + | if command -v sha256sum >/dev/null 2>&1; then | |||
| 87 | + | printf '%s %s\n' "$SHA" "$ASSET" | sha256sum -c - | |||
| 88 | + | else | |||
| 89 | + | printf '%s %s\n' "$SHA" "$ASSET" | shasum -a 256 -c - | |||
| 90 | + | fi | |||
| 91 | + | mkdir -p "$HOME/.local/bin" | |||
| 92 | + | install -m 0755 "$ASSET" "$HOME/.local/bin/gbr-agent" | |||
| 93 | + | export PATH="$HOME/.local/bin:$PATH" | |||
| 94 | + | gbr-agent version # must report v0.6.0 | |||
| 95 | + | gbr-agent pair | |||
| 96 | + | gbr-agent run | |||
| 97 | + | ``` | |||
| 98 | + | ||||
| 99 | + | Keep `gbr-agent run` running. Its Bot API should only be available over loopback: | |||
| 100 | + | ||||
| 101 | + | ```bash | |||
| 102 | + | curl -sS http://127.0.0.1:8788/health | |||
| 103 | + | curl -sS http://127.0.0.1:8788/v1/sessions | |||
| 104 | + | ``` | |||
| 105 | + | ||||
| 106 | + | #### Install the MCP server | |||
| 107 | + | ||||
| 108 | + | The MCP server requires Node.js 20 or newer. Pin its source instead of cloning the mutable default branch: | |||
| 109 | + | ||||
| 110 | + | ```bash | |||
| 111 | + | git clone --branch v0.6.0 --depth 1 https://github.com/LinespottingOrg/GrokBuildRemote-Agents.git | |||
| 112 | + | cd GrokBuildRemote-Agents/mcp/gbr-mcp | |||
| 113 | + | npm install --ignore-scripts | |||
| 114 | + | MCP_PATH="$(pwd)/bin/gbr-mcp.js" | |||
| 115 | + | node "$MCP_PATH" --diagnose | |||
| 116 | + | ``` | |||
| 117 | + | ||||
| 118 | + | The `v0.6.0` source does not include a package lock, so its npm dependency resolution is not fully reproducible. Review the package manifest and resolved dependency tree before use. Put the absolute value of `MCP_PATH` in the configuration below. Never put mailbox keys in `mcp.json`. | |||
| 119 | + | ||||
| 61 | ## Configuration | 120 | ## Configuration | ||
| 62 | 121 | ||||
| 63 | Config files are loaded from two locations (project overrides global per-server): | 122 | Config files are loaded from two locations (project overrides global per-server): | ||
| @@ -86,6 +145,13 @@ Standard MCP config — same as Claude Desktop, with zot-specific extensions: | |||||
| 86 | "idleTimeout": 300 // idle timeout before stopping (seconds) | 145 | "idleTimeout": 300 // idle timeout before stopping (seconds) | ||
| 87 | }, | 146 | }, | ||
| 88 | 147 | ||||
| 148 | + | // Build Remote Agent (gbr/1). Pair with `gbr-agent pair`, then keep | |||
| 149 | + | // `gbr-agent run` running. Use an absolute path to the pinned MCP checkout. | |||
| 150 | + | "gbr": { | |||
| 151 | + | "command": "node", | |||
| 152 | + | "args": ["/ABSOLUTE/PATH/GrokBuildRemote-Agents/mcp/gbr-mcp/bin/gbr-mcp.js"] | |||
| 153 | + | }, | |||
| 154 | + | ||||
| 89 | // ── Streamable HTTP transport (modern HTTP) ───────────────────────────── | 155 | // ── Streamable HTTP transport (modern HTTP) ───────────────────────────── | ||
| 90 | "supabase": { | 156 | "supabase": { | ||
| 91 | "transport": "streamable-http", | 157 | "transport": "streamable-http", | ||
| @@ -289,3 +355,6 @@ Tested MCP servers: | |||||
| 289 | 355 | ||||
| 290 | Note: grep.app uses the root endpoint `/`. Streamable HTTP protocol headers are handled automatically by the bridge and should not be written to `mcp.json`. | 356 | Note: grep.app uses the root endpoint `/`. Streamable HTTP protocol headers are handled automatically by the bridge and should not be written to `mcp.json`. | ||
| 291 | 357 | ||||
| 358 | + | ## What the paired phone sees | |||
| 359 | + | ||||
| 360 | + | Build Remote Agent exposes terminal windows on the machine. Its loopback `:8788` endpoint is a Bot API that returns JSON, not an MCP endpoint or terminal transcript. See the third-party's [current phone visibility documentation](https://github.com/LinespottingOrg/GrokBuildRemote-Agents/blob/main/docs/WHAT-THE-PHONE-SEES.md) for details. | |||