gemini-cli-extensions/sre · Archived

gcp-mcp-setup

🐉 [SRE] 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).

First seen Jun 21, 2026

Installation

$ npx skills add gemini-cli-extensions/sre --skill gcp-mcp-setup

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from gemini-cli-extensions/sre.

npx skills add gemini-cli-extensions/sre

Browse all from gemini-cli-extensions/sre

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Declared
Windsurf Not declared
Gemini CLI Declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 82
License LICENSE
Default branch main
Open issues 7
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version0.0.10
Declared agents github-copilot gemini antigravity
More metadata
author
Riccardo
version
0.0.10
status
published

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,864 B
  • docs SUMMARY.md 291 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

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

  1. Prerequisites Verification: Ensure the user has gcloud authenticated and a target Google Cloud Project with billing enabled.
  2. 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 --all flag to include optional services (Error Reporting, Databases, Vertex AI). - Use --harness to target a specific CLI harness (gemini, antigravity, or copilot). Defaults to gemini+antigravity. - Script: skills/gcp-mcp-setup/scripts/setuponemcp.py <PROJECTID> [--local | --global] [--harness {gemini,antigravity,copilot}] [--all] [--google-maps-key YOUR_KEY]

  1. Configure Settings: The script automatically writes the mcpServers configuration 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/mcpconfig.json and .gemini/config/mcpconfig.json (local) or the global equivalents under ~/.gemini/. - GitHub Copilot CLI: ~/.copilot/mcp-config.json (always global — no workspace-level config yet).

  1. 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.

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 <PROPOSEDIDENTITYEMAIL>

💡 Path Forward

If you encounter an identity mismatch:

  1. Run gcloud auth application-default login --account=YOURCLIIDENTITY to synchronize identities.
  2. Verify the identities match by running the verification script: python3 skills/gcp-mcp-setup/scripts/verify_setup.py.

Documentation