GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Read-only GCP tools for debugging incidents and finding cost savings
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
검사 3/3 통과 · 내 컴퓨터에서 실행돼요 · ✓ 명령 확인 2026년 11월 14일
먼저: 어떤 AI를 쓰시나요?
쓰는 앱을 고르면 아래에 단계가 나옵니다.
Claude에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
이 메시지를 Claude 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Claude에 MCP server GCP Platform Engineer을 설치해 주세요. 순서대로: 1) uv --version로 uv가 있는지 확인. 없으면 https://docs.astral.sh/uv/getting-started/installation/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "platform": { "command": "uvx", "args": [ "platform-mcp" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 GCP Platform Engineer의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
uv --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: uv에는 클릭형 설치 파일이 없습니다. uv 공식 페이지에서 내 시스템(macOS 또는 Windows)용 한 줄 명령을 복사해 터미널에 붙여 넣으세요 · Python을 따로 설치할 필요 없이 uv가 필요할 때 자동으로 내려받습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: uv --version
한 번 설치하면 uv가 필요한 모든 도구에서 쓸 수 있습니다
SettingsDeveloperEdit Config
{
"mcpServers": {
"platform": {
"command": "uvx",
"args": [
"platform-mcp"
]
}
}
}GCP Platform Engineer을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude가 GCP Platform Engineer을 쓰고 있다고 하거나 답에 GCP Platform Engineer 도구 이름이 나오면 연결된 거예요
위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.
PLATFORM_MCP_ENVIRONMENTS JSON map of environment name to GCP settings. Omit when using a config file at ~/.config/platform-mcp/config.toml.PLATFORM_MCP_DEFAULT_ENVIRONMENT Environment used when a tool call omits the environment argument.PLATFORM_MCP_CONFIG Path to a TOML config file, overriding ~/.config/platform-mcp/config.toml.PLATFORM_MCP_AUDIT_LOG Path for the JSONL tool-call audit log, or 'off' to disable it.설명은 아직 영어 원문입니다.
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
ChatGPT는 아직 GCP Platform Engineer에 연결할 수 없어요
GCP Platform Engineer는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요
A · GCP Platform Engineer에 연결되는 앱 쓰기
B · 개발자 도구에서 ChatGPT에 연결되는 다른 서버
같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요
Claude Code에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
이 메시지를 Claude Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Claude Code에 MCP server GCP Platform Engineer을 설치해 주세요. 순서대로: 1) uv --version로 uv가 있는지 확인. 없으면 https://docs.astral.sh/uv/getting-started/installation/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): claude mcp add --scope user platform -- uvx platform-mcp 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 GCP Platform Engineer의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
uv --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: uv에는 클릭형 설치 파일이 없습니다. uv 공식 페이지에서 내 시스템(macOS 또는 Windows)용 한 줄 명령을 복사해 터미널에 붙여 넣으세요 · Python을 따로 설치할 필요 없이 uv가 필요할 때 자동으로 내려받습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: uv --version
한 번 설치하면 uv가 필요한 모든 도구에서 쓸 수 있습니다
Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기
claude mcp add --scope user platform -- uvx platform-mcpGCP Platform Engineer이 목록에 있고 연결됨으로 보이면 돼요
GCP Platform Engineer을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Claude Code가 GCP Platform Engineer을 쓰고 있다고 하거나 답에 GCP Platform Engineer 도구 이름이 나오면 연결된 거예요
위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.
PLATFORM_MCP_ENVIRONMENTS JSON map of environment name to GCP settings. Omit when using a config file at ~/.config/platform-mcp/config.toml.PLATFORM_MCP_DEFAULT_ENVIRONMENT Environment used when a tool call omits the environment argument.PLATFORM_MCP_CONFIG Path to a TOML config file, overriding ~/.config/platform-mcp/config.toml.PLATFORM_MCP_AUDIT_LOG Path for the JSONL tool-call audit log, or 'off' to disable it.설명은 아직 영어 원문입니다.
메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Cursor에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
이 메시지를 Cursor 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 Cursor에 MCP server GCP Platform Engineer을 설치해 주세요. 순서대로: 1) uv --version로 uv가 있는지 확인. 없으면 https://docs.astral.sh/uv/getting-started/installation/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "mcpServers": { "platform": { "command": "uvx", "args": [ "platform-mcp" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 GCP Platform Engineer의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
uv --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: uv에는 클릭형 설치 파일이 없습니다. uv 공식 페이지에서 내 시스템(macOS 또는 Windows)용 한 줄 명령을 복사해 터미널에 붙여 넣으세요 · Python을 따로 설치할 필요 없이 uv가 필요할 때 자동으로 내려받습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: uv --version
한 번 설치하면 uv가 필요한 모든 도구에서 쓸 수 있습니다
GCP Platform Engineer을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ Cursor가 GCP Platform Engineer을 쓰고 있다고 하거나 답에 GCP Platform Engineer 도구 이름이 나오면 연결된 거예요
위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.
PLATFORM_MCP_ENVIRONMENTS JSON map of environment name to GCP settings. Omit when using a config file at ~/.config/platform-mcp/config.toml.PLATFORM_MCP_DEFAULT_ENVIRONMENT Environment used when a tool call omits the environment argument.PLATFORM_MCP_CONFIG Path to a TOML config file, overriding ~/.config/platform-mcp/config.toml.PLATFORM_MCP_AUDIT_LOG Path for the JSONL tool-call audit log, or 'off' to disable it.설명은 아직 영어 원문입니다.
메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
VS Code에 연결할 수 있지만 먼저 준비가 필요해요
먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
이 메시지를 VS Code 채팅에 붙여 넣으세요. AI가 컴퓨터를 확인하고 어떤 파일을 바꿀지 알려 준 뒤 매번 동의를 기다립니다.
이 컴퓨터의 VS Code에 MCP server GCP Platform Engineer을 설치해 주세요. 순서대로: 1) uv --version로 uv가 있는지 확인. 없으면 https://docs.astral.sh/uv/getting-started/installation/에서 설치하라고 알려 주고 직접 설치하지 마세요. 2) 이 설정만 사용하세요(PopNx MCP 확인 완료): { "servers": { "platform": { "type": "stdio", "command": "uvx", "args": [ "platform-mcp" ] } } } 3) 바꿀 파일의 전체 경로나 실행할 명령을 알려 주고 제 동의를 기다리세요. 4) 키는 필요 없습니다. 5) 합의한 대로 실행한 뒤 GCP Platform Engineer의 도구가 실제로 보이는지 확인하세요.이 메시지에는 키가 없습니다. 키가 필요하면 AI가 파일이나 앱 입력란에 직접 붙여 넣으라고 안내합니다.
이미 설치했나요? 먼저 확인 · 터미널을 열고 이 명령을 입력한 뒤 Enter
uv --versionMac: ⌘ + Space를 누르고 Terminal 입력 후 Enter
Windows: 시작 메뉴를 열고 Windows PowerShell 입력 후 "열기"
아직 설치하지 않았다면: uv에는 클릭형 설치 파일이 없습니다. uv 공식 페이지에서 내 시스템(macOS 또는 Windows)용 한 줄 명령을 복사해 터미널에 붙여 넣으세요 · Python을 따로 설치할 필요 없이 uv가 필요할 때 자동으로 내려받습니다
설치가 끝나면 터미널을 닫았다가 다시 열고 같은 명령을 실행하세요. 버전 번호가 나와야 합니다: uv --version
한 번 설치하면 uv가 필요한 모든 도구에서 쓸 수 있습니다
GCP Platform Engineer을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐✓ VS Code가 GCP Platform Engineer을 쓰고 있다고 하거나 답에 GCP Platform Engineer 도구 이름이 나오면 연결된 거예요
위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.
PLATFORM_MCP_ENVIRONMENTS JSON map of environment name to GCP settings. Omit when using a config file at ~/.config/platform-mcp/config.toml.PLATFORM_MCP_DEFAULT_ENVIRONMENT Environment used when a tool call omits the environment argument.PLATFORM_MCP_CONFIG Path to a TOML config file, overriding ~/.config/platform-mcp/config.toml.PLATFORM_MCP_AUDIT_LOG Path for the JSONL tool-call audit log, or 'off' to disable it.설명은 아직 영어 원문입니다.
메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요
Claude Code
claude mcp add --scope user platform -- uvx platform-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"platform": {
"command": "uvx",
"args": [
"platform-mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"platform": {
"command": "uvx",
"args": [
"platform-mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"platform": {
"type": "stdio",
"command": "uvx",
"args": [
"platform-mcp"
]
}
}
}PLATFORM_MCP_ENVIRONMENTS envPLATFORM_MCP_DEFAULT_ENVIRONMENT envPLATFORM_MCP_CONFIG envPLATFORM_MCP_AUDIT_LOG env설명은 아직 영어 원문입니다.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.
내 컴퓨터에서 실행하는 앱
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 15일 점검
레지스트리 이름이 GitHub 계정 deBilla 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
코드 마지막 변경: 24일 전
MIT 사용
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
아직 확인하지 않았습니다
질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.
아직 리뷰가 없어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 24일 전 변경됐고, 최신 버전(0.4.0)은 2개월 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
같은 카테고리에는: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
같은 카테고리, 다른 제작자, 명령 확인 완료. 공식이 먼저, 그다음 스타 순.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
mcp-name: io.github.deBilla/platform-mcp
A read-only Model Context Protocol server that turns an AI agent (Claude Code, Claude Desktop, or any MCP client) into a GCP platform engineer. Point it at your Google Cloud projects and ask it to investigate incidents, take inventory, and surface cost-optimization opportunities — all without any ability to change your infrastructure.
Observation only. No tool in this server mutates state. Combined with a viewer-only identity (below), that gives you a hard, defense-in-depth guarantee that an agent can look but never touch.
| Area | Tools |
|---|---|
| Environments | list_environments |
| Logs & errors | query_logs, get_recent_errors, list_error_groups |
| Metrics & alerting | query_metric, list_alert_policies, list_uptime_checks |
| Cost & recommendations | get_cost_breakdown, get_billing_info, list_cost_recommendations, list_recommendations |
| Resource inventory | search_assets, list_compute_instances, list_cloud_run_services, list_gke_clusters, list_sql_instances |
Typical prompts once it's connected:
One server can reach several projects. Define them under PLATFORM_MCP_ENVIRONMENTS (see Configuration) and the agent picks one from the wording of your prompt:
Every tool takes an optional environment argument. Omit it and the default environment is used; pass environment="production" to target another. Names, any aliases you define, common shorthands (prod, stg, qa, …) and bare project ids all resolve. An unrecognized name is an error listing the valid options — a typo can never silently retarget the wrong project.
Each environment carries its own service account, so staging and production are reached through separate identities from the same process, and every result echoes back the environment and project it came from.
gcloud CLI for the one-time setupuvx platform-mcp # no install step; uv fetches it on demand
pipx install platform-mcp # or keep it on PATH
From a checkout, for development:
git clone https://github.com/deBilla/platform-mcp.git
cd platform-mcp python3 -m venv .venv ./.venv/bin/pip install -e ".[dev]"
platform-mcp doctor
This checks, for every configured environment, that Application Default Credentials exist, that the read-only service account can be impersonated, that a real API read succeeds, and that the billing export is readable — printing the exact command to fix whatever fails. Run it before reporting a problem.
Run these once per project you want to reach — staging and production each need their own APIs enabled and their own read-only service account.
1. Enable the APIs the tools depend on:
gcloud services enable \
logging.googleapis.com monitoring.googleapis.com clouderrorreporting.googleapis.com \ recommender.googleapis.com cloudasset.googleapis.com cloudbilling.googleapis.com \ bigquery.googleapis.com \ --project YOUR_PROJECT_ID
2. Grant read-only access to the identity the server runs as.
For local development with your own login (Application Default Credentials):
gcloud auth application-default login
The identity needs these viewer roles on the project, plus roles/billing.viewer on the billing account:
roles/viewer # broad read (compute, run, gke, sql via Asset Inventory)
roles/logging.viewer roles/monitoring.viewer roles/errorreporting.viewer roles/recommender.viewer roles/cloudasset.viewer roles/bigquery.dataViewer # only for get_cost_breakdown roles/bigquery.jobUser # only for get_cost_breakdown
3. (Recommended) Use a dedicated read-only service account instead of your login. platform-mcp setup does every step below, is safe to re-run, and prints the config stanza at the end. It ships with the package, so there is nothing to clone:
uvx platform-mcp setup \
--project YOUR_PROJECT_ID \ --user you@example.com \ --billing-dataset YOUR_BILLING_PROJECT:billing # optional
Or by hand:
PROJECT=YOUR_PROJECT_ID
gcloud iam service-accounts create platform-mcp-ro \ --display-name "platform-mcp read-only" --project $PROJECT
SA=platform-mcp-ro@$PROJECT.iam.gserviceaccount.com for ROLE in roles/viewer roles/logging.viewer roles/monitoring.viewer \ roles/errorreporting.viewer roles/recommender.viewer roles/cloudasset.viewer \ roles/bigquery.jobUser; do gcloud projects add-iam-policy-binding $PROJECT \ --member="serviceAccount:$SA" --role="$ROLE" --condition=None done
gcloud iam service-accounts add-iam-policy-binding $SA \ --member="user:you@example.com" \ --role="roles/iam.serviceAccountTokenCreator" --project $PROJECT
The grant everyone forgets. roles/bigquery.jobUser above only lets the account *start* a query; it grants no access to any data. A billing export almost always lives in a different project, so the account also needs read on that dataset. Without it get_cost_breakdown returns 403 while every other tool works, which reads like a bug in the tool rather than a missing grant:
bq add-iam-policy-binding \
--member="serviceAccount:$SA" --role=roles/bigquery.dataViewer \ YOUR_BILLING_PROJECT:billing
If you lack admin on the billing project, that one line is what to send to someone who has it. platform-mcp doctor checks it and says which side is missing.
Then reference it as that environment's impersonate value in PLATFORM_MCP_ENVIRONMENTS (preferred — no key file), or point at a downloaded key via GOOGLE_APPLICATION_CREDENTIALS.
Impersonation is performed by whatever identity your ADC resolves to. If your
ADC is itself an impersonated service account, that SA — not your user — needs
roles/iam.serviceAccountTokenCreatoron eachplatform-mcp-ro.
Read-only is enforced by IAM, not by OAuth scope. The server requests the broad cloud-platform scope and stays read-only purely because it never calls a mutating API. Do not rely on the code alone — run it under a viewer-only identity (step 3 above) so the credential itself is incapable of writing, regardless of what code executes. This gives you two independent layers: the server doesn't try to write, and the identity couldn't if it did.
With multiple environments this stays per-project: each environment authenticates as its own service account, so a staging identity is never used to reach production. Grant each one viewer-only access to its project alone.
The friendliest option is a config file, which keeps project ids and service account emails out of every client config you own:
mkdir -p ~/.config/platform-mcp
cp config.toml.example ~/.config/platform-mcp/config.toml $EDITOR ~/.config/platform-mcp/config.toml
With that in place, registering the server takes no environment variables at all. Point PLATFORM_MCP_CONFIG elsewhere to use a different file — a copy committed to your infrastructure repo, for instance.
Environment variables still work and always win over the file, so an existing setup keeps running unchanged and a one-off override needs no edit:
| Variable | Purpose |
|---|---|
PLATFORM_MCP_ENVIRONMENTS | JSON map of environment name → settings. The recommended way to configure the server. |
PLATFORM_MCP_DEFAULT_ENVIRONMENT | Environment used when a tool call omits environment. Defaults to staging if configured, else the first entry. |
GOOGLE_APPLICATION_CREDENTIALS | Path to a read-only SA key file (alternative to impersonation). |
PLATFORM_MCP_ENVIRONMENTS holds a JSON object; each entry accepts:
| Key | Purpose |
|---|---|
project | Required. GCP project id. |
impersonate | Read-only SA to impersonate for this environment (no key file needed). |
billing_export_table | Fully-qualified BigQuery billing export table, required only for get_cost_breakdown (e.g. YOUR_PROJECT_ID.billing.gcp_billing_export_v1_XXXXXX). |
aliases | Extra names the agent may use for this environment. |
A bare string value is shorthand for {"project": "..."}. As JSON inside .mcp.json the quotes must be escaped; unescaped it reads:
{
"staging": { "project": "my-app-staging", "impersonate": "platform-mcp-ro@my-app-staging.iam.gserviceaccount.com" }, "production": { "project": "my-app", "impersonate": "platform-mcp-ro@my-app.iam.gserviceaccount.com", "billing_export_table": "my-app.billing.gcp_billing_export_v1_XXXXXX" } }
Single-environment mode. If PLATFORM_MCP_ENVIRONMENTS is unset the server behaves as before, exposing one environment named default:
| Variable | Purpose |
|---|---|
GCP_PROJECT | Target project. Falls back to your ADC default project if unset. |
IMPERSONATE_SERVICE_ACCOUNT | Read-only SA to impersonate. Also the fallback for registry entries with no impersonate. |
BILLING_EXPORT_TABLE | Billing export table. Also the fallback for registry entries with no billing_export_table. |
Claude Code — with a config file in place, this is the whole thing:
claude mcp add platform-mcp --scope user -- uvx platform-mcp
Claude Desktop — needs an absolute path to uvx; see Claude Desktop for the full walkthrough.
Without a config file, add the environment variables from .mcp.json.example to either form.
Every tool here is read-only, so approving each call individually adds nothing. Allow the whole server once, in Claude Code settings:
{ "permissions": { "allow": ["mcp__platform-mcp__*"] } }
The glob must sit after a literal mcp__ __ prefix — an unanchored pattern like mcp__* is ignored with a warning and approves nothing.
MCP Inspector — for interactive testing:
uvx --with 'mcp[cli]' mcp dev src/platform_mcp/server.py
Installing for a teammate who uses Claude Desktop rather than the CLI. It works the same as Claude Code, with one failure mode the CLI does not have.
Claude Desktop does not inherit your shell `PATH`. It launches from the Finder, so uvx and anything installed by Homebrew or uv are invisible to it. A config that says "command": "uvx" fails with ENOENT — the server never starts, and the error names the command rather than the reason. The command path must be absolute.
What does *not* break is credentials. Application Default Credentials are a file the Google libraries read directly, so gcloud is needed once, in a terminal, to create that file — not at runtime. The config file is found the same way, from the home directory, whatever launched the server.
Each person impersonates the read-only service accounts, so an admin runs this once per person, per environment (the platform-mcp setup script does it for whoever runs it, but not for anyone else):
gcloud iam service-accounts add-iam-policy-binding \
platform-mcp-ro@YOUR_PROJECT_ID.iam.gserviceaccount.com \ --member="user:teammate@example.com" \ --role="roles/iam.ser