GitHub Enterprise for specific Cursor team

Where does the bug appear (feature/product)?

Cloud Agent (GitHub, Slack, Web, Linear)

Describe the Bug

A GitHub Enterprise Server integration cannot be used by a newly created Cursor team.

The GitHub Enterprise app is configured at the organization level and is available to the existing/default team, but the same GitHub Enterprise instance cannot be configured or used from another team in the organization.

Although repositories from the GitHub Enterprise instance are visible when creating an Environment for the new team, creating the Environment fails because Cursor reports that the GitHub Enterprise instance is not configured for that team.

Steps to Reproduce

  1. Create a Cursor organization.
  2. Create an initial team in the organization.
  3. Configure a GitHub Enterprise Server integration for a GHES instance (e.g. github.example.ghe.com).
  4. Verify that the GHES integration works for the initial team.
  5. Create a second team in the same Cursor organization.
  6. Go to the second team’s Integrations & MCP settings.
  7. Open the GitHub Enterprise integration.
  8. The configured GHES instance is not available for selection and the integration shows “No apps”.
  9. Go to the second team’s Cloud Agents and attempt to create a Cloud Agent. Repositories from the GHES instance cannot be selected.
  10. Go to the second team’s Environments and create a new Environment.
  11. The repositories from the GHES instance are visible and can be selected.
  12. Attempt to create the Environment.
  13. Environment creation fails with HTTP 400 and the following error:

Git enterprise instance not found for hostname: github.example.ghe.com. Please set up the enterprise instance in Settings.

Please note that we’ve also tried to delete and re-add the GHES integration to our newly created team, but doing so always only displays it in the original team, and makes it available for use there. Never in our newly created team.

Expected Behavior

A GitHub Enterprise Server instance configured for a Cursor organization should be usable by any team that has been granted access to that integration.

The second team should be able to:

  • Configure/select the existing GitHub Enterprise integration.
  • Select repositories from the GitHub Enterprise instance for Cloud Agents.
  • Create Environments using repositories from that GitHub Enterprise instance.

If GitHub Enterprise integrations are intentionally team-scoped, there should be a way for an organization administrator to explicitly assign the existing GHES instance to another team.

Operating System

Other

Version Information

Cursor configuration in the Browser

Additional Information

The behavior appears inconsistent across the UI:

  • The GHES application exists and is visible under the organization’s app management.
  • The GHES integration works correctly for the original team.
  • In the new team’s integration settings, GitHub Enterprise shows “No apps” even though the application exists.
  • When creating an Environment in the new team, repositories from the GHES instance are nevertheless visible and selectable.
  • The failure occurs only when the Environment is actually created.

The resulting error specifically states that the GitHub Enterprise instance cannot be found for the hostname and instructs the user to configure it in Settings, even though the instance is already configured at the organization level and works for another team.

This suggests that the GHES instance configuration/registration is not being correctly resolved in the context of the new team’s Environment/Cloud Agent backend.

The issue is reproducible with a newly created team within the same Cursor organization.

Does this stop you from using Cursor

Yes - Cursor is unusable

I just found out that I have to update my home team to the newly created team BEFORE configuring the GitHub Enterprise.

So, assuming a new organization with one original team and one new team, and no GHES configurations, you should then update your home team FIRST (set it to the team where you want to use the GitHub Enterprise). After setting your home team, adding the GitHub Enterprise makes it available in your home team only. Updating the home team to another team after that causes the configuration to be invalid again.

It seems like a complex and hidden process.

I’d still expect to be able to connect to one GitHub Enterprise instance from multiple teams, though. So when I switch teams I should be able to create Cloud Agents and Environments from all teams for a single Enterprise, or at least specify from which teams the Enterprise should be available.

Hey @peter-beukema, thanks for the detailed report.

GitHub Enterprise Server connections are currently scoped to a single team rather than shared across the organization, and as yo’ve found, the setup flow associates a new registration with your default team.

I’ve flagged this to the team so that organizations can use a GitHub Enterprise connection across teams without this dance. Sorry for the trouble!