AnalysisNov 22, 202612 min read4 sources

Your MCP server code moves between vendors; its service identity and stored user consents mostly do not

Google's guide to private Cloud Run MCP servers and its custom-UI auth guide make it possible to sort, control by control, what carries over when an MCP server moves to another platform. User-token checks in your own code carry over. Service identity verified at Google's edge and user consents held in Google's vaults have to be rebuilt.

In one minute

Google's guide to private Cloud Run MCP servers and its custom-UI auth guide make it possible to sort, control by control, what carries over when an MCP server moves to another platform.

User-token checks in your own code carry over. Service identity verified at Google's edge and user consents held in Google's vaults have to be rebuilt.

Summary

On November 20, 2026, Google published two guides. One shows how to connect Gemini Enterprise to internal Cloud Run MCP servers without putting them on the public internet. The other explains which auth flows a custom UI on top of Gemini Enterprise has to handle itself. Two days earlier, GitHub added eight verified MCP connectors to Copilot, with admin policy controlling access. MCP's Tasks and Events working group is still incubating a server-push extension that it labels experimental.

What happened

Google's Cloud Run guide names three problems that appear once an MCP server leaves the prototype stage:

  • The server must be unreachable from the internet.
  • Every tool call needs two separate identity checks, one for the calling service and one for the human user.
  • In a large Shared VPC, DNS overrides must not break other Cloud Run services.

Google's fix chains several of its own products. An Egress Agent Gateway in Agent-to-Anywhere mode connects to a Private Service Connect network attachment in the customer's VPC. From there, traffic reaches Cloud Run through either Private Google Access (199.36.153.8/30) or a global PSC endpoint (240.0.0.10). A private Cloud DNS zone covers only the MCP service's exact hostname, so other services keep resolving normally.

Gemini Enterprise sends two headers on every request:

  • X-Serverless-Authorization carries a Google-signed OIDC token for the Gemini Enterprise service agent. Cloud Run IAM checks it against the Invoker role and strips it before the request reaches the container.
  • A standard Bearer header carries the signed-in user's OAuth token unchanged. The server's own middleware must validate it.

The second guide covers custom front ends. Once a team calls the StreamAssist API directly, it owns three auth layers:

  • user or workload identity, through Google Identity or Workforce/Workload Identity Federation;
  • 3-legged OAuth consent for federated connectors, with refresh tokens stored in Google's managed Keystore;
  • per-tool OAuth for ADK agents, through GCP Auth Manager's Token Vault.

GitHub's changelog adds Box, Buildkite, Calendly, ClickUp, Mixpanel, Supabase, Webflow and Wix as verified connectors in public preview. On Business and Enterprise plans an admin has to turn on a preview policy. Enterprises whose MCP allowlist names connectors one by one must also add the new ones.

The ext-events repository describes a callback mechanism that would let MCP servers push notifications instead of clients polling or keeping an SSE connection open. Its README says the contents are not official MCP specification.

What the archive adds

An earlier New Runtime note on the ext-events repository advised MCP client and server builders to follow the callback model but not to treat the beta extension as a stable contract, because delivery details and compatibility across transports were still open.

Other vendors are building the same layer:

  • OpenAI documents a Secure MCP Tunnel for enterprise customers.
  • According to AWS, Bedrock AgentCore Gateway can reach self-hosted MCP servers inside a VPC over VPC Lattice, and AgentCore Identity supports private identity providers.
  • Microsoft's documentation describes admin-published federated connectors built from curated templates.

On the protocol side, the MCP project says Enterprise-Managed Authorization became stable on June 18, 2026. It lets an identity provider grant server access centrally, and the project names Anthropic, Microsoft and Okta as adopters.

Security agencies are adding pressure. The NSA's MCP security guidance recommends that enterprises scan their networks for unauthenticated or unauthorized MCP servers and for unregulated network paths.

Trend signal

MCP in production is splitting into two layers with different owners.

The server-facing contract is converging on open pieces: StreamableHTTP, OAuth Bearer tokens and, according to the MCP project, Enterprise-Managed Authorization.

The controls that get an MCP server through a security review are arriving as managed vendor products: the private network path, the service-identity check, credential vaults, connector catalogs and admin allowlists. Google offers this as Agent Gateway plus PSC. AWS, by its own description, offers AgentCore Gateway plus VPC Lattice. Microsoft offers admin-published connectors. GitHub offers verified connectors behind enterprise policy.

Part of this is just how cloud networking has always worked. PSC and VPC Lattice were never meant to be interchangeable. What is new is that the agent product and the gateway now ship together and are bound in the same console.

The protocol is still changing too. If the Events extension ever becomes part of the spec, server-initiated delivery adds a direction of traffic that the egress-focused designs documented so far were not built around.

Why now

First, security policy: Google's guide says internal ingress makes Cloud Run reject Gemini Enterprise's default public calls, and the NSA's MCP guidance tells enterprises to scan for unauthenticated servers and unregulated network paths (d3).

Second, user identity is standardizing: according to the MCP project, Enterprise-Managed Authorization went stable in June 2026 (d4). That leaves network and service identity as the layer where vendors compete.

Third, competitors already ship this: according to AWS and Microsoft, AgentCore has VPC egress (d12) and Microsoft has admin-published connectors (d5). GitHub ships verified connectors behind policy. Google needed a documented answer of its own.

Fourth, custom front ends: once an enterprise embeds the assistant in its own portal, application teams inherit the auth flows the built-in app used to handle, and vendors answer with managed vaults.

Connections to other events

Run Google's reference setup through a simple test: if this MCP server had to serve a second assistant platform tomorrow, which controls would move and which would be rebuilt?

Moves with the code:

  • The Python StreamableHTTP server.
  • Its OAuth2ValidationMiddleware, which reads a standard Bearer token and enforces per-user rules.

This is the one place in the design where authorization lives in your application.

Rebuilt per platform, as ordinary cloud plumbing:

  • Internal-only ingress.
  • The PSC network attachment.
  • The choice between Private Google Access and a PSC endpoint.
  • The FQDN-scoped private DNS zone.

Every cloud has its own version of these, and a team that already runs private services knows how to redo them. This is real work, but it is familiar.

Rebuilt per platform, and less familiar:

  • Service identity. Google's guide says Cloud Run IAM verifies the service agent's OIDC token at the serverless edge and strips the header before the container sees it. Which caller is allowed in is recorded as an IAM binding to the Gemini Enterprise service agent, not as logic in your code. A second assistant brings a different caller identity, so you need new grants and possibly a new verification path.
  • Stored user consent. The custom-UI guide keeps connector refresh tokens in Google's Keystore and per-tool agent tokens in Token Vault. That spares your backend from storing third-party credentials. But if you move, every user's consent stays with the old vendor, and every employee has to authorize again on the new platform.
  • Admin gates. GitHub's connectors show this in its lightest form: whether a connector is usable depends on an enterprise preview policy and, for named allowlists, a per-connector entry.

Our read: the real switching costs are service identity and stored consents, not the network path that the guide spends most of its length on. This does not mean every future protocol feature is blocked on vendors. But features that change traffic direction, such as server push, will probably need each gateway to add support before private deployments can use them.

Why it matters

For builders:

  • Keep user-level authorization in your own middleware, validating standard OAuth tokens, as Google's sample does. Per-user permissions are the part you most want to survive a platform change.
  • Treat ingress, DNS and service-identity grants as per-platform configuration, managed in infrastructure-as-code so you can redo them on purpose.
  • Plan for consent records you do not hold. If a migration is plausible, budget for every user re-authorizing their connectors.

For buyers: picking Gemini Enterprise, AgentCore or Copilot as the agent front end now also decides where service grants and user consents for internal tools live. That raises switching costs beyond the choice of model.

The strongest counter-argument is that this is ordinary cloud hygiene. PSC, VPC Lattice and IAM were always vendor-specific, and nobody calls a private load balancer lock-in. That holds for the network path, which is why we do not count it as the main cost. It holds less for consent tokens in a vendor vault and for service grants tied to one assistant's service agent. Those follow the assistant product, not the cloud. An enterprise that offers employees both Gemini Enterprise and Copilot would maintain two sets of them around a single MCP server.

What happens next

  • GitHub announces another batch of verified MCP connectors for Copilot within three months. (3 months, 50%). Watch for: A GitHub Changelog entry naming newly added GitHub-verified MCP connectors for Copilot. Resolves on 2027-02-21, yes if: The GitHub Changelog has an entry dated between 2026-11-19 and 2027-02-20 that announces at least five newly added GitHub-verified MCP connectors for Copilot.
  • The MCP Events extension is still labelled experimental three months from now. (3 months, 75%). Watch for: The ext-events README keeps its Experimental warning and the Events extension stays at Beta stage. Resolves on 2027-02-21, yes if: On 2027-02-20 the README of the modelcontextprotocol/ext-events GitHub repo still contains the sentence 'Contents are exploratory and do not represent official MCP specifications or recommendations.'.
  • Interest in the Events extension grows only slowly among MCP builders. (3 months, 30%). Watch for: Star count and pull-request activity on modelcontextprotocol/ext-events. Resolves on 2027-02-21, yes if: The modelcontextprotocol/ext-events GitHub repo shows more than 120 stars on 2027-02-20.

Limits and uncertainty

Several things are unknown:

  • Google's posts give no pricing, quotas or GA status for Egress Agent Gateway.
  • We do not know whether Keystore or Token Vault contents can be exported. If they can, the consent switching cost shrinks a lot.
  • Neutral or open-source MCP gateways could become a portable perimeter. We have no data on how widely enterprises use them.
  • Enterprise-Managed Authorization being stable means identity-provider-driven access could make re-consent nearly invisible to users, which would weaken our main cost argument.
  • The Events extension may never join the spec, or it may be designed to run over connections the client already holds, which would remove the inbound-path concern.

New Runtime's archive could not be queried for comparable cases, so this take has no historical base rate behind it. The forecasts below use rough priors instead.

Competing readings

  • MCP server code and user-token checks are portable, but service identity enforced at the vendor edge and user consents held in vendor vaults create switching costs tied to the assistant product (likely, about 60%). What would tell it apart: Service identity is verified and stripped at Google's edge, outside application code (developers.googleblog.com); Connector refresh tokens live in Google's managed Keystore, and custom UIs inherit these vendor-backed flows (developers.googleblog.com); AWS rebuilds the same perimeter with its own networking and identity (aws.amazon.com).
  • This is ordinary cloud networking hygiene; the perimeter was always cloud-specific and adds no meaningful new switching cost (unlikely, about 25%). What would tell it apart: PSC, DNS and IAM are standard Google Cloud constructs used for any private service, and the two-check design is conventional (developers.googleblog.com).
  • Standardization will catch up soon: identity-provider-managed authorization and open working-group spec work will make perimeters interchangeable within a year (very unlikely, about 15%). What would tell it apart: User tokens already use standard Bearer headers, and Events work happens in an open working group, though it is still exploratory (developers.googleblog.com)(github.com).

Base rate

The New Runtime archive could not be queried for comparable cases (canceling statement due to statement timeout), so it gives 0 cases: no base rate. New Runtime's archive could not be queried for comparable events and returned 0 cases and 0 matches, too few to give a base rate. This take does not rely on one.

What would change this view

  • Google documents export or migration of Keystore and Token Vault consent records to another platform (signal): Stored consents are not a real switching cost, and only service identity remains tied to the vendor.
  • Google, AWS and GitHub document a neutral open-source MCP gateway as a supported path to private servers (open-source signal): The perimeter is becoming portable, and the platform-risk reading weakens.
  • The MCP specification adds a standard service-identity mechanism that the major assistant vendors implement (signal): Service identity moves into the protocol instead of vendor edges.

Skill to build now

Write a two-platform migration checklist for one MCP server and run it.

Setup: put a StreamableHTTP MCP server behind Cloud Run with internal ingress and Invoker granted to one caller. Then put the same server behind a second front end, either another gateway or a plain mTLS proxy with a different service identity.

Pass/fail criteria:

  1. Application code: zero lines change between the two deployments.
  2. Permissions: a test user allowed to call tool A and denied tool B gets exactly the same allow/deny results on both platforms.
  3. Service identity: a request from an unauthorized service identity is rejected on both platforms before it reaches the container.
  4. Configuration: every changed configuration item (ingress, IAM binding, DNS record, allowlist entry) is listed. Any item you discover only by debugging counts as a fail.
  5. Consent: note whether user connector tokens had to be re-issued, and how many manual steps that took per user.

Reader takeaway

Before you wire an internal MCP server into an assistant, build a portability table. For each control, mark whether it lives in your code, in cloud configuration, or in the assistant vendor's managed store, and record what moving it would take. The controls to list are ingress, network path, DNS, service identity, user-token validation, connector consent storage and allowlist entries. If user-token validation is not in your own middleware, move it there first. It is the cheapest control to make portable and the most expensive to lose.

Open question

If enterprises can export connector consents from vendor vaults, or let an identity provider re-provision them silently through Enterprise-Managed Authorization, is anything left of the MCP perimeter that is costly to switch? Or does service identity at the vendor's edge become the only real tie?

Evidence / sources

  1. 1developers.googleblog.com/how-to-securely-connect-internal-cloud-run-mcp-servers-to-gemini-enterprise
  2. 2developers.googleblog.com/how-to-handle-user-connector-and-agent-auth-in-gemini-enterprise-with-a-custom-ui
  3. 3github.com/modelcontextprotocol/ext-events
  4. 4github.blog/changelog/2026-11-18-connect-supabase-box-calendly-and-more-to-copilot
All Analysis

Next reads

Read next

Open the graph
  1. 01topicMcpExplore the mcp topic hub.
  2. 02topicGoogleExplore the google topic hub.
  3. 03topicGeminiExplore the gemini topic hub.
  4. 04archiveAnalysisOpen the latest authorial analysis.
  5. 05sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract