gcp-mcp-setup
🐉 Use when the user wants to set up Google Managed MCP (OneMCP) servers for their CLI environment. Automates enabling services, MCP servers, generating API keys, and configuring the MCP settings file for the active harness (Gemini, Antigravity, or Copilot CLI).
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-12
- Stars
- ★ 131
- Forks
- 9
01 前言 Front Matter
- name
- gcp-mcp-setup
- metadata
- { "author": "Riccardo", "status": "published", "version": "0.0.10" }
- description
- 🐉 Use when the user wants to set up Google Managed MCP (OneMCP) servers for their CLI environment. Automates enabling services, MCP servers, generating API keys, and configuring the MCP settings file for the active harness (Gemini, Antigravity, or Copilot CLI).
02 资源文件 9
- 参考文档CHANGELOG.md3.5 KB
- 参考文档EVAL.md1.6 KB
- 参考文档references/antigravity/mcp_config.json1.8 KB
- 参考文档references/gemini/settings.json1.8 KB
- 参考文档references/TEST_PROMPTS.md1.0 KB
- 脚本scripts/harness_registry.py3.4 KB
- 脚本scripts/setup_onemcp.py8.5 KB
- 脚本scripts/test_mcp_endpoint.sh2.0 KB
- 脚本scripts/verify_setup.py12.7 KB
03 SKILL.md 正文
OneMCP Setup Skill
Overview
This skill provides the automated steps to configure your environment and enable the Core Google Managed MCP servers (Logging, Monitoring, GKE, Run, Resource Manager, Developer Knowledge) by default. Use the --all flag to include additional services like Error Reporting, Cloud SQL, Spanner, Pub/Sub, Vertex AI, Firestore, and BigQuery.
When to Use
Use this skill when the user asks to "install OneMCP", "setup OneMCP", or "configure Google Managed MCP servers".
Core Pattern
- Prerequisites Verification: Ensure the user has
gcloudauthenticated and a target Google Cloud Project with billing enabled. - Setup Script Execution: Run the provided script to enable APIs, MCP services, and generate the required API Key.
- By default, it installs a Lean SRE toolset (Logging, Monitoring, GKE, Run, Resource Manager, Developer Knowledge).
- Use the
--allflag to include optional services (Error Reporting, Databases, Vertex AI). - Use
--harnessto target a specific CLI harness (gemini,antigravity, orcopilot). Defaults togemini+antigravity. - Script:
skills/gcp-mcp-setup/scripts/setup_onemcp.py <PROJECT_ID> [--local | --global] [--harness {gemini,antigravity,copilot}] [--all] [--google-maps-key YOUR_KEY]
- Configure Settings: The script automatically writes the
mcpServersconfiguration to the correct location depending on the target harness:- Gemini CLI:
.gemini/settings.json(local) or~/.gemini/settings.json(global). - Antigravity CLI (agy):
.gemini/antigravity/mcp_config.jsonand.gemini/config/mcp_config.json(local) or the global equivalents under~/.gemini/. - GitHub Copilot CLI:
~/.copilot/mcp-config.json(always global — no workspace-level config yet).
- Gemini CLI:
- Verification & Diagnostics:
- Script:
skills/gcp-mcp-setup/scripts/verify_setup.py [--harness {gemini,antigravity,copilot}] - This script checks identity consistency (gcloud vs ADC), runs the harness-specific MCP list command, and confirms all expected google-* servers are registered.
- Script:
Examples
User: "Please install OneMCP on my project my-gcp-project" Agent: "I will use the gcp-mcp-setup skill to configure your project and Gemini settings for Cloud Logging, Developer Knowledge, Firestore, and BigQuery."
Authentication
Note that the gcloud CLI Identity (how you are currently logged in via gcloud auth login) may differ from the MCP Server Identity (which is based on Application Default Credentials, or ADC).
MCP servers typically use ADC to authenticate. If these identities do not match, you may encounter permission errors (e.g., serviceusage.serviceUsageConsumer denied) even if gcloud commands work correctly.
If MCP doesn't work, you can propose to run this on user's behalf: gcloud auth application-default login --account <PROPOSED_IDENTITY_EMAIL>
💡 Path Forward
If you encounter an identity mismatch:
- Run
gcloud auth application-default login --account=YOUR_CLI_IDENTITYto synchronize identities. - Verify the identities match by running the verification script:
python3 skills/gcp-mcp-setup/scripts/verify_setup.py.
Documentation
- Antigravity MCP integration guide: https://antigravity.google/docs/mcp
- Code samples from Romin Irani: https://github.com/rominirani/google-mcp-servers/blob/main/demos/README.md
- All supported products: https://docs.cloud.google.com/mcp/supported-products
04 同仓库更多 Skills
safe-sre-investigator
🐉 Sets up and uses read-only Service Accounts for GCP and Kubernetes investigations using the principle of least privilege, and provides risk assessments for suggested commands. Use when asked to investigate GCP/GKE resources or suggest gcloud/kubectl commands.
pre-publish-checker
🐉 Thoroughly checks files for profanity, internal links, sensitive paths, and professionalism before publication. Use when preparing a codebase or extension for public release.
postmortem-generator
🐉 Creates a PostMortem given enough context about an incident/outage. Will guide user to timeline, action items/bugs, and finally draft a Google Doc with the results.
postmortem-aggregator
🐉 To be used when you have a folder containing N Post Mortem files. This will help crunch data and maintain/update a POMO_AGGREGATED.md file.
monitoring-graphs
🐉 Skill for generating high-quality, annotated incident graphs for post-mortems using Python. Use this when the user needs to visualize an outage, show error rates, or correlate metrics with incident milestones.
investigation-entrypoint
🐉 The primary entrypoint for investigating production outages, orchestrating SRE response, and mitigating incidents on Google Cloud Platform (GKE, Cloud Run, etc.). Start here when an incident occurs.