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.
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:
- In Expose an API, set the Application ID URI to
api://<client-id>and add a scope namedmcp.access, consentable by admins and users, enabled. The full scope identifier isapi://<client-id>/mcp.access. - In Manifest, inside the
apiobject, set"requestedAccessTokenVersion": 2. - In Authentication, add a Web platform with this redirect URI:
- In Certificates & secrets, create a client secret and copy its Value. It is shown once. The Secret ID is not the secret.
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.Add the trust anchor and MCP application
Go to Settings → Agent Gateway → Machine identity and select Add trust
anchor.On SaaS,
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:{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.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.Authentication flow
Gemini Enterprise runs an authorization-code flow with PKCE against Microsoft Entra for the registered client, receives a token whose audience isapi://<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.
Related
- MCP Gateway: applications, catalog merging, toolkits, and upstream authentication
- Applications: slugs, routing, and the Connect tab
- Authentication: validate compared with brokered login
- Entra ID: app registration, scopes, and token validation
- Okta: the same validate pattern
- Where each detector applies: DLP on tool arguments, Indirect Prompt Injection on MCP tool results
- TrustGate and TrustGuard: collector, policy, verdict, and failure behavior
- Gemini CLI: lifecycle hooks and MCP for the coding agent, not this console product
- Set up a custom MCP server (Google): Google reference