GitHub docs to your agent
Import one repository’s documentation, check a cited answer, then let your coding agent use it through MCP.
By the end, your coding agent answers questions from your repository’s documentation, with the same access you have. Allow about ten minutes.
Connect GitHub
Choose the workspace, open Library → Add knowledge → Connect a source → GitHub, and approve the HeyBrain app on GitHub. If GitHub asks which repositories to allow, pick only the ones you need.
Choose what to import
Select one repository. For a documentation-only start, keep Documentation on, turn off Issues and Pull requests, and set the documentation folder, for example
docs. The root README is always included; source code never is.Sync and check
Leave automatic updates off for now and choose Save and sync. When the sync report is done, ask Ask HeyBrain about a fact from those docs and open the citation.
Connect your agent
Open HeyBrain MCP in the same workspace, choose your tool and operating system, generate a key and run the setup command it shows. For Codex on macOS it looks like this:
Setup command (Codex, macOS) curl -fsSL https://api.heybrain.io/agent-keys/connect.cjs | node - --key REPLACE_WITH_YOUR_KEY --mcp-url https://mcp.heybrain.io/mcp --agent codexThen fully quit and reopen the tool. Guides for each tool are under Connect an agent.
Ask your agent
“Use HeyBrain to find how we deploy.” The agent searches your imported docs and cites them. When the docs change, choose Sync now or turn on automatic updates.
About GitHub’s permission: The GitHub app can read code, issues, metadata and pull requests in the repositories you allow on GitHub. HeyBrain’s own selection limits what it imports, not what GitHub allows. To withdraw the app’s access, uninstall it in GitHub’s settings as well.
Last checked against the product on November 25, 2026.