GitHub
Connect GitHub with a static OAuth app, then per-user Connect.
Auth: Static OAuth app (client id + secret) → each user Connect.
MCP: https://api.githubcopilot.com/mcp/
Admin: Set up
- Create an OAuth / MCP app at the provider (see notes below)
- In Brain open
/tools→ GitHub → Set up / App settings - Enter client id and secret (scope: this workspace or entire instance, depending on your role)
- Save
Deploy-time env fallback (optional):
| Variable | Purpose |
|---|---|
GITHUB_MCP_CLIENT_ID | OAuth client id |
GITHUB_MCP_CLIENT_SECRET | OAuth client secret |
Prefer UI Set up when possible; env remains a host-wide fallback.
Users: Connect
- Open
/tools→ GitHub → Connect - Approve access in the provider UI
- Enable the app for Agent-mode chats
Callback URL
{BRAIN_PUBLIC_URL}/api/connections/github/callbackGitHub OAuth App
Create an OAuth App at GitHub Developer settings:
- Homepage URL: your Brain origin
- Authorization callback URL:
{BRAIN_PUBLIC_URL}/api/connections/github/callback
GitHub MCP is required for remote PR / issue operations. For sandbox coding against a private repo, connect GitHub so clone credentials work — see Attached repo.
