Overview
Tool catalogue
GitHub tools are surfaced through the MCP runtime (POST /api/v1/mcp/:serverId) and the HTTP chat endpoint (POST /api/v1/mcp/:serverId/chat). In router mode the model uses SEARCH_TOOLS to discover the right slug at runtime — you don’t bind a fixed REST resource ahead of time. The catalogue covers:
Discover the full list at runtime:
SEARCH_TOOLS({query: "pull request review"}) and stream the matched slugs back.
Connect setup
GitHub uses OAuth 2.0 against a GitHub-registered OAuth App (not the GitHub App flow). One app per platform is enough — your end users supply their own GitHub credentials by going through the consent screen.1
Register a GitHub OAuth App
Go to github.com/settings/developers → OAuth Apps → New OAuth App. Set the Authorization callback URL to:Copy the Client ID and generate a new Client Secret.
2
Required OAuth scopes
The default scope set requested at consent time:
repo— repo read/writeread:org— read org membership and teamsuser— read profile + emailgist— manage gistsworkflow— manage GitHub Actions workflowsnotifications— read user notificationsread:packages— download packages
3
Connect via the widget
The end user opens the Connect widget, picks GitHub, and is redirected to GitHub’s consent screen.
Usage
Through the chat endpoint (recommended)
GITHUB_CREATE_A_PULL_REQUEST, executes it with the connected user’s token, and streams the result back as SSE.
Direct MCP JSON-RPC (Claude Desktop / Cursor / custom MCP clients)
tools/call JSON-RPC method.