Connecting with Google Gemini Enterprise
You can connect to Google Gemini Enterprise with the AtScale MCP Server.
Prerequisites
Before you can configure a connection to Gemini Enterprise, verify you meet the following requirements:
- The AtScale MCP server is enabled for your AtScale instance.
- You have either the
adminorapplication_adminrole assigned in the Identity Broker. - Your AtScale instance is reachable from the public internet. Gemini Enterprise is a Google-hosted SaaS product and cannot reach a privately-networked AtScale endpoint.
- The endpoint serves a publicly trusted TLS certificate with a complete chain. Self-signed certificates, private CA certificates, or incomplete chains will prevent the OAuth/MCP handshake from completing.
- The GCP org policy constraint
constraints/discoveryengine.managed.disableCustomMcpServerConnectoris set toNot Enforcedfor your project. By default, Google Cloud blocks the creation of custom MCP server connectors at the org level. A GCP org admin needs to override this constraint for your project before you can create the data store. If they do not, you will see anOperation denied by org policy errorwhen creating the connector. For more information, see Override the organization policy for Custom MCP data stores in the Gemini Enterprise documentation. - You have the Discovery Engine Editor IAM role (
roles/discoveryengine.editor). This is required to create a data store for the AtScale MCP Server.
Add a Gemini Enterprise data store for the AtScale MCP Server
First, you must create a Gemini Enterprise data store for the AtScale MCP Server. To create the data store:
-
Obtain the
atscale-mcpclient's credentials from the Identity Broker:-
In Design Center, in the sidebar, click Security. The Identity Broker opens.
-
In the sidebar, click Clients.
-
Click the
atscale-mcpclient. -
Go to the Credentials tab and copy the Client Secret.
ImportantDo not regenerate the Client Secret.
-
-
Log in to Gemini Enterprise and navigate to Data Stores.
-
Click + Create data store.
-
Search for and select Custom MCP Server.
-
Click Add MCP Server.
-
On the MCP Server Configuration page, in the Authentication settings section, complete the following fields:
-
MCP Server URL: Enter
https://<atscale_url>/mcp.This endpoint must use HTTPS. Gemini Enterprise only supports the
StreamableHTTPtransport, and not the older SSE transport. Confirm your AtScale MCP Server endpoint servesStreamableHTTPat the/mcppath. -
Authorization URL: Enter
https://<atscale_url>/auth/realms/atscale/protocol/openid-connect/auth.This points to the AtScale realm in the Identity Broker. This is the standard OAuth2/OIDC flow exposed by the Identity Broker, with
atscale-mcpas the registered client.Only enter the base URL. Do not append query parameters. Gemini Enterprise automatically appends standard OAuth parameters (such as
client_id,redirect_uri, andscope). If you need extra parameters (such asaccess_type=offline), define them in the Authorization URL Parameters field. -
Token URL: Enter
https://<atscale_url>/auth/realms/atscale/protocol/openid-connect/token.This points to the AtScale realm in the Identity Broker. This is the standard OAuth2/OIDC flow exposed by the Identity Broker, with
atscale-mcpas the registered client. -
Client ID: Enter
atscale-mcp. -
Client Secret: Enter the
atscale-mcpclient secret you copied above. -
Scopes: Enter
openid.
-
-
Click Login and sign in with AtScale.
-
Click Continue.
-
Under Advanced options, enter an MCP Server Description.
-
(Optional) In the Instructions field, add any extra instructions you want to include.
-
Click Continue.
-
Select a Location (multi-region) and give the data store a name.
-
Click Create.
-
Wait for the data store's status to move from Creating to Active before continuing to the next section.
Reload and enable the AtScale MCP Server's custom actions
Once the data store is created, you need to reload and enable the AtScale MCP Server's custom actions directly. This ensures Gemini Enterprise picks up the MCP Server's tools.
-
Open the connector console for your data store.
-
In the sidebar, navigate to Data Stores and select your AtScale MCP Server data store.
-
In the sidebar, click Actions.
-
Click Reload custom actions. This re-queries the AtScale MCP Server's
tools/listendpoint and lists all available tools. -
Select the MCP Server tools you want available to the assistant and click Enable actions.
NoteAtScale recommends enabling all available tools, as the agent requires the full tool workflow in order to work correctly. For more information, see the MCP Server Tools Reference.
Connect the data store to a Gemini Enterprise app
Next, you must create a Gemini Enterprise app and connect it to your AtScale MCP Server data store. For instructions, see Create an app and Connect a data store to app and authorize Gemini Enterprise in the Gemini Enterprise documentation.
Verify the connection
Finally, you should verify your connection:
-
Confirm that the status of the AtScale MCP Server data store shows Active, and not Creating or an error state.
-
Confirm that your Gemini Enterprise app is connected to your AtScale MCP Server data store:
- Open your Gemini Enterprise app.
- Below the chat input, click Manage your data.
- Confirm your AtScale MCP Server connection shows as enabled and authorized. If it's listed but disabled, or shows an authorization/login prompt, the app will not be able to connect to AtScale even if everything else is configured correctly.
-
Ask a simple, AtScale-specific question to confirm everything is properly connected. For example, "What AtScale models are available?"
If the app responds with real model/catalog names, your connection is working and you can begin asking business questions.
If you receive a generic answer containing no AtScale-specific content, check the following:
- You entered the Authorization URL and Token URL correctly, and the
atscale-mcpclient secret hasn't rotated. - The AtScale MCP Server's custom actions are loaded and enabled.
- Your Gemini Enterprise app is connected to your AtScale MCP Server data store.