Feature: Add setup_project workflow tool
Problem
Setting up a new GCP project requires multiple commands: enabling APIs, setting default region/zone, and configuring the project as default. This is tedious and error-prone.
Solution
Add a setup_project tool that handles project configuration in a single operation.
Use Cases
- Bootstrap a new GCP project for development
- Enable multiple APIs at once (e.g., for a Cloud Run + Firestore app)
- Configure project defaults after creation
Implementation
Supports enabling API groups by friendly name:
compute → compute.googleapis.com
storage → storage.googleapis.com
cloud-run → run.googleapis.com + artifactregistry.googleapis.com
cloud-functions → cloudfunctions.googleapis.com + cloudbuild.googleapis.com
kubernetes → container.googleapis.com
bigquery, pubsub, firestore, cloud-sql
Also accepts explicit API names (e.g., vision.googleapis.com).
Parameters
project: GCP project ID
enableApis (optional): Array of API groups or explicit API names
region (optional): Default compute region
zone (optional): Default compute zone
setAsDefault (optional, default true): Set as default project in gcloud config
Features
- Reports success/failure for each step
- Deduplicates APIs automatically
- Provides troubleshooting guidance on failures
Feature: Add
setup_projectworkflow toolProblem
Setting up a new GCP project requires multiple commands: enabling APIs, setting default region/zone, and configuring the project as default. This is tedious and error-prone.
Solution
Add a
setup_projecttool that handles project configuration in a single operation.Use Cases
Implementation
Supports enabling API groups by friendly name:
compute→ compute.googleapis.comstorage→ storage.googleapis.comcloud-run→ run.googleapis.com + artifactregistry.googleapis.comcloud-functions→ cloudfunctions.googleapis.com + cloudbuild.googleapis.comkubernetes→ container.googleapis.combigquery,pubsub,firestore,cloud-sqlAlso accepts explicit API names (e.g.,
vision.googleapis.com).Parameters
project: GCP project IDenableApis(optional): Array of API groups or explicit API namesregion(optional): Default compute regionzone(optional): Default compute zonesetAsDefault(optional, default true): Set as default project in gcloud configFeatures