From 81eac3496cd0602e6739bd476053df3fb1dfd17f Mon Sep 17 00:00:00 2001 From: KenJo Date: Sun, 21 Jun 2026 19:27:25 +0000 Subject: [PATCH] docs: fix MCP server config example to match the loader (mcp.servers, not mcpServers) Co-Authored-By: Claude Opus 4.8 --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c103debfd..e83d9bd93 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ You keep using a text model for the session, and Grok saves generated media unde | **Remote control** | Pair **Telegram** from the TUI (`/remote-control` → Telegram): DM your bot, `**/pair`**, approve the code in-terminal. Keep the CLI running while you ping it from your phone. | | **No “mystery meat” UI** | OpenTUI React terminal UI—fast, keyboard-driven, not whatever glitchy thing you’re thinking of. | | **Skills** | Agent Skills under `**.agents/skills//SKILL.md`** (project) or `**~/.agents/skills/`** (user). Use `**/skills**` in the TUI to list what’s installed. | -| **MCPs** | Extend with Model Context Protocol servers—configure via `**/mcps`** in the TUI or `**.grok/settings.json`** (`mcpServers`). | +| **MCPs** | Extend with Model Context Protocol servers—configure via `**/mcps`** in the TUI or `**~/.grok/user-settings.json`** (`mcp.servers`). | | **Sessions** | Conversations persist; `**--session latest`** picks up where you left off. | | **Headless** | `**--prompt`** / `**-p`** for non-interactive runs—pipe it, script it, bench it. | | **Hackable** | TypeScript, clear agent loop, bash-first tools—fork it, shamelessly. | @@ -237,6 +237,25 @@ Optional `**subAgents**` — custom foreground sub-agents. Each entry needs `**n Names cannot be `general`, `explore`, `vision`, `verify`, or `computer` because those are reserved for the built-in sub-agents. +Optional `**mcp.servers**` — Model Context Protocol servers. Each entry needs `**id**`, `**label**`, `**enabled**`, and `**transport**` (`stdio`, `http`, or `sse`); `stdio` adds `**command**`/`**args**`/`**env**`/`**cwd**`, while `http`/`sse` add `**url**`/`**headers**`: + +```json +{ + "mcp": { + "servers": [ + { + "id": "filesystem", + "label": "Filesystem", + "enabled": true, + "transport": "stdio", + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] + } + ] + } +} +``` + Optional: `**GROK_BASE_URL**` (default `https://api.x.ai/v1`), `**GROK_MODEL**`, `**GROK_MAX_TOKENS**`. ---