googleapis / googleapis/gcloud-mcp

feat(gcloud-mcp): add setup_project tool

Open
#326 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
904
Forks
83
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.