Add an MCP server from JSON
mcp tools
// what it does
grok mcp add-json takes a name and a JSON blob describing the server in one shot — handy for pasting a config a provider gives you, or scripting server setup. The JSON carries the command, args, and env inline.
// shell
$ grok mcp add-json my-server '{"command": "bun", "args": ["server.js"], "env": {"API_KEY": "your-key"}}'// gotcha
The JSON must be a single, valid, shell-quoted string; an unescaped quote breaks the parse. Wrap it in single quotes as shown so your shell does not mangle the double quotes inside.