Skip to main content

GitHub Cloud unified setup

Use unified setup to connect GitHub tools and make GitHub Cloud content searchable. Follow this guide when your connector shows Workspace → Connect → Set up indexing → Review setup.

GitHub Model Context Protocol (MCP) tools retrieve current information and perform supported operations through GitHub's MCP server. Indexed search uses a separate GitHub App installation and requires a crawl. A successful tools connection doesn't mean that indexing is configured or that search results are ready.

Prerequisites​

Before you start:

  • Confirm that you can manage connectors and tools in the Glean Admin console.
  • Use an organization on github.com with the Standard license option in this setup. The interface describes this option as Free, Pro, or Teams plan. It doesn't support selecting Enterprise with GitHub Cloud.
  • Arrange permission to install GitHub Apps in the relevant organizations and grant access to the repositories you want to connect.
  • Confirm that the GitHub account installing the indexing app has a verified work email address that matches a domain associated with your Glean organization. Check the account's email settings.
  • If you use custom tools authentication, obtain permission to create and manage a GitHub App.

For GitHub Enterprise Cloud, use your existing indexing configuration or contact Glean Support for setup guidance. Don't select GitHub Server for an organization hosted on GitHub.com. Self-hosted instances have separate guides: GitHub Enterprise Server and GitHub Server.

Configure the workspace​

Create the connector and choose its hosting type:

  1. In Admin console → Connectors, click Add connector and select GitHub.
  2. In Workspace, enter the connector Name.
  3. Under Hosting, select GitHub Cloud.
  4. Under License, keep Standard selected.
  5. Check these choices, then click Continue. You can't change Hosting or License after creating the connector.

Connect GitHub tools​

In Connect, choose Glean's managed app (Central) or your own app (Custom). Both options use OAuth to authorize each user's account, but the app you create in GitHub must be a GitHub App, not a classic OAuth App. The Create a custom OAuth app description in Glean refers to the authentication method.

Glean provides different apps for tools and indexing:

PurposeGlean-managed GitHub App
Run GitHub MCP toolsglean-github-app-oauth
Index GitHub content for searchglean-github-app

Install the tools app in each organization whose repositories users need to access. Authorizing a user account doesn't replace the organization-level app installation.

If Skip appears in Connect, you can click it to defer tools authorization and proceed to Set up indexing. You can return to Connect later. Skipping this step doesn't authorize any user to run GitHub tools.

Use Glean's managed GitHub App without creating an app or entering client credentials:

  1. In Connect, select Central.
  2. Open the installation page for glean-github-app-oauth.
  3. Review its requested permissions with your GitHub administrator.
  4. Install the app in each relevant organization and grant access to the required repositories. For an existing installation, check that it includes those repositories.
  5. Return to Glean, click Connect, sign in to GitHub, and authorize the app.
  6. Return to setup and wait for Glean to finish discovering and configuring tools.

Confirm the connection​

Glean advances to Set up indexing after tools authorization and discovery succeed. If Glean reports a connection or tool-sync error, resolve it and reconnect. A successful connection doesn't confirm that the app has permission to run every discovered tool.

Newly discovered MCP tools are on by default with default audience settings. Review those settings before rolling out access. See Manage GitHub tools.

Set up indexing​

This step requires a separate indexing app installation, whether you connected tools or clicked Skip. The instructions here use Glean's managed indexing app. If Set up indexing offers Central and Custom, select Central to follow these instructions. Your tools choice in Connect doesn't select the indexing app.

Install the indexing app​

Use the GitHub account with the verified work email from the prerequisites:

  1. In Set up indexing, click Install to open glean-github-app. Click View instructions beside Set up GitHub for indexing if you need the in-product installation instructions.
  2. In GitHub, click Install or Configure.
  3. Select the organization you want to index.
  4. Choose All repositories or Only select repositories. Grant access to every repository Glean should index.
  5. Click Install & Authorize, then return to Glean.

The indexing app uses read-only permissions. Its repository access determines what Glean can crawl. Glean's inclusion and exclusion rules can narrow that set, but they can't grant access to repositories that the app can't read. See API endpoints and permissions.

Save the indexing configuration​

Enter the organization and validate the installation:

  1. In GitHub organization name, enter the organization name, not its full URL. For https://github.com/example-org, enter example-org.
  2. Click Continue.
  3. Resolve any validation errors before continuing. Check that you installed the indexing app in the organization you entered and that the installing account has the required verified work email.

Glean validates the installation and access to organization content before advancing to Review setup. Don't use successful MCP authorization as a substitute for this check.

Review setup and begin indexing​

Choose what Glean indexes and who can access connector content before starting the crawl:

  1. (Optional) Open Data access to configure Inclusion rules, Exclusion rules, or additional crawl settings. Use full repository names such as example-org/example-repo for repository rules. Save your changes. See Crawling restrictions.
  2. In User access, choose the audience:
    • All users: Make connector content available to your organization, subject to each user's GitHub permissions.
    • Test group only: Limit access to a test group.
    • None: Keep connector content unavailable to users in Glean.
  3. Click Begin indexing.

User access doesn't grant new GitHub permissions or configure tool audiences. Manage tools separately in the connector's Tools tab.

If Skip for now appears, it defers crawling. It doesn't bypass Set up indexing, uninstall the indexing app, or disconnect tools. Search results require Glean to crawl and index the content.

Manage GitHub tools​

Review tools after connecting and whenever you refresh the tool list. If you skipped Connect, complete that step before managing tools.

  1. Go to Admin console → Connectors and open your GitHub connector.
  2. Open Tools and review Read tools and Write tools, if shown.
  3. If tools are listed, click Advanced settings.
  4. Configure each available section separately:
    • Chat: Choose which tools users can invoke in Glean and set their access scope.
    • Agents: Choose which tools creators can add or configure in agents and set the creator access scope.
    • Glean MCP Server: Choose which tools are available through Glean MCP servers and set their access scope.
  5. Click Save.

The Agents access scope controls creators, not the execution access of people running an existing shared agent. GitHub still limits each tool operation to the resources and permissions available to both the user and the app. See Managing tool access.

Click Refresh under Refresh tools to update the tool list, then review the settings again. Newly discovered MCP tools are on by default. Advanced settings appears only when Glean has discovered tools, and the available sections depend on the tools and features in your workspace. If no tools appear, check the connection and app installation rather than looking for audience controls.

Authorize users​

An administrator's connection authorizes only that administrator's account. Each user must authorize their own GitHub account to use tools. Glean prompts the user to Connect when they request a tool that needs authorization.

Indexed search also needs a mapping between each user's GitHub identity and Glean account. For private repository access, ask users to go to Glean → Settings → Connectors → GitHub and click Authorize if they haven't already authorized the connector. Glean applies the identity mapping after an identity crawl. Existing authorization doesn't need to be repeated just because an admin opens setup again.

Installing an app, authorizing a user, and selecting tool audiences serve different purposes. Verify search and tools separately rather than assuming that one successful test proves both work.

Verify access​

Use a test account before opening access to a wider group.

After Glean has indexed content:

  1. Check the connector's indexing status and resolve any errors.
  2. Confirm that the test user is included in User access, has authorized GitHub for identity mapping, and can open the target repository in GitHub.
  3. Search for content from a repository that the indexing app can access and that your crawl rules include.
  4. Confirm that the user can find permitted content and can't find content from a private repository they can't access.

Verify GitHub MCP tools​

Test a read operation independently of indexed search:

  1. Choose a repository that both the test user and the configured tools app can access.
  2. In Glean or an agent where a GitHub read tool is enabled, ask for information that tool can retrieve, such as a specific pull request.
  3. Have the user click Connect if prompted, sign in with their own GitHub account, and approve access. Return to Glean and retry the request if needed.
  4. Confirm that Glean ran the GitHub tool, not just a search, and compare the response with GitHub.
  5. Repeat with a private repository the user can't access and confirm that the tool doesn't return its content. Test a repository in each connected organization.

If a tool can't access a repository that search can find, check the tools app installation, repository selection, user authorization, and permissions for that operation. The indexing app doesn't grant access to MCP tools. Test write operations only in a repository where you have approval to make changes.

See also​