Skip to main content
Gemini Enterprise is Google’s organization-managed assistant in the Google Cloud console (formerly Agentspace). It reaches external systems through custom MCP server data connectors. Point that connector at a TrustGate MCP application and Gemini Enterprise sees only the tools in that application’s toolkit. Every tools/call and tool result is evaluated by TrustGuard and recorded in TrustGuard Activity under the signed-in user. Register TrustGate as the only custom MCP server in the app, and put the real MCP servers — Linear, internal APIs, and the rest — behind it. Administrators can disable native Google connectors so those tools are not used outside the gateway. This path does not cover plain chat with no tools, or traffic that goes through native Google connectors. Google Model Armor is Google’s own screening for Gemini Enterprise and is complementary: it does not replace TrustGuard on MCP tool traffic. Custom agents you build with Google’s Agent Development Kit (ADK) are a separate path. They can call TrustGuard directly; this page covers the managed assistant and its custom MCP connectors.

NeuralTrust controls

Before you start

Create the TrustGuard policy in Observe mode. Observe records decisions in Activity without enforcing them. Review the results, then switch the policy to Enforce. See Policies.
1

Register the Entra application

In the Microsoft Entra admin center, under App registrations, select New registration. Choose Accounts in this organizational directory only. You can leave the redirect URI empty for now. Copy the Application (client) ID and the Directory (tenant) ID.Then configure it:
  1. In Expose an API, set the Application ID URI to api://<client-id> and add a scope named mcp.access, consentable by admins and users, enabled. The full scope identifier is api://<client-id>/mcp.access.
  2. In Manifest, inside the api object, set "requestedAccessTokenVersion": 2.
  3. In Authentication, add a Web platform with this redirect URI:
  1. In Certificates & secrets, create a client secret and copy its Value. It is shown once. The Secret ID is not the secret.
The token version matters. The default issues v1 tokens, whose issuer is https://sts.windows.net/<tenant-id>/ rather than the v2 issuer the trust anchor expects.Do not register TrustGate’s /oauth/callback URI. Gemini Enterprise talks to Entra directly; TrustGate only validates the token it presents.
2

Add the trust anchor and MCP application

Go to Settings → Agent Gateway → Machine identity and select Add trust anchor.Leave client credentials empty. TrustGate validates a token Entra signed; it does not broker the login, so there is no authorization server to configure here. Optionally pin JWKS URL to https://login.microsoftonline.com/<tenant-id>/discovery/v2.0/keys.Then go to Access → Applications → New application. On General, add the MCP servers and assign the toolkit. On Auth, set authentication to Identity provider and select the trust anchor. Do not attach an OAuth2 broker auth.Optionally set Allowed client IDs to <client-id>. An empty list admits any client the provider verifies; pinning it restricts entry to this Entra app.Copy the URL from the Connect tab instead of assembling it manually:
On SaaS, {mcpHost} is {workspace}.mcp.neuraltrust.ai.Bind a TrustGuard policy to the application so tool traffic is evaluated. In the policy, include Data Loss Prevention on Input (and Output, if you also want results scanned) and Indirect Prompt Injection on Output, which is where MCP tool results arrive. See Where each detector applies. Start in Observe, then switch to Enforce.
3

Create the custom MCP connector

Create the data store from the app. Google does not let you attach a standalone custom MCP data store afterwards.In the Google Cloud console, open Gemini Enterprise, select the app, and go to Connected data stores. Select New data store, search for Custom MCP Server, and add it.Leave Route egress through Agent Gateway off. That option is Google’s private-network egress, not NeuralTrust TrustGate. TrustGate’s MCP endpoint is reached over the public internet.Select OAuth 2.0 and fill in:Scopes are space-separated. offline_access is required so Entra issues a refresh token; without it the connector fails after the access token expires, typically in about an hour.Enter only the base authorization URL, with no query parameters. Verify the authentication if the console offers it, then continue. Set the connector location to global (or whatever matches the app), name the data store, and select Create.When the data store is Active, open its Actions tab. Tools are imported but disabled by default. Enable the ones users should have, up to Google’s limit of 100 at a time.
4

Authorize and verify

In the Gemini Enterprise web app, authorize the connector and complete the Microsoft sign-in and consent. Then ask for something that uses a tool, for example what Linear issues do I have.Confirm in TrustGuard Activity:
  1. A row appears for the tool call, under the signed-in user’s email.
  2. The application is the TrustGate MCP application you created.
  3. TrustGuard latency is on the order of 30 ms, and the integration is Evaluate API.
Then check that enforcement holds.Data loss prevention. In a new chat, ask:
TrustGuard blocks the tools/call. Gemini Enterprise reports Request blocked by security policy: pii. In Activity, the blocked row shows a DLP or PII detection on the request.Indirect prompt injection. The injection has to arrive through a tool result. Create a record in a connected system, in a space you control, with an innocuous title and an instruction in its body:
Ask Gemini Enterprise to read and summarize that record. In TrustGuard Activity, the tool response is blocked with an Indirect Prompt Injection detection, and the assistant cannot follow the instruction. Delete the test record afterwards.
Do not test indirect injection by typing the instruction into the Gemini Enterprise chat. The assistant may refuse it before calling a tool, and nothing reaches the gateway, which tells you nothing about your policy.

Authentication flow

Gemini Enterprise runs an authorization-code flow with PKCE against Microsoft Entra for the registered client, receives a token whose audience is api://<client-id>, and presents it to the MCP endpoint. TrustGate validates issuer, audience and signature against the trust anchor, and reads the user from the oid claim.

Troubleshooting

The Activity check is the first one to make. Confirm the call arrived before changing anything in TrustGate.