Gemini Enterprise and Gemini CLI
Connect Gemini to the Quilr gateway URL shown on the MCP server card. For enterprise rollout, configure the gateway's user and tool permissions, add the connection in the correct Google administration surface, and test with an employee account before enabling it for the wider team.
Documentation checked: 20 October 2026. The Lucidchart OAuth URLs and public client ID below were checked against the deployed gateway. The google-adk requirement was observed in that Gemini deployment. Other steps describe Google's current documentation, not a claim that every edition has passed a live interoperability test.
Choose the Google product
The Gemini app at gemini.google.com has a separate custom-app feature. Google's current eligibility excludes work/school accounts, so do not use its personal-account instructions as an enterprise deployment procedure. See Gemini Apps eligibility and Business-edition availability.
Prepare the gateway
- Install the MCP and configure its upstream authentication in Quilr. Grant the intended users/groups access to the server and approved tools.
- Copy its full Quilr gateway URL, including
/mcp. Use the gateway URL throughout this setup. - Confirm that Google's hosted runtime can reach the endpoint over HTTPS with a publicly trusted certificate and Streamable HTTP. A URL reachable only through an employee's VPN is insufficient for this setup.
- Allow the actual runtime in Quilr as described below.
For several connectors through one URL, use OneMCP and its matching OAuth values. Do not mix a direct MCP URL with OneMCP's authorization/token endpoints or client ID. OAuth-passthrough servers require their discovered provider-specific registration instead of the public-client example below.
Allow the Gemini runtime in Quilr
The Gemini connection in this deployment needed google-adk allowed. Turning on the built-in Gemini agent alone was insufficient because its keyword is gemini.
- Open Settings > AI Gateway > MCP Gateway > Allowed Agents.
- Choose Add agent.
- Enter Gemini Enterprise / Google ADK as the name and
google-adkas the User-Agent keyword, then choose Allow agent. - Expand the custom agent and enable the intended MCP, such as Lucidchart.
- Reconnect Gemini or start a new session, then retry discovery and a tool call.
If the MCP Gateway Policy Engine is enabled, configure and publish the corresponding agent rule there. Confirm the observed client identity in gateway logs; the Google ADK framework, Gemini CLI, and other Google surfaces need not all send the same header. See Allowed Agents.
OAuth values for the Lucidchart example
Use these values only for the lucidchart endpoint on this deployment. For another MCP, copy its actual path and confirm its discovery and registration responses; a display name is not necessarily its URL slug.
The live discovery document advertises S256. Registration at /lucidchart/oauth/register returned gateway-lucidchart with token_endpoint_auth_method: none. Its client ID is public configuration, not a password.
PKCE and Basic Auth are separate settings. Enable PKCE; do not enable Basic Auth for this public client. The client sends its public client_id and PKCE code_verifier in the token request body. The authentication reference covers other paths and the current gateway enforcement limitations.
Google's setup documentation lists a client-secret field, and some Gemini Enterprise flows require a value. This Quilr registration does not issue one. Leave it empty where supported; if the form refuses that, confirm compatibility for the specific edition and deployment before continuing. Do not paste an upstream Lucidchart secret, invent a placeholder, or enable Basic Auth to satisfy the field. Google's documented placeholder for Looker is provider-specific.
Do not request extra scopes or a refresh grant just to satisfy a form. Follow the endpoint's discovery and the gateway token-lifecycle limitations; upstream refresh support does not imply that the MCP client receives a refresh token.
Configure Gemini Enterprise in Google Cloud
Administrator prerequisites
The configuring administrator needs Discovery Engine Editor (roles/discoveryengine.editor) on the target project. A policy administrator must also allow custom MCP data-store creation. Where the project's VPC Service Controls or organization-policy enforcement requires egress/data-source restrictions, allow custom_mcp and the exact MCP, authorization, and token hostnames. All three are mcpgateway.quilrai.com in the example. Follow Google's organization-policy prerequisites for the project's enforcement conditions.
Add and enable the connection
- In Google Cloud, open Gemini Enterprise > Data stores > Create data store.
- Select Custom MCP Server, then Add MCP server.
- Select OAuth 2.0, enter the full MCP URL, authorization URL, token URL, and client ID above, and handle the secret field as described above.
- Enable PKCE and leave Use HTTP Basic Auth unchecked for this public-client registration.
- Use Google's exact OAuth redirect URI,
https://vertexaisearch.cloud.google.com/oauth-redirect, wherever client registration or redirect validation requires it. This is the client's redirect, not Quilr's upstream/oauth/callback. - Choose Verify Auth, complete company sign-in, then Continue. In Configure your data connector, select the region, enter the data-store name, and choose Create. Wait for its status to become Active.
- Open the data store's Actions, reload the available tools, and enable only the approved actions. Actions start disabled.
- Open Apps > your app > Connected data stores > Add existing data stores and attach the new data store.
These steps follow Google's Custom MCP Server setup and app-connection walkthrough. Creating or attaching the data store does not authenticate every employee; test each user's sign-in and upstream connection requirements.
Configure Gemini Enterprise - Business edition
Business edition requires a team administrator. It uses a different administration surface and is currently documented as a pre-GA feature:
- Open Settings & help > your team > Manage team > Connected apps.
- Select Add MCP Server, enter the server name and gateway URL, and choose OAuth.
- Supply the applicable authentication settings, verify the connection, and add it.
- Enable the connection; newly added connections start disabled.
- Have a pilot employee connect and run an approved read-only operation.
Use the fields exposed by that edition. Google's documented redirect URI is also https://vertexaisearch.cloud.google.com/oauth-redirect; supply it wherever client registration or redirect validation requires it. See Google's Business-edition instructions.
Gemini CLI
Gemini CLI has its own local MCP configuration. It does not inherit a Google Cloud data store or Business-edition connection.
For the example direct endpoint:
gemini mcp add --scope user --transport http lucidchart https://mcpgateway.quilrai.com/lucidchart/mcp
gemini
Inside Gemini CLI, run:
/mcp auth lucidchart
/mcp
Complete browser OAuth and inspect server status and tools. The CLI supports discovery and dynamic registration; let the gateway register its public client. Distribute the endpoint definition, not an administrator's tokens. Verify the CLI's actual User-Agent separately from the hosted Enterprise runtime. See Gemini CLI MCP configuration.
Validate before rollout
- Use a normal employee account to complete fresh authentication and confirm initialization and tool discovery.
- For a direct MCP, inspect that server's tools and run one approved read-only operation. For OneMCP, list available connections, discover the intended tool, then call it.
- If Quilr requests upstream sign-in, complete it as the same employee and retry.
- Confirm gateway logs show the expected user, backend, client identity, and allowed result.
- Test a second employee with different permissions and verify that excluded tools/users stay blocked.
- Restart or reconnect the client and repeat the read. In Gemini Enterprise, confirm the tool is enabled in Actions and the data store is attached to the intended app.
Use the shared validation and troubleshooting guide to record the client version, timestamps, discovery metadata, and redacted errors. An Active data store or successful sign-in alone does not prove a tool can run.