grok-mcp-bridge
by weyne-max
README.md
# grok-mcp-bridge
Zero-dependency **Model Context Protocol (MCP)** stdio server (`JSON-RPC 2.0`) that brings **xAI Grok** (`grok-4-latest`) directly into terminal and IDE coding agents for independent second-opinion diff audits and systems architecture verification.
## Features
- **`grok_review_diff`**: Feed staged or branch `git diff` patches to Grok for an adversarial security, race-condition, and schema-migration audit before merging.
- **`grok_reason_architecture`**: Consult Grok on distributed state machines, database indexing, and multi-agent failure modes from any MCP-compatible editor or CLI.
- **Zero Dependencies**: Pure Node.js 20+ ESM over `stdin`/`stdout`.
## MCP Configuration
```json
{
"mcpServers": {
"grok": {
"command": "node",
"args": ["/path/to/grok-mcp-bridge/src/cli.mjs"],
"env": {
"XAI_API_KEY": "xai-..."
}
}
}
}
```
## Run Tests
```bash
node --test tests/*.test.mjs
```
## License
MIT © James Weyme ([@kinchuan_](https://x.com/kinchuan_))
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues