We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/docfork/docfork-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
github.mdx•1.69 KiB
---
title: GitHub
description: Connect GitHub to index and search private repository documentation.
---
Connect GitHub in the Integrations dashboard to index and search documentation from your private repositories. Your agent can then use that documentation via [Cabinets](/core/cabinets) and `query_docs`.
## Integrations page
Go to [app.docfork.com/integrations](https://app.docfork.com/integrations) to connect GitHub. The page shows your current GitHub connection and lets you add or remove integrations.
## Connecting GitHub
You can connect GitHub in two ways:
- **GitHub App** — install the Docfork app on your organization or personal account. Recommended for org-wide access and automatic repository selection.
Repository access and purpose is to clone our code and index documentation. Permissions the Docfork GitHub App needs:
| Permission | Access | Purpose |
| ---------- | ------ | ---------------------------------------- |
| Contents | Read | Clone repository and index documentation |
- **Personal Access Token (PAT)** — create a fine-grained PAT with `Contents: Read` on the repositories you want to index. Use when you need more control over scope or when the GitHub App is not available. PATs are stored encrypted in [Google Secret Manager](https://cloud.google.com/security/products/secret-manager).
## After connecting
Once GitHub is connected:
1. Index private repositories via [libraries](/getting-started/private-repositories) and link them to your integration
2. Add those libraries to [Cabinets](/core/cabinets) to further scope your agent
3. Your agent receives docs from both the public catalogue and your private libraries in your workspace