You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Grok MCP registration is fire-and-forget and user-global: boot race, no project binding, log-only failures #706
Found in a full provider-feature audit. Grok gets MCP servers via ensureGrokMcpConfig → grok mcp add … --scope user into the user-global ~/.grok/config.toml (electron/memory-sup.js:1078-1156). Three weaknesses vs the claude per-launch --mcp-config and kimi's per-run overlay:
Boot race: registration is an async fire-and-forget batch (memory-sup.js:1063-1067); a grok run started before it completes has no memory/orchestrator/preview tools, with no UI signal.
Log-only failure: any stall/error in grok mcp add (10s per-CLI timeout, :750, :1138-1154) is log-only; every grok run then silently lacks memory tools.
No per-project binding: servers are registered with the plain URL (:1117-1118), no ?project=/?projectId= scoping like kimi got in Isolate Kimi runs: no cross-project threads, memory, or workspaces #671 — project scoping for memory rests entirely on the model following the handshake instruction, so cross-project leakage is possible.
Related: plugin activation execs bare grok from PATH instead of the resolved provider bin, so installs that only work via CODER_GROK_BIN fail plugin activation (electron/skillPluginAdapters.js:307-340).
ssh/WSL (overlay is local-host) still uses grok mcp add --scope user, but now with bound URLs and await whenGrokMcpIdle() so the spawn cannot beat the add.
Plugin activation resolves grok/codex through CODER_GROK_BIN / CODER_CODEX_BIN after the allowlist check.
Out of scope here: workflow grok agents still inherit user-global MCP.
Landed on main via 734b0cb "Merge worktree coder/fork-grok-mcp-registration-is-fire-and-f-9f06ce", the branch named in the implementation comment above. The issue was left open with plan:done; closing during the 2026-10-03 board cleanup.
Activity
currentbits commentedon Aug 27, 2026
Implemented on
coder/fork-grok-mcp-registration-is-fire-and-f-9f06ce.Local Solenta grok runs now use a per-thread
GROK_HOMEoverlay (electron/grok.js), same class as Kimi’sKIMI_CODE_HOME(#671):coder-memory?project=andcoder-threads?projectId=so the server owns scope.[mcp_servers.*]dropped;GROK_CLAUDE_MCPS_ENABLED=false/GROK_CURSOR_MCPS_ENABLED=falseso Claude/Cursor MCP compat is off for that child.~/.grok/config.tomlis not rewritten on the local run path (Concurrent 'grok mcp add' writes corrupt ~/.grok/config.toml and kill every grok run #626 tear avoided).ssh/WSL (overlay is local-host) still uses
grok mcp add --scope user, but now with bound URLs andawait whenGrokMcpIdle()so the spawn cannot beat the add.Plugin activation resolves
grok/codexthroughCODER_GROK_BIN/CODER_CODEX_BINafter the allowlist check.Out of scope here: workflow grok agents still inherit user-global MCP.
currentbits commentedon Oct 3, 2026
Landed on main via 734b0cb "Merge worktree coder/fork-grok-mcp-registration-is-fire-and-f-9f06ce", the branch named in the implementation comment above. The issue was left open with plan:done; closing during the 2026-10-03 board cleanup.