Connect Gemini Enterprise

Gemini Enterprise connects to Maximizer as a custom MCP server data store. A Google Cloud administrator adds it once to your Gemini Enterprise app. Each user then signs in with their own Maximizer account the first time.

Before you start, check what you need on the overview page.

✅

For Gemini Enterprise you also need

  • A Gemini Enterprise app managed in the Google Cloud console, which your users already use.
  • A Google Cloud administrator with the Discovery Engine Editor role on the project.
  • Custom MCP server data stores allowed in your Google Cloud organization. An Organization Policy Administrator turns off the constraint that disables them.
  • Access control set up for your Gemini Enterprise project, with the identity provider your users sign in with.

Add the data store (administrators)

  1. In the Google Cloud console, open Gemini Enterprise for your project, go to Data stores and choose Create data store.

  2. Under MCP servers, on the Custom MCP Server card, choose Add MCP server.

  3. In MCP Server Configuration, leave Route egress through Agent Gateway cleared.

  4. Under Authentication settings, select OAuth 2.0 and enter these values:

    FieldValue
    MCP Server URLhttps://mcp.maximizer.com/mcp
    Authorization URLhttps://auth.maximizer.com/v1/authorize
    Authorization URL Parametersempty
    Token URLhttps://auth.maximizer.com/v1/token
    Client IDmaximizer-gemini-enterprise
    Client Secretempty
    Scopesdata
    Enable PKCE Supportselected
    Use HTTP Basic Authenticationcleared
  5. Choose Continue under the values, then Continue at the bottom of the page.

  6. In Configure your data connector, set Multi-region to the same location as your Gemini Enterprise app, enter Maximizer as the Data connector name, and choose Create.

  7. Open the new data store, go to Actions and choose Reload custom actions. Complete the Maximizer sign-in in the window that opens.

  8. Select the Maximizer actions your users need and enable them.

  9. Go to Apps, open your Gemini Enterprise app, then Connected data stores, and choose Add existing data stores.

  10. Select the Maximizer data store and choose Connect.

Use Maximizer in Gemini

  1. Open your Gemini Enterprise app and start a new chat.
  2. Choose the connectors button in the message box, find Maximizer and choose Connect.
  3. Complete the Maximizer sign-in in the window that opens.
  4. Ask your question.

Gemini keeps you signed in from then on.

Troubleshooting

What you seeWhat it meansWhat to do
Custom MCP Server is not offered when creating a data storeYour organization policy disables custom MCP server data storesAsk your Organization Policy Administrator to turn off that constraint
Gemini asks you to configure access control before you can create the data storeYour Gemini Enterprise project has no identity provider yetSet up access control for the project, then create the data store
The data store shows "Actions for this custom MCP server are disabled"No Maximizer actions are enabled yetOn the data store's Actions tab, choose Reload custom actions, then enable the actions
The Maximizer sign-in completes but Gemini shows an errorThe data store is not connected to your Gemini Enterprise appIn Apps, open your app, then Connected data stores, and add the Maximizer data store
Sign-in stops with "PKCE with code_challenge_method S256 is required"Enable PKCE Support is not selected on the data storeSelect Enable PKCE Support in the data store's authentication settings
Sign-in stops with a message about the scopeThe scope is not exactly data, or extra authorization parameters are setSet Scopes to data and empty Authorization URL Parameters

For sign-in problems such as "Sign-in could not be completed (invalid_client)", see troubleshooting on the overview page.


Did this page help you?