Do you need just-in-time access to your MCP servers on GCP without handing out permanent keys?
Most teams that run AI models on Google Cloud provision a service‑account key, copy it into CI pipelines, and share the same JSON file with every engineer who touches the model. The key lives on laptops, in container images, and sometimes in version‑control histories. Because the credential never expires, any compromised workstation gives an attacker unfettered access to the MCP server for as long as the key remains valid. There is no central log of who ran which inference, no way to verify that a request complied with policy, and no mechanism to stop a dangerous command before it reaches the server.
Even when organizations adopt identity‑aware proxies or short‑lived tokens for other workloads, the connection to an MCP server often remains a direct TCP stream. The request still reaches the target unmediated, so the system cannot enforce just-in-time approval, mask sensitive fields in model responses, or capture a replayable audit trail. In other words, the core problem, granting temporary, policy‑driven access while preserving full visibility, remains unsolved.
hoop.dev fills that gap by becoming the mandatory data path for every MCP request. It sits as a Layer 7 gateway between the caller’s identity and the GCP‑hosted MCP server. The gateway authenticates the user via OIDC or SAML, checks group membership, and then decides whether to allow the connection, require an approval workflow, or block the request outright. Because all traffic passes through the gateway, hoop.dev can apply inline masking to response payloads, enforce command‑level policies, and record a complete session for later replay.
Implementing just-in-time access for MCP servers on GCP
The first piece of the puzzle is the setup. Engineers obtain an identity from an OIDC provider, Google Workspace, Okta, Azure AD, or any SAML source. The identity token proves who the caller is and carries group claims that the gateway uses to make authorization decisions. This step decides who may even attempt a connection, but it does not enforce any runtime policy on its own.
Next, the data path is established by deploying the hoop.dev gateway inside the same VPC or subnet that hosts the MCP service. An agent runs alongside the MCP server, holding the service‑account credential that the gateway uses to speak to GCP. Users never see that credential; the gateway presents it on their behalf after a successful policy check. Because the gateway is the only point where traffic can be inspected, it is the sole place enforcement can happen.
