NeuralTrust has been recognized by Gartner → Read more
Back

TrustGuard Now Works With Gemini Enterprise

Roger Howroyd December 3, 2026
Share
TrustGuard Now Works With Gemini Enterprise

Last updated: December 3, 2026 · Reviewed by Alessandro Pignati

How do you secure Gemini Enterprise when it calls external tools through MCP? Register a NeuralTrust TrustGate MCP application as the only custom MCP server in your Gemini Enterprise app. TrustGate validates the token your identity provider issued, exposes only the tools you assign, and TrustGuard evaluates every tool call and every tool result. The integration was built by Alessandro Pignati, Lead AI Security Researcher at NeuralTrust, and is documented in the Gemini Enterprise integration guide.

TL;DR

  • Gemini Enterprise reaches outside systems through custom MCP server connectors. Point that connector at TrustGate and the assistant sees only the tools in one application's toolkit.
  • TrustGuard evaluates tools/call arguments and tool results, with Monitor, Block and Transform controls, and records each call under the signed-in user.
  • Setup uses Microsoft Entra ID (Okta follows the same pattern), a TrustGate trust anchor, an MCP application, a TrustGuard policy and a custom MCP data store in Google Cloud.
  • Start the policy in Observe mode, review Activity, then switch to Enforce.

At a glance: how the integration works

Quick Answer

What does the NeuralTrust integration for Gemini Enterprise do?

It puts TrustGate between Gemini Enterprise and your MCP servers. Users sign in with your identity provider, TrustGate exposes only the tools assigned to the application, and TrustGuard checks tool arguments and results. According to NeuralTrust's documentation, it can block sensitive data in a request and indirect prompt injection in a tool result.

ComponentRole in the integration
Gemini Enterprise custom MCP connectorSends tool calls to one MCP endpoint, the TrustGate application
Microsoft Entra ID or OktaIssues the user token that TrustGate validates
TrustGateExposes the MCP registries and tools assigned to the application, with application authentication and per-tool rate limits
TrustGuardEvaluates tools/call arguments and results against a policy: Monitor, Block or Transform
TrustGuard ActivityRecords each evaluated call under the user's identity

How we wrote this

This guide summarizes NeuralTrust's integration documentation and Google Cloud's documentation for Gemini Enterprise. We did not add new tests for this post. Use the official integration guide for exact field values.

Why MCP tool calls need their own control point

Google describes the custom MCP data store as a way to bring public and private tools into Gemini Enterprise, so your agents can reach business systems that standard connectors do not cover (Google Cloud, 2026). Each of those tools is a path in two directions:

  • Outbound: the arguments of a tool call can carry card numbers, bank details or personal data a user pasted into a prompt.
  • Inbound: the result of a tool call is untrusted content. A ticket, a document or a record can contain an instruction aimed at the assistant, which is indirect prompt injection.

Google also provides Model Armor, which screens prompts and responses in Gemini Enterprise (Google Cloud, 2026). NeuralTrust's documentation calls Model Armor complementary: it does not replace TrustGuard on MCP tool traffic. The integration covers the connector path, where tool arguments and results move between the assistant and your systems. For the wider risk, see MCP prompt injection and MCP security best practices.

What the integration covers and what it does not

In scopeOut of scope
Tool calls and tool results that pass through a custom MCP server connector pointing at TrustGatePlain chat with no tools
Real MCP servers (for example Linear or internal APIs) registered behind TrustGateTraffic that goes through native Google connectors
Per-user attribution of each call from the identity provider tokenCustom agents built with Google's Agent Development Kit (ADK), which are a separate path and can call TrustGuard directly

To keep tools from bypassing the gateway, register TrustGate as the only custom MCP server in the app. NeuralTrust's documentation notes that administrators can disable native Google connectors so those tools are not used outside the gateway. If you build agents with ADK, read Google ADK security.

Before you start

RequirementNotes
Gemini Enterprise appCreated in the Google Cloud console. The data connector location must match the app (the guide uses global)
Custom MCP organization policy overrideThe managed constraint constraints/discoveryengine.managed.disableCustomMcpServerConnector is enforced by default. An Organization Policy Administrator (roles/orgpolicy.policyAdmin) must override it on the project (Google Cloud, 2026)
Identity providerMicrosoft Entra ID or Okta. TrustGate validates a token your provider issued, and Google Identity tokens cannot be used for that
Entra rightsPermission to register an application in your tenant
TrustGate workspaceWith Agent Gateway provisioned and the MCP servers you want to expose already in the registry
Google rolesA Gemini Enterprise licence and roles/discoveryengine.user on every account that authorizes the connector (Project Owner alone is not enough), plus roles/discoveryengine.editor to create the data store

How to connect Gemini Enterprise to TrustGate and TrustGuard

The steps below follow the Entra setup in the documentation. Okta uses the same validation pattern.

1. Register the Entra application

In the Microsoft Entra admin center, create a new app registration for accounts in your organizational directory only. Copy the Application (client) ID and the Directory (tenant) ID, then configure it:

  • Expose an API: set the Application ID URI to api://<client-id> and add an enabled scope named mcp.access, consentable by admins and users.
  • Manifest: inside the api object, set "requestedAccessTokenVersion": 2. The default issues v1 tokens, whose issuer does not match what the trust anchor expects.
  • Authentication: add a Web platform with the redirect URI https://vertexaisearch.cloud.google.com/oauth-redirect.
  • Certificates and secrets: create a client secret and copy its Value, which is shown once. Do not register TrustGate's /oauth/callback URI, because Gemini Enterprise talks to Entra directly.

2. Add the trust anchor in TrustGate

Go to Settings, then Agent Gateway, then Machine identity, and add a trust anchor of kind Identity provider (JWT):

FieldValue
issuerhttps://login.microsoftonline.com/<tenant-id>/v2.0
audiencesapi://<client-id>
subject_claimoid

Leave client credentials empty. TrustGate validates a token Entra signed, and it does not broker the login. You can optionally pin the JWKS URL to https://login.microsoftonline.com/<tenant-id>/discovery/v2.0/keys.

3. Create the MCP application

Go to Access, then Applications, then New application. On General, add the MCP servers and assign the toolkit. On Auth, set authentication to Identity provider and select the trust anchor, and do not attach an OAuth2 broker. Optionally set Allowed client IDs to the Entra client ID, which restricts entry to this Entra app. Copy the URL from the Connect tab instead of assembling it by hand. On SaaS, the host takes the form <workspace>.mcp.neuraltrust.ai.

4. Bind a TrustGuard policy in Observe mode

Bind a TrustGuard policy to the application. Include Data Loss Prevention on Input (and Output if you want results scanned) and Indirect Prompt Injection on Output, which is where MCP tool results arrive. Create it in Observe mode so decisions are recorded in Activity without being enforced, review them, then switch to Enforce.

5. Create the custom MCP data store in Gemini Enterprise

Create the data store from the app, because Google does not let you attach a standalone custom MCP data store afterwards. In the Google Cloud console, open Gemini Enterprise, select the app, go to Connected data stores and add Custom MCP Server. Leave Route egress through Agent Gateway off: that option is Google's private-network egress, not NeuralTrust TrustGate, and TrustGate's endpoint is reached over the public internet. Select OAuth 2.0 and enter:

FieldValue
MCP Server URLThe URL copied from the Connect tab
Authorization URLhttps://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize (no query parameters)
Token URLhttps://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
Client ID and Client SecretFrom step 1 (the secret Value, not the Secret ID)
Scopesapi://<client-id>/mcp.access offline_access
Enable PKCE SupportOn
Use HTTP Basic AuthenticationOn (the default)

Scopes are space-separated. offline_access is required so Entra issues a refresh token, and without it the connector fails once the access token expires, typically in about an hour. Set the connector location to match the app, name the data store and create it.

6. Enable tools, authorize and verify

When the data store is Active, open its Actions tab. Tools are imported but disabled by default, so enable the ones users should have, up to Google's limit of 100 at a time. Then authorize the connector in the Gemini Enterprise web app, complete the Microsoft sign-in and ask for something that uses a tool, such as "what Linear issues do I have". In TrustGuard Activity, confirm that:

  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.

Test that enforcement holds

Run these two tests once the Activity check passes. NeuralTrust's documentation gives the expected results.

Data loss prevention. In a new chat, ask Gemini Enterprise to create a ticket whose description contains a fake card number, an IBAN and an email address. TrustGuard blocks the tools/call, Gemini Enterprise reports Request blocked by security policy: pii, and Activity 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 that tells an assistant to ignore its instructions and reassign issues. Ask Gemini Enterprise to read and summarize it. Activity should show the tool response blocked with an Indirect Prompt Injection detection. Delete the test record afterwards.

Do not test indirect injection by typing the instruction into the chat. The assistant may refuse it before calling a tool, nothing reaches the gateway, and you learn nothing about your policy.

How authentication works

Gemini Enterprise runs an authorization-code flow with PKCE against Microsoft Entra for the registered client. It 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. That claim is why each Activity row carries a real person, not a shared service account. For background on this pattern, see MCP authentication.

Troubleshooting

SymptomLikely cause
Custom MCP data store creation is deniedThe organization policy constraint is still enforced on the project
"You don't have permission" when authorizingNo Gemini Enterprise licence, or missing roles/discoveryengine.user (Project Owner is not enough)
Generic connection issue after about an hourNo refresh token was issued: confirm offline_access in the scopes and re-authenticate
No rows in TrustGuard ActivityThe request did not reach TrustGate: check the connector logs, Entra sign-in logs, token version, audience and that application auth is the JWT trust anchor
Tools do not appear in the assistantActions are disabled by default: enable them on the Actions tab
401 invalid_token at the gatewayThe Entra app still issues v1 tokens: set requestedAccessTokenVersion to 2 and re-authenticate
AADSTS50011 or AADSTS500113The redirect URI is missing or mistyped on the Entra app
Failure in a VPC Service Controls projectAllow the MCP host and login.microsoftonline.com in the egress FQDN policy, and custom_mcp in the allowed data sources policy

Check Activity first. Confirm the call arrived before you change anything in TrustGate.

Governance tips before you go live

  • One front door: keep TrustGate as the only custom MCP server and put the real MCP servers behind it. Pair it with an MCP registry allowlist.
  • Least privilege: assign each application only the toolkit it needs and enable only the tools users should have.
  • Pin the client: set Allowed client IDs so only your Entra app can reach the application.
  • Observe, then enforce: review Activity before you switch the policy to Enforce, and keep the logs for audits, as described in MCP audit logging.
  • Retest after changes: rerun both tests whenever you add an MCP server or change the policy. AI Red Teaming (TrustTest) can probe the same agents more broadly.

Bottom Line: One Gateway for Every Tool Call

Gemini Enterprise gets useful when it can act in your systems, and that is also when tool arguments and tool results need inspection. This integration gives you one MCP endpoint, a verified user identity on every call and TrustGuard evaluation in both directions. It covers the custom MCP connector path, so pair it with Google's own controls for everything else.

Secure Gemini Enterprise With TrustGate

Put identity, tool control and TrustGuard evaluation between Gemini Enterprise and your MCP servers. Start with the free plan or book a demo.

Try our AI Gateway today for free

Related Guides

FAQs about Gemini Enterprise Security

1. How does NeuralTrust secure Gemini Enterprise?

You register TrustGate as the custom MCP server in Gemini Enterprise. TrustGate exposes only the tools assigned to the application and validates the user's identity token. TrustGuard then evaluates every tool call and tool result against a policy, and records the decision under the signed-in user.

2. Which identity providers does the integration support?

NeuralTrust's documentation walks through Microsoft Entra ID and notes that the same validation pattern works with Okta. TrustGate validates a token your identity provider issued. It cannot validate Google Identity tokens, so one of these providers is required to set up the connector.

3. Does it protect plain Gemini Enterprise chat?

No. The integration covers tool traffic through custom MCP server connectors. It does not cover plain chat with no tools, traffic through native Google connectors, or custom ADK agents, which are a separate path. Administrators can disable native Google connectors so tools are only used through the gateway.

4. Does it replace Google Model Armor?

No. NeuralTrust's documentation describes Google Model Armor as complementary. Model Armor is Google's own screening for Gemini Enterprise, while TrustGuard evaluates MCP tool arguments and results that pass through TrustGate. Neither one replaces the other on MCP tool traffic, so plan for both.

5. What does TrustGuard do when it finds a problem?

The policy sets the response. TrustGuard's controls are Monitor, Block and Transform, and a policy in Observe mode records decisions in Activity without enforcing them. In the documented tests, a request containing card, IBAN and email data was blocked as PII, and a tool result carrying an injected instruction was blocked.

6. How long does setup take and where do I start?

Setup spans the identity provider, TrustGate, a TrustGuard policy and a Google Cloud data store, so the time depends on your approvals, especially the organization policy override. Start with the policy in Observe mode, confirm rows in Activity, and switch to Enforce after review.

About the Author

Roger Howroyd is Head of Global SEO and AI at NeuralTrust, where he leads the company's search strategy across SEO, AEO, GEO, and LLM optimization. He specializes in AI-powered search, content strategy, and SEM. Connect on LinkedIn.

Integration built by Alessandro Pignati, Lead AI Security Researcher at NeuralTrust.

NeuralTrust is the leading platform for securing and scaling AI agents. Named a Pioneer in the Gartner Emerging Market Quadrant for AI Application Security 2026, recognized across four Gartner Hype Cycle reports in 2026, and featured in the Gartner Market Guide for Guardian Agents 2026, the Gartner Market Guide for AI Gateways 2025 and the KuppingerCole Leadership Compass for Generative AI Defense 2025. Headquartered in Barcelona with offices in London and New York. ISO 27001 certified.

Sources

Accessed on December 3, 2026.

  1. NeuralTrust Docs, "Gemini Enterprise".
  2. Google Cloud, "Set up a custom MCP server data store".
  3. Google Cloud, "Override the organization policy for Custom MCP data stores".
  4. Google Cloud, "Enable Model Armor for Gemini Enterprise".

Subscribe to our newsletter

Share

Join the leaders securing the agent ecosystem

Get a Demo