~/.grok/mcp_credentials.json. Run grok mcp list to confirm the server is there, or grok mcp doctor if it isn’t connecting.
Add --scope project to write the entry to ./.grok/config.toml and share it with everyone in the repo instead of only your user config (~/.grok/config.toml).
Try it
Grok Build already has your session in context, so a good first task is turning that into content:Authenticate with an API key instead
For CI or a headless run with no browser, create a key in the web app under Profile → Developer API Keys → Create Key withtasks:read, tasks:write, content:write, and skills:read (see API keys & scopes), and pass it as a header:
~/.grok/config.toml:
${VAR} (and ${VAR:-default}) in headers, so the ak_… value stays in the environment and out of the config file. Load it from a mode-600 env file (set -a; . ~/.automate-it.env; set +a) in the shell that starts grok.