mcp
Configure MCP hosts
Wire Claude Code, Codex, Cursor, Grok Build, OpenCode, and other MCP clients to grain.
grain MCP speaks stdio (grain mcp) and Streamable HTTP (grain up --mcp → http://127.0.0.1:7476/mcp). Hosts do not share one config format — pick yours, choose a transport, and inject the snippet.
Enable the daemon
grain up # required for stdio tools
grain up --mcp # also exposes Streamable HTTP MCPAgent configs
JSON
Tips
- Prefer stdio for local IDE agents when the host can spawn a process.
- Long
grain_execwork can look like a hang — raise the host’s tool timeout (e.g. 600s) and check guest load withgrain_stats. - Full tool list: MCP overview.