The Sourcegraph connector for Gemini Enterprise lets you search and import repositories from your Sourcegraph site.
Required permissions
To enable Gemini Enterprise to perform federated search using the Sourcegraph data store, you need to enable the following scopes:
| Scope | Purpose |
|---|---|
| openid | Allows the app to authenticate the user using OpenID Connect. |
| profile | Allows the app to view basic profile information of the authenticated user. |
| Allows the app to view the email address of the authenticated user. | |
| offline_access | Grants a refresh token so the app can access Sourcegraph when the user is not actively logged in. |
| mcp | Allows the app to connect via Model Context Protocol (MCP) to interact with Sourcegraph search and tools. |
For information on how to configure these scopes, see Set redirect URL and scopes.
Limitations
This section outlines known issues and limitations that may affect your use of the Sourcegraph data store.
- When creating a new app or adding a data store to an existing one, it's recommended to associate only one data store with actions belonging to a single connector type.
- Enforcing a VPC Service Controls perimeter on existing Sourcegraph data stores is not supported. To enforce VPC Service Controls, you must delete and recreate the data stores. For more information on VPC Service Controls and how to use actions after enabling VPC Service Controls, see Secure your app with VPC Service Controls.
- The Sourcegraph data store is supported only in the
global,us, andeulocations.
What's next
- To create and configure a connector with Sourcegraph, see Set up a Sourcegraph data store.