grok-delegate
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grok-delegateImplement pagination for the users list"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grok-delegate (MCP)
Version 0.4.1 — Local stdio MCP bridge that delegates coding work to the host Grok CLI agent with isolated git worktrees, typed receipts, and three explicit backend transports.
Security one-liner: this repository must never contain OAuth tokens, API keys, or WebSocket secrets. Model auth is the local Grok CLI session (
grok login→ machine-local auth store). MCP config must only list paths and non-secret policy env vars.
Install guides
Language | Guide |
English | |
Русский | |
简体中文 | |
Español |
Also: SECURITY · CONTRIBUTING · ACP transports · Client setup examples
Related MCP server: Grok Plugin Codex
What it does
Capability | Detail |
MCP surface | 8 typed |
Host transport | stdio JSON-RPC MCP (what Claude / Cursor / Codex spawn) |
Agent backends |
|
Isolation | External git worktree on |
Evidence | Diffstat, expected artifacts, independent |
Fail-closed roots |
|
WebSocket note: MCP clients still connect over stdio. WebSocket is the
optional ACP channel between this bridge and a local grok agent serve daemon
(loopback + ephemeral secret only).
Prerequisites
Python 3.10+
Grok CLI installed and authenticated (
grok login)git available on
PATH
Quick install
cd <REPO_PATH>
python -m pip install -e ".[test]"Configure allowlisted project roots (fail-closed):
export GROK_DELEGATE_ALLOWED_ROOTS="<PROJECT_ROOT>"
export GROK_DELEGATE_LANES_PARENT="<LANES_PARENT>" # outside the repo
export GROK_DELEGATE_JOBS_DIR="<JOBS_DIR>" # optional durable jobsQuick run
# stdio MCP server (default entry for desktop hosts)
grok-delegate
# or:
python -m grok_delegate.server
# operator checks (no host restart needed)
python -m grok_delegate --self-test
python -m pytest -qConnect clients
Copy a template from examples/ and replace placeholders only
(<REPO_PATH>, <PROJECT_ROOT>, …). Never put GROK_AGENT_SECRET, OAuth
tokens, or API keys in these files.
Client | How |
Claude Desktop | Merge |
Claude Code | Project or user |
Cursor |
|
Codex CLI |
|
VS Code / Continue | Same stdio command/args/env pattern as Claude |
ChatGPT | Web ChatGPT expects a remote HTTPS MCP connector. This package is local stdio. Use Claude/Cursor/Codex locally, or put a trusted TLS reverse-proxy in front of a remote MCP bridge without shipping Grok OAuth or agent secrets to the public internet. |
Full steps: docs/install/en.md.
Minimal Claude Desktop fragment
{
"mcpServers": {
"grok-delegate": {
"command": "python",
"args": ["-m", "grok_delegate.server"],
"cwd": "<REPO_PATH>",
"env": {
"GROK_DELEGATE_ALLOWED_ROOTS": "<PROJECT_ROOT>",
"GROK_DELEGATE_LANES_PARENT": "<LANES_PARENT>"
}
}
}
}First verification
python -m grok_delegate --self-test→ PASS tableFrom the host: call
grok_agent_statusPrefer
grok_agent_consultbefore anyexecuteon a real repoFor write roles, use a temporary git repository until receipts look correct
Transports (backend)
Value | Meaning | Fallback |
| ACP v1 over | none |
| ACP v1 over managed loopback | none |
| Headless | none |
Details: docs/ACP-TRANSPORTS.md.
Security boundary
No credentials in git, examples, or receipts
Local Grok CLI session only — bridge does not read
auth.jsoninto logsWebSocket: loopback only, process-local secret, redacted from logs
Deny-by-default tool permissions; no
--always-approve/bypassPermissionsWrite work in external worktrees; operator merges after review
See SECURITY.md.
Development
python -m pip install -e ".[test]"
python -m pytest -q
python -m compileall -q grok_delegate testsLicense
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseAqualityCmaintenanceStdio bridge for editors to connect to the GenieOS MCP server, enabling AI agents to interact with GenieOS via Streamable HTTP transport.Last updated6410MIT- AlicenseBqualityCmaintenanceAn MCP server that exposes the local Grok CLI to Codex for bounded repo work, reviews, rescue analysis, adversarial checks, session listing/export, and background job management while keeping Codex hidden context out of scope.Last updated12MIT
- Alicense-qualityBmaintenanceProvides a stdio MCP bridge for coding agents to query and record engineering knowledge locally, preserving debugging history, failed attempts, and verified solutions.Last updated1MIT
- Alicense-qualityBmaintenanceA stdio MCP server that lets Codex Desktop/CLI delegate implementation tasks to Claude Code CLI with workspace validation, Git status checks, and session resume capabilities.Last updated4MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zai-one/grok-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server