GitHub
Index github.com or GitHub Enterprise repositories into organization and personal knowledge bases, and use GitHub agent tools
GitHub
MCintelligentplus connects to GitHub through three current surfaces:
- Organization GitHub knowledge bases — an organization authenticates one or more GitHub targets (github.com or a GitHub Enterprise Server root) and creates knowledge bases that index selected repositories.
- GitHub agent tools — the same organization authentication lets the agent read code and act on issues with approval; organizations can also allow members to connect their own accounts.
- Personal GitHub — a member can connect their own GitHub or GHES account and index repositories for personal use.
The old v2 personal connector and App-based organization connector are retired. Existing connections remain manageable, but their indexing has stopped; documents indexed earlier stay searchable.
Set up an organization GitHub knowledge base
- Create a GitHub authentication. As an organization owner, open Organization → Integrations → Credentials (GitHub auth) and add one entry per target:
- Server URL — leave blank for github.com, or enter the GitHub Enterprise Server HTTPS root.
- Authentication — a personal access token with
repoandread:org, or an organization-registered OAuth app (client ID, client secret and the callback URL shown on the page). - Test the entry before saving.
- Create the knowledge base. Open Organization → Integrations → Knowledge → GitHub Enterprise KB → New:
- Choose the authentication entry.
- Enter repositories, one
owner/repoper line. - Choose document types: Files, Code, Pull requests, Issues, Comments, Security advisories, Wiki.
- Choose a sync schedule (every 5 minutes to weekly; daily by default).
- Create and sync. The first run starts after creation; use Sync now on the KB page for later runs. The page shows the last indexed time and the run outcome.
Each KB is a dedicated organization knowledge base; deleting it removes its workspace, documents and attachments.
What gets indexed
- Code and documentation files (text files; binary files and files over 5 MB are skipped)
- Issues, pull requests and comments
- Security advisories
- Repository wikis, when selected
- Each run skips unchanged files by blob SHA
GitHub agent tools
Use the GitHub Enterprise card under Organization → Integrations → Apps to:
- Let the agent read repository code (read-only)
- Run issue actions (create, comment, close, reopen, add or remove labels) with approval
- Choose whether GitHub actions are allowed
Personal GitHub
Personal GitHub connections are not available in the UI right now. Existing connections and their indexed documents are kept, and the feature may return later.
Legacy connectors
The old Connectors → GitHub v2 personal connector and the App-based organization connector are retired. Existing rows remain manageable, but new indexing runs are refused and periodic sync is disabled; previously indexed documents remain searchable. Use an organization GitHub KB for new work.
Troubleshooting
- Permission errors — ensure the token or OAuth grant has
repoandread:org; for GHES, confirm the HTTPS server root and certificate trust. - Repository not found — use
owner/repo, and ensure the credential can see private repositories. - GHES on a private network — an administrator must allow private GitHub endpoints in the network settings.
- No documents — check the selected document types; binary files and files over 5 MB are skipped.
- A retired connector stops updating — expected; create an organization GitHub KB instead.