Read and act on Cloud Run and Cloud Logging through Google’s own MCP servers, without handing Polycore a Google credential.
Google Cloud is a direct integration: Polycore hosts the connection to
Google’s own remote MCP servers, so there is no runner to deploy. An owner or
admin connects it once per project, and everyone in the connection’s audience
can ask about services and logs from Slack, the dashboard, an MCP client, or a
page.Google ships one MCP server per product, so each product is its own
connection with its own tools and its own policy. Polycore governs two today:
Connection
Server
What it reaches
Cloud Run
run.googleapis.com/mcp
Services, revisions, deploys
Cloud Logging
logging.googleapis.com/mcp
Log entries, buckets, views
Polycore holds no Google credential
Every other integration hands Polycore a secret. This one does not.Instead you create a service account in your own project, grant it the roles
the connection needs, and let Polycore’s executor impersonate it. Polycore
asks Google for a token that lives ten minutes, uses it for one call, and
stores nothing. The authority is a binding in your IAM policy, not a credential
in Polycore’s database.That has three consequences worth knowing:
Nothing expires on you. There is no token to rotate and no connection
that dies in an hour, or when an employee leaves.
You revoke it, not us. Removing the token creator binding stops every
call immediately, without waiting for Polycore to delete anything.
Least privilege is yours to set. The connection reaches exactly what you
granted that service account, and you can see that in your own IAM.
What it can do
Polycore classifies every tool Google advertises:Cloud Run.list_services and get_service are reads and run when they
are called. deploy_service_from_image, deploy_service_from_archive, and
deploy_service_from_file_contents are writes, so each one waits for a human
approval before anything reaches production.Cloud Logging.list_log_entries, list_log_names, list_buckets,
get_bucket, list_views, and get_view are all reads.Anything Google adds that Polycore has not classified is treated as unknown. It
is gated like a write, and it arrives disabled so an admin reviews it
before anyone can call it.
This is shared authority. Everyone in the connection’s audience acts through
the one service account, reaching projects their own Google account may not be
able to open. Every Google tool takes its target project as an argument, so
the service account’s IAM grants are the resource boundary. Grant them on the
projects this connection should reach, and no others.
Connect it
First, enable the products you want to reach through MCP in your Google Cloud
project. See Google’s
enable MCP servers
guide.Then, in Polycore, open Project settings → Integrations, pick Google
Cloud Run or Google Cloud Logging, and choose Connect. The connect
screen generates the setup for that connection’s roles, including Polycore’s
executor identity, as either gcloud commands or Terraform. Both make the same
grant, so pick whichever matches how you manage the project. The commands look
like this:
PROJECT="acme-prod"SA="polycore@$PROJECT.iam.gserviceaccount.com"gcloud iam service-accounts create polycore \ --project="$PROJECT" --display-name="Polycore"gcloud projects add-iam-policy-binding "$PROJECT" \ --member="serviceAccount:$SA" --role="roles/mcp.toolUser"gcloud projects add-iam-policy-binding "$PROJECT" \ --member="serviceAccount:$SA" --role="roles/run.viewer"# Let Polycore act as this account, and only this account.gcloud iam service-accounts add-iam-policy-binding "$SA" \ --project="$PROJECT" \ --member="serviceAccount:POLYCORE_EXECUTOR" \ --role="roles/iam.serviceAccountTokenCreator"
The Terraform tab is the same grant as resources you paste into whatever
already manages the project, ending in a polycore_service_account output.
Optional roles arrive commented out in both tabs, so applying or pasting can
never widen the connection by accident.roles/mcp.toolUser is required for any Google MCP call at all. The product
role decides what the connection can reach: roles/run.viewer for reads, or
roles/run.developer plus roles/iam.serviceAccountUser if you also want the
deploy tools to work. For Cloud Logging, roles/logging.viewer.Paste the service account’s email back into Polycore, pick the environment it
belongs to, name its GCP project, and choose a namespace and audience.Repeat for your other environments from the connection’s Environments
panel. Each one takes its own service account and project; the tools, their
hazards and their enable flags stay on the connection, so you classify Google’s
surface once rather than once per environment.
Using it
Ask in Slack, or from any front door:
Which Cloud Run services have failing revisions?
Capabilities appear in the catalog under the connection’s namespace:
await polycore.run("run/list_services", {});
The connection supplies the project, so it is not asked for. That matters
beyond convenience: Google marks it required, and a model told an argument is
required will invent a value rather than leave it out.A Cloud Run region is not part of the connection, because a region belongs to
a service rather than to an environment. Cloud Run’s tools take region: "-"
to mean every region, which is what the tool description tells a caller, so
listing services finds them wherever they run and each result carries the
region to use for anything more specific.Where a connection covers more than one environment, its tools take a
project argument listing exactly those projects, and it is required. There is
no honest default across dev and prod, and Slack has no environment switcher,
so anything else means guessing: “get me the GCP logs” would answer about one
project while you were asking about another. Say which project you mean and you
get the credential bound to it. Because the list is closed, a project cannot be
invented, and naming one this connection has no credential for is refused
rather than answered from somewhere else.A connection covering one environment asks for nothing, since there is only one
target the call can mean.Agent and MCP tool names are direct__<namespace>__<tool>. The audit row
records the caller, the connection, the tool, and the service account the call
acted as.
Limits
Two products. Google publishes MCP servers for around sixty. More arrive
as they are classified.
One credential per environment. A connection covers every environment of
a project under one namespace, but each environment needs its own service
account and GCP project added to it. An environment with none has no tools
there rather than falling back to another environment’s credential.
Impersonation, not OAuth. Connecting as your own Google account is not
supported, and would inherit your full cloud access if it were.
Removing it
Remove connection stops calls at once and drops the tools from the catalog.
Because Polycore stores no Google credential, there is nothing to rotate
afterwards, but removing the roles/iam.serviceAccountTokenCreator binding in
your own project is what makes it permanent. The audit history stays.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Polycore","description":"Understand Polycore's control plane, customer-hosted runner, trust boundary, and governed dispatch model.","colors":{"primary":"#4F5ACD","light":"#9AA3F8","dark":"#4F5ACD"},"logo":{"light":"https://mintcdn.com/polycore/m2QgduBJXFyiKbEs/images/polycore-wordmark-light.png?fit=max\u0026auto=format\u0026n=m2QgduBJXFyiKbEs\u0026q=85\u0026s=59bf07d8641878aec1e375a98760ef47","dark":"https://mintcdn.com/polycore/m2QgduBJXFyiKbEs/images/polycore-wordmark-dark.png?fit=max\u0026auto=format\u0026n=m2QgduBJXFyiKbEs\u0026q=85\u0026s=2bea9d48c054818ea40acb3a144a33b8"},"favicon":"https://mintcdn.com/polycore/PO59Qynjvjevngll/images/polycore-mark.png?fit=max\u0026auto=format\u0026n=PO59Qynjvjevngll\u0026q=85\u0026s=1172454185ad9ad14926b85cb88f638d","appearance":{"default":"dark"},"background":{"decoration":"grid","color":{"light":"#F7F7FA","dark":"#0B0C0E"}},"navbar":{"links":[{"href":"https://www.polycore.ai","label":"Website"},{"href":"https://github.com/polycore","type":"github"}],"primary":{"type":"button","label":"Request early access","href":"https://www.polycore.ai/early-access"}},"footer":{"socials":{"website":"https://www.polycore.ai","github":"https://github.com/polycore"},"links":[{"header":"Explore","items":[{"label":"Architecture","href":"/concepts/architecture"},{"label":"Integrations","href":"/integrations/overview"},{"label":"Security","href":"/concepts/security"}]},{"header":"Polycore","items":[{"label":"Website","href":"https://www.polycore.ai"},{"label":"Early access","href":"https://www.polycore.ai/early-access"},{"label":"Privacy","href":"https://www.polycore.ai/privacy"}]}]},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"banner":{"content":"**Early access.** We integrate with your team. [Request access](https://www.polycore.ai/early-access).","dismissible":true,"color":{"light":"#5C66D8","dark":"#4F5ACD"}},"contextual":{"options":["copy","view"],"display":"toc"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"polycore","hasAudioNarration":false,"actualSubdomain":"polycore","customDomains":["docs.polycore.ai"],"gitSource":{"type":"github","owner":"polycore","repo":"polycore","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af2fc16224550955fe8b71b","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Integrations","count":12},{"language":"default","tag":"Documentation","count":9},{"language":"default","tag":"How Polycore works","count":7},{"language":"default","tag":"Data platforms","count":5},{"language":"default","tag":"Build the catalog","count":2},{"language":"default","tag":"Start here","count":2},{"language":"default","tag":"Direct integrations","count":2},{"language":"default","tag":"Interfaces","count":2},{"language":"default","tag":"Reference","count":2},{"language":"default","tag":"Integration model","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--poly-accent: #6e7bf2;--poly-accent-strong: #4f5acd;--poly-accent-soft: rgba(110, 123, 242, 0.12)}::selection{background:rgba(110, 123, 242, 0.32)}.nav-logo{height:1.5rem!important}.poly-doc-home{--poly-home-bg: #f7f7fa;--poly-home-surface: rgba(255, 255, 255, 0.82);--poly-home-surface-strong: #ffffff;--poly-home-text: #15161a;--poly-home-muted: #60646f;--poly-home-faint: #8a8f99;--poly-home-border: rgba(21, 22, 26, 0.1);--poly-home-border-strong: rgba(21, 22, 26, 0.16);position:relative;min-height:100%;overflow:hidden;color:var(--poly-home-text);background:var(--poly-home-bg)}.dark .poly-doc-home{--poly-home-bg: #0b0c0e;--poly-home-surface: rgba(19, 20, 24, 0.82);--poly-home-surface-strong: #17191d;--poly-home-text: #f4f5f7;--poly-home-muted: #9ba0aa;--poly-home-faint: #6f747e;--poly-home-border: rgba(255, 255, 255, 0.08);--poly-home-border-strong: rgba(255, 255, 255, 0.14)}.poly-home-hero{position:relative;isolation:isolate;padding:11rem 1.5rem 5rem}.poly-home-hero::before{position:absolute;inset:0;z-index:-2;content:\"\";background-image:radial-gradient(\n var(--poly-home-border-strong) 1px,\n transparent 1px\n );background-size:28px 28px;-webkit-mask-image:radial-gradient(\n ellipse 66% 60% at 50% 28%,\n #000 25%,\n transparent 78%\n );mask-image:radial-gradient(\n ellipse 66% 60% at 50% 28%,\n #000 25%,\n transparent 78%\n )}.poly-home-hero::after{position:absolute;top:-18rem;left:50%;z-index:-1;width:52rem;height:38rem;content:\"\";background:radial-gradient(\n ellipse,\n rgba(110, 123, 242, 0.22),\n transparent 68%\n );filter:blur(36px);transform:translateX(-50%)}.poly-home-inner{width:min(100%, 72rem);margin-inline:auto}.poly-home-copy{max-width:52rem;margin-inline:auto;text-align:center}.poly-kicker{display:inline-flex;align-items:center;gap:0.55rem;padding:0.38rem 0.72rem;color:var(--poly-home-muted);font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:0.72rem;letter-spacing:0.04em;background:var(--poly-home-surface);border:1px solid var(--poly-home-border);border-radius:999px;backdrop-filter:blur(18px)}.poly-kicker-dot{position:relative;width:0.42rem;height:0.42rem;background:#4ade80;border-radius:999px;box-shadow:0 0 0 4px rgba(74, 222, 128, 0.1)}.poly-home-title{max-width:18ch;margin:1.65rem auto 0;font-size:clamp(2.65rem, 6vw, 4.75rem);font-weight:620;line-height:1.01;letter-spacing:-0.055em;text-wrap:balance}.poly-home-title-line{display:block;white-space:nowrap}.poly-home-lead{max-width:39rem;margin:1.4rem auto 0;color:var(--poly-home-muted);font-size:clamp(1.03rem, 2vw, 1.2rem);line-height:1.6;text-wrap:pretty}.poly-home-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem;margin-top:1.8rem}.poly-home-button{display:inline-flex;min-height:2.8rem;align-items:center;justify-content:center;padding:0.65rem 1.3rem;color:#f4f5f7!important;font-size:0.9rem;font-weight:580;text-decoration:none!important;background:#4f5acd;border:1px solid rgba(255, 255, 255, 0.16);border-radius:999px;box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.2),\n 0 16px 42px -22px rgba(79, 90, 205, 0.9);transition:transform 180ms ease,\n background-color 180ms ease}.poly-home-button:hover{background:#5d68df;transform:translateY(-1px)}.poly-home-button:active{transform:translateY(0) scale(0.98)}.poly-home-button:focus-visible,.poly-integration-step:focus-visible{outline:3px solid rgba(110, 123, 242, 0.72);outline-offset:3px}.poly-home-button-secondary{color:var(--poly-home-text)!important;background:var(--poly-home-surface);border-color:var(--poly-home-border-strong);box-shadow:none;backdrop-filter:blur(18px)}.poly-home-button-secondary:hover{background:var(--poly-home-surface-strong)}.poly-system-frame{position:relative;max-width:66rem;margin:3.75rem auto 0;padding:1rem;background:var(--poly-home-surface);border:1px solid var(--poly-home-border);border-radius:1.35rem;box-shadow:0 34px 90px -48px rgba(24, 28, 56, 0.62);backdrop-filter:blur(22px)}.dark .poly-system-frame{box-shadow:0 40px 100px -54px rgba(0, 0, 0, 0.9)}.poly-frame-label{display:flex;align-items:center;gap:0.45rem;padding:0.1rem 0.2rem 0.8rem;color:var(--poly-home-faint);font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:0.68rem;letter-spacing:0.04em}.poly-frame-label>span:empty{width:0.48rem;height:0.48rem;flex:0 0 auto;background:var(--poly-home-border-strong);border-radius:999px}.poly-system-map{display:grid;grid-template-columns:minmax(0, 1fr) 3rem minmax(0, 1.15fr) 3rem minmax(\n 0,\n 1fr\n );align-items:stretch;gap:0.65rem}.poly-system-node{display:flex;min-height:9.5rem;flex-direction:column;justify-content:space-between;padding:1.15rem;background:var(--poly-home-surface-strong);border:1px solid var(--poly-home-border);border-radius:1rem}.poly-system-node-accent{border-color:rgba(110, 123, 242, 0.48);box-shadow:inset 0 1px 0 rgba(110, 123, 242, 0.12)}.poly-node-eyebrow{color:#5660bf;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:0.65rem;letter-spacing:0.12em;text-transform:uppercase}.dark .poly-node-eyebrow{color:#9aa3f8}.poly-system-node strong{display:block;margin-top:0.6rem;font-size:1rem;letter-spacing:-0.02em}.poly-system-node p{margin:0.65rem 0 0;color:var(--poly-home-muted);font-size:0.78rem;line-height:1.55}.poly-node-foot{margin-top:1rem;color:var(--poly-home-faint);font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:0.65rem}.poly-system-wire{position:relative;align-self:center;height:1px;background:linear-gradient(\n 90deg,\n var(--poly-home-border),\n rgba(110, 123, 242, 0.72)\n )}.poly-system-wire::after{position:absolute;top:50%;right:-1px;width:0.38rem;height:0.38rem;content:\"\";border-top:1px solid #7d88ed;border-right:1px solid #7d88ed;transform:translateY(-50%) rotate(45deg)}.poly-home-section{position:relative;padding:5.5rem 1.5rem;border-top:1px solid var(--poly-home-border)}.poly-section-heading{max-width:42rem}.poly-section-heading>span{color:#5660bf;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:0.7rem;letter-spacing:0.15em;text-transform:uppercase}.dark .poly-section-heading>span{color:#9aa3f8}.poly-section-heading h2{max-width:18ch;margin:0.85rem 0 0;font-size:clamp(2rem, 5vw, 3.25rem);font-weight:620;line-height:1.04;letter-spacing:-0.05em;text-wrap:balance}.poly-section-heading p{max-width:40rem;margin:1.15rem 0 0;color:var(--poly-home-muted);font-size:1rem;line-height:1.7}.poly-principles{display:grid;grid-template-columns:1.15fr 0.85fr;gap:1rem;margin-top:2.5rem}.poly-principle{padding:1.5rem;background:var(--poly-home-surface);border:1px solid var(--poly-home-border);border-radius:1.1rem}.poly-principle:first-child{grid-row:span 2;min-height:18rem;background:linear-gradient(155deg, var(--poly-accent-soft), transparent 62%),\n var(--poly-home-surface)}.poly-principle-index{color:#5660bf;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:0.68rem}.poly-principle h3{margin:2.4rem 0 0;font-size:1.15rem;letter-spacing:-0.025em}.poly-principle p{margin:0.65rem 0 0;color:var(--poly-home-muted);font-size:0.88rem;line-height:1.65}.poly-principle:first-child h3{max-width:17ch;margin-top:6.5rem;font-size:1.75rem;line-height:1.15}.poly-integration-strip{display:grid;grid-template-columns:repeat(4, 1fr);gap:1px;margin-top:2.5rem;overflow:hidden;background:var(--poly-home-border);border:1px solid var(--poly-home-border);border-radius:1.1rem}.poly-integration-step{min-height:10rem;padding:1.3rem;color:var(--poly-home-text)!important;text-decoration:none!important;background:var(--poly-home-surface);transition:background-color 180ms ease}.poly-integration-step:hover{background:var(--poly-home-surface-strong)}.poly-integration-step code{color:#5660bf;font-size:0.68rem;background:transparent}.poly-integration-step strong{display:block;margin-top:2rem;font-size:0.95rem}.poly-integration-step p{margin:0.5rem 0 0;color:var(--poly-home-muted);font-size:0.78rem;line-height:1.55}.poly-home-cta{max-width:72rem;margin-inline:auto;padding:4.5rem 1.5rem 6rem;text-align:center}.poly-home-cta h2{max-width:18ch;margin-inline:auto;font-size:clamp(2rem, 5vw, 3.4rem);font-weight:620;line-height:1.05;letter-spacing:-0.05em;text-wrap:balance}.poly-home-cta p{max-width:38rem;margin:1.15rem auto 0;color:var(--poly-home-muted);line-height:1.7}@media (max-width: 840px){.poly-home-hero{padding-top:10.5rem}.poly-kicker{display:none}.poly-system-map{grid-template-columns:1fr}.poly-system-wire{width:1px;height:2rem;justify-self:center;background:linear-gradient(\n 180deg,\n var(--poly-home-border),\n rgba(110, 123, 242, 0.72)\n )}.poly-system-wire::after{top:auto;right:50%;bottom:0;transform:translateX(50%) rotate(135deg)}.poly-principles{grid-template-columns:1fr}.poly-principle:first-child{grid-row:auto;min-height:14rem}.poly-principle:first-child h3{margin-top:3.5rem}.poly-integration-strip{grid-template-columns:1fr 1fr}}@media (max-width: 520px){.poly-home-title{font-size:2.15rem;letter-spacing:-0.05em}.poly-home-actions{flex-direction:column}.poly-home-button{width:100%}.poly-integration-strip{grid-template-columns:1fr}}@media (prefers-reduced-motion: reduce){.poly-home-button,.poly-integration-step{transition:none}.poly-home-button:hover,.poly-home-button:active{transform:none}}"}]}
{"page":{"pagePath":"integrations/google-cloud","slug":"/integrations/google-cloud","pageMetadata":{"title":"Google Cloud","description":"Read and act on Cloud Run and Cloud Logging through Google's own MCP servers, without handing Polycore a Google credential.","icon":"cloud","href":"/integrations/google-cloud"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Read and act on Cloud Run and Cloud Logging through Google’s own MCP servers, without handing Polycore a Google credential.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Mermaid,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Google Cloud is a `,_jsx(_components.strong,{children:`direct integration`}),`: Polycore hosts the connection to\nGoogle’s own remote MCP servers, so there is no runner to deploy. An owner or\nadmin connects it once per project, and everyone in the connection’s audience\ncan ask about services and logs from Slack, the dashboard, an MCP client, or a\npage.`]}),`\n`,_jsxs(_components.p,{children:[`Google ships `,_jsx(_components.strong,{children:`one MCP server per product`}),`, so each product is its own\nconnection with its own tools and its own policy. Polycore governs two today:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Connection`}),_jsx(_components.th,{children:`Server`}),_jsx(_components.th,{children:`What it reaches`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cloud Run`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`run.googleapis.com/mcp`})}),_jsx(_components.td,{children:`Services, revisions, deploys`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cloud Logging`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`logging.googleapis.com/mcp`})}),_jsx(_components.td,{children:`Log entries, buckets, views`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`polycore-holds-no-google-credential`,children:`Polycore holds no Google credential`}),`\n`,_jsx(_components.p,{children:`Every other integration hands Polycore a secret. This one does not.`}),`\n`,_jsxs(_components.p,{children:[`Instead you create a service account in your own project, grant it the roles\nthe connection needs, and let Polycore’s executor `,_jsx(_components.strong,{children:`impersonate`}),` it. Polycore\nasks Google for a token that lives ten minutes, uses it for one call, and\nstores nothing. The authority is a binding in your IAM policy, not a credential\nin Polycore’s database.`]}),`\n`,_jsx(_components.p,{children:`That has three consequences worth knowing:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Nothing expires on you.`}),` There is no token to rotate and no connection\nthat dies in an hour, or when an employee leaves.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`You revoke it, not us.`}),` Removing the token creator binding stops every\ncall immediately, without waiting for Polycore to delete anything.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Least privilege is yours to set.`}),` The connection reaches exactly what you\ngranted that service account, and you can see that in your own IAM.`]}),`\n`]}),`\n`,_jsx(Mermaid,{chart:`flowchart LR\n Caller[\"Agent, Slack, dashboard, page\"]\n CP[\"Polycore control plane\"]\n Executor[\"Private integration executor\"]\n IAM[\"iamcredentials.googleapis.com\"]\n MCP[\"run.googleapis.com/mcp\"]\n\n Caller --> CP --> Executor\n Executor -- \"mint a 10 minute token\" --> IAM\n Executor -- \"one call, as your account\" --> MCP`}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-can-do`,children:`What it can do`}),`\n`,_jsx(_components.p,{children:`Polycore classifies every tool Google advertises:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cloud Run.`}),` `,_jsx(_components.code,{children:`list_services`}),` and `,_jsx(_components.code,{children:`get_service`}),` are reads and run when they\nare called. `,_jsx(_components.code,{children:`deploy_service_from_image`}),`, `,_jsx(_components.code,{children:`deploy_service_from_archive`}),`, and\n`,_jsx(_components.code,{children:`deploy_service_from_file_contents`}),` are writes, so each one waits for a human\napproval before anything reaches production.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Cloud Logging.`}),` `,_jsx(_components.code,{children:`list_log_entries`}),`, `,_jsx(_components.code,{children:`list_log_names`}),`, `,_jsx(_components.code,{children:`list_buckets`}),`,\n`,_jsx(_components.code,{children:`get_bucket`}),`, `,_jsx(_components.code,{children:`list_views`}),`, and `,_jsx(_components.code,{children:`get_view`}),` are all reads.`]}),`\n`,_jsxs(_components.p,{children:[`Anything Google adds that Polycore has not classified is treated as unknown. It\nis gated like a write, and it arrives `,_jsx(_components.strong,{children:`disabled`}),` so an admin reviews it\nbefore anyone can call it.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`This is shared authority. Everyone in the connection’s audience acts through\nthe one service account, reaching projects their own Google account may not be\nable to open. Every Google tool takes its target project as an argument, so\nthe service account’s IAM grants are the resource boundary. Grant them on the\nprojects this connection should reach, and no others.`})}),`\n`,_jsx(Heading,{level:`2`,id:`connect-it`,children:`Connect it`}),`\n`,_jsxs(_components.p,{children:[`First, enable the products you want to reach through MCP in your Google Cloud\nproject. See Google’s\n`,_jsx(_components.a,{href:`https://docs.cloud.google.com/mcp/enable-disable-mcp-servers`,children:`enable MCP servers`}),`\nguide.`]}),`\n`,_jsxs(_components.p,{children:[`Then, in Polycore, open `,_jsx(_components.strong,{children:`Project settings → Integrations`}),`, pick `,_jsx(_components.strong,{children:`Google\nCloud Run`}),` or `,_jsx(_components.strong,{children:`Google Cloud Logging`}),`, and choose `,_jsx(_components.strong,{children:`Connect`}),`. The connect\nscreen generates the setup for that connection’s roles, including Polycore’s\nexecutor identity, as either `,_jsx(_components.code,{children:`gcloud`}),` commands or Terraform. Both make the same\ngrant, so pick whichever matches how you manage the project. The commands look\nlike this:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PROJECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"acme-prod\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`SA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"polycore@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PROJECT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.iam.gserviceaccount.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gcloud`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` iam`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` service-accounts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` polycore`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --project=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PROJECT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --display-name=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Polycore\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gcloud`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` projects`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add-iam-policy-binding`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PROJECT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --member=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"serviceAccount:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SA`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --role=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"roles/mcp.toolUser\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gcloud`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` projects`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add-iam-policy-binding`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PROJECT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --member=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"serviceAccount:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SA`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --role=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"roles/run.viewer\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Let Polycore act as this account, and only this account.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gcloud`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` iam`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` service-accounts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add-iam-policy-binding`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SA`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --project=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PROJECT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --member=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"serviceAccount:POLYCORE_EXECUTOR\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --role=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"roles/iam.serviceAccountTokenCreator\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The Terraform tab is the same grant as resources you paste into whatever\nalready manages the project, ending in a `,_jsx(_components.code,{children:`polycore_service_account`}),` output.\nOptional roles arrive commented out in both tabs, so applying or pasting can\nnever widen the connection by accident.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`roles/mcp.toolUser`}),` is required for any Google MCP call at all. The product\nrole decides what the connection can reach: `,_jsx(_components.code,{children:`roles/run.viewer`}),` for reads, or\n`,_jsx(_components.code,{children:`roles/run.developer`}),` plus `,_jsx(_components.code,{children:`roles/iam.serviceAccountUser`}),` if you also want the\ndeploy tools to work. For Cloud Logging, `,_jsx(_components.code,{children:`roles/logging.viewer`}),`.`]}),`\n`,_jsx(_components.p,{children:`Paste the service account’s email back into Polycore, pick the environment it\nbelongs to, name its GCP project, and choose a namespace and audience.`}),`\n`,_jsxs(_components.p,{children:[`Repeat for your other environments from the connection’s `,_jsx(_components.strong,{children:`Environments`}),`\npanel. Each one takes its own service account and project; the tools, their\nhazards and their enable flags stay on the connection, so you classify Google’s\nsurface once rather than once per environment.`]}),`\n`,_jsx(Heading,{level:`2`,id:`using-it`,children:`Using it`}),`\n`,_jsx(_components.p,{children:`Ask in Slack, or from any front door:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Which Cloud Run services have failing revisions?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Capabilities appear in the catalog under the connection’s namespace:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` polycore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"run/list_services\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {});`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The connection supplies the project, so it is not asked for. That matters\nbeyond convenience: Google marks it required, and a model told an argument is\nrequired will invent a value rather than leave it out.`}),`\n`,_jsxs(_components.p,{children:[`A Cloud Run region is not part of the connection, because a region belongs to\na service rather than to an environment. Cloud Run’s tools take `,_jsx(_components.code,{children:`region: \"-\"`}),`\nto mean every region, which is what the tool description tells a caller, so\nlisting services finds them wherever they run and each result carries the\nregion to use for anything more specific.`]}),`\n`,_jsxs(_components.p,{children:[`Where a connection covers more than one environment, its tools take a\n`,_jsx(_components.code,{children:`project`}),` argument listing exactly those projects, and it is required. There is\nno honest default across dev and prod, and Slack has no environment switcher,\nso anything else means guessing: “get me the GCP logs” would answer about one\nproject while you were asking about another. Say which project you mean and you\nget the credential bound to it. Because the list is closed, a project cannot be\ninvented, and naming one this connection has no credential for is refused\nrather than answered from somewhere else.`]}),`\n`,_jsx(_components.p,{children:`A connection covering one environment asks for nothing, since there is only one\ntarget the call can mean.`}),`\n`,_jsxs(_components.p,{children:[`Agent and MCP tool names are `,_jsx(_components.code,{children:`direct__\u003cnamespace>__\u003ctool>`}),`. The audit row\nrecords the caller, the connection, the tool, and the service account the call\nacted as.`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Two products.`}),` Google publishes MCP servers for around sixty. More arrive\nas they are classified.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`One credential per environment.`}),` A connection covers every environment of\na project under one namespace, but each environment needs its own service\naccount and GCP project added to it. An environment with none has no tools\nthere rather than falling back to another environment’s credential.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Impersonation, not OAuth.`}),` Connecting as your own Google account is not\nsupported, and would inherit your full cloud access if it were.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`removing-it`,children:`Removing it`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Remove connection`}),` stops calls at once and drops the tools from the catalog.\nBecause Polycore stores no Google credential, there is nothing to rotate\nafterwards, but removing the `,_jsx(_components.code,{children:`roles/iam.serviceAccountTokenCreator`}),` binding in\nyour own project is what makes it permanent. The audit history stays.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Google Cloud","description":"Read and act on Cloud Run and Cloud Logging through Google's own MCP servers, without handing Polycore a Google credential.","icon":"cloud","href":"/integrations/google-cloud"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Polycore holds no Google credential","slug":"polycore-holds-no-google-credential","depth":2,"children":[]},{"title":"What it can do","slug":"what-it-can-do","depth":2,"children":[]},{"title":"Connect it","slug":"connect-it","depth":2,"children":[]},{"title":"Using it","slug":"using-it","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]},{"title":"Removing it","slug":"removing-it","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"polycore","siteName":"Polycore","title":"Google Cloud - Polycore","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T04:41:21.160Z","originalFileLocation":"integrations/google-cloud.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Read and act on Cloud Run and Cloud Logging through Google\u0026#x27;s own MCP servers, without handing Polycore a Google credential.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Polycore\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Google Cloud - Polycore\">\u003cmeta data-mint-head property=\"og:description\" content=\"Read and act on Cloud Run and Cloud Logging through Google\u0026#x27;s own MCP servers, without handing Polycore a Google credential.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Polycore\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.polycore.ai/integrations/google-cloud\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://polycore.mintlify.site/_mintlify/api/og/v2?division=Direct+integrations\u0026amp;title=Google+Cloud\u0026amp;description=Read+and+act+on+Cloud+Run+and+Cloud+Logging+through+Google%27s+own+MCP+servers%2C+without+handing+Polycore+a+Google+credential.\u0026amp;theme=997c21bfb7766f4fddc91cb8\u0026amp;signature=9712f97d5847676a3c816bdfdc4fe2ed257310941625259a13a7d91e68ddcc08\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Google Cloud - Polycore\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Read and act on Cloud Run and Cloud Logging through Google\u0026#x27;s own MCP servers, without handing Polycore a Google credential.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://polycore.mintlify.site/_mintlify/api/og/v2?division=Direct+integrations\u0026amp;title=Google+Cloud\u0026amp;description=Read+and+act+on+Cloud+Run+and+Cloud+Logging+through+Google%27s+own+MCP+servers%2C+without+handing+Polycore+a+Google+credential.\u0026amp;theme=997c21bfb7766f4fddc91cb8\u0026amp;signature=9712f97d5847676a3c816bdfdc4fe2ed257310941625259a13a7d91e68ddcc08\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/polycore/4ZO2inT8EoIGf5el/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Polycore\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F5ACD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.polycore.ai/integrations/google-cloud\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/google-cloud.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.polycore.ai/#organization\",\"name\":\"Polycore\",\"url\":\"https://docs.polycore.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/polycore/m2QgduBJXFyiKbEs/images/polycore-wordmark-light.png?fit=max\u0026auto=format\u0026n=m2QgduBJXFyiKbEs\u0026q=85\u0026s=59bf07d8641878aec1e375a98760ef47\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.polycore.ai#website\",\"name\":\"Polycore\",\"url\":\"https://docs.polycore.ai\",\"publisher\":{\"@id\":\"https://docs.polycore.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.polycore.ai/integrations/google-cloud#webpage\",\"url\":\"https://docs.polycore.ai/integrations/google-cloud\",\"name\":\"Google Cloud\",\"description\":\"Read and act on Cloud Run and Cloud Logging through Google's own MCP servers, without handing Polycore a Google credential.\",\"dateModified\":\"2026-09-10T04:41:21.160Z\",\"isPartOf\":{\"@id\":\"https://docs.polycore.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.polycore.ai/integrations/google-cloud#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.polycore.ai/integrations/google-cloud#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Direct integrations\",\"item\":\"https://docs.polycore.ai/integrations/github\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Cloud\",\"item\":\"https://docs.polycore.ai/integrations/google-cloud\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.polycore.ai/integrations/google-cloud#article\",\"headline\":\"Google Cloud\",\"name\":\"Google Cloud\",\"description\":\"Read and act on Cloud Run and Cloud Logging through Google's own MCP servers, without handing Polycore a Google credential.\",\"url\":\"https://docs.polycore.ai/integrations/google-cloud\",\"mainEntityOfPage\":{\"@id\":\"https://docs.polycore.ai/integrations/google-cloud#webpage\"},\"dateModified\":\"2026-09-10T04:41:21.160Z\",\"publisher\":{\"@id\":\"https://docs.polycore.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.polycore.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Polycore\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Polycore\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/google-cloud.md","siteName":"Polycore","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"Integrations","icon":"blocks","groups":[{"group":"Integration model","pages":[{"title":"Integrations","icon":"blocks","href":"/integrations/overview"}]},{"group":"Direct integrations","pages":[{"title":"GitHub","description":"Read repositories, issues, pull requests, and Actions runs through GitHub's own MCP server, governed by Polycore.","icon":"github","href":"/integrations/github"},{"title":"Google Cloud","icon":"cloud","href":"/integrations/google-cloud"}]},{"group":"Data platforms","pages":[{"group":"Postgres","icon":"database","root":{"title":"Postgres","description":"How a Polycore runner connects to Postgres with layered read-only enforcement, and how optional writes are previewed row by row before they run.","icon":"database","href":"/integrations/postgres"},"pages":[{"title":"pg-dry-run","icon":"scan-search","tag":"Open source","href":"/pg-dry-run"}]},{"title":"Firestore","icon":"flame","href":"/integrations/firestore"},{"title":"Firebase Auth","icon":"user-check","href":"/integrations/firebase-auth"},{"title":"Firebase Storage","icon":"folder-open","href":"/integrations/firebase-storage"},{"title":"PostHog","icon":"chart-no-axes-combined","href":"/integrations/posthog"}]},{"group":"Interfaces","pages":[{"title":"Slack","icon":"message-square","href":"/integrations/slack"},{"title":"MCP","icon":"cable","href":"/integrations/mcp"}]},{"group":"Build the catalog","pages":[{"title":"Runner configuration","icon":"file-json","href":"/authoring/runner-config"},{"title":"Author actions","icon":"braces","href":"/authoring/actions"}]}]},{"tab":"Reference","icon":"library","pages":[{"title":"Reference","href":"/reference/glossary"}]}]},"basePath":"","title":"Google Cloud - Polycore","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["10e4515597"],"chunks":["BannerMarkdown-BUsnMns2.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}