repobrain serve¶
Start the MCP server and optionally the GitHub webhook server.
Usage¶
Options¶
| Option | Default | Description |
|---|---|---|
--mcp-port N |
8766 |
MCP server port |
--webhook-port N |
8765 |
Webhook server port |
--mcp-only |
— | Start MCP server only (no webhook) |
--repo PATH |
. |
Repository to serve |
Claude Code Integration¶
Add to ~/.claude.json or your project's MCP config:
GitHub Webhook Setup¶
- In your GitHub repo: Settings → Webhooks → Add webhook
- Payload URL:
https://your-server:8765/webhook - Content type:
application/json - Secret: same as
REPOMIND_WEBHOOK_SECRETin.env - Events: Push, Pull requests
repobrain will automatically:
- Re-index changed files on push events
- Run blast radius analysis on pull_request open/sync events