# Restart Grok for this Zapier workspace ## 1. Leave the TUI In Grok type: ``` /quit ``` (` /exit ` is the same.) Do **not** use `/new` — that throws away this session. ## 2. Run the restart script from a normal shell ```bash cd /Users/marchon/research/zapier ./scripts/restart-grok.sh ``` That script: 1. `cd`s to this repo 2. Puts `zapier-platform` / `zapier-sdk` on `PATH` 3. Loads `~/.mcp-env` (Mongo URI) 4. Starts `scripts/mongo-tunnel.sh` if `127.0.0.1:27017` is down 5. Runs `grok --resume` (latest session for this directory) ## 3. After Grok opens ``` /mcps ``` Press `r` to refresh. Confirm **mongodb** is connected. Then continue: ``` /zapier-build ``` or ask Grok to load: ```js db.platform_reference.findOne({ kind: "guide", key: "build-new-connector" }) ``` ## Other scripts | Script | What it does | |--------|----------------| | `scripts/restart-grok.sh` | Tunnel + `grok --resume` | | `scripts/ensure-mongo-tunnel.sh` | Start tunnel only | | `scripts/mongo-tunnel.sh` | Raw `ssh -N -L 27017:… ns1` (foreground) | | `scripts/dev-env.sh` | `source` this for PATH + Mongo URI | | `scripts/zapier-status.sh` | Check tunnel, CLIs, login, Mongo count | ```bash ./scripts/zapier-status.sh ``` Browser logins (optional, for `push` / live SDK): see [LOGIN.md](LOGIN.md).