Skip to main content

GCP Setup

Installing the Google Cloud SDK

The Google Cloud SDK is a set of tools for interacting with the Google Cloud Platform (GCP). These tools include:

  • gcloud: The primary command-line interface
  • gsutil: Tool for managing Google Cloud Storage
  • bq: Tool for working with BigQuery

Prerequisites

  • Python Environment: We'll assume you've already got a Python environment ready to go. If not, review the getting started section on how to create a python environment.

GCLOUD SDK Installation Instructions

1. Download the SDK

2. Installation

By Operating System

macOS

  1. Open a terminal window.
  2. Extract the downloaded archive:
tar -xvzf [ARCHIVE_FILE_NAME]

(Replace [ARCHIVE_FILE_NAME] with the actual name of the downloaded file) 3. Run the install script:

./[ARCHIVE_DIRECTORY]/install.sh

(Replace [ARCHIVE_DIRECTORY] with the name of the extracted directory) 4. Follow the prompts, selecting default options if unsure. 5. Restart your terminal window.

3. Initialize the gcloud CLI Once installed, initialize the SDK:

gcloud init

Follow the prompts to log in to your Google account and configure default settings.

Let me know if you'd like assistance with any specific part of the process!

Authentication: Keyring Setup 🔐

Google's recommended approach for authenticating to Artifact Registry PyPi repositories is using the Python keyring library. Here's how to set it up:

  1. Install the Packages: Using UV

    uv pip install keyring keyrings.google-artifactregistry-auth

    Otherwise

    pip install keyring keyrings.google-artifactregistry-auth

  2. Verify Installation

    keyring --list-backends

    You should see "ChainerBackend" and "GooglePythonAuth" in the output.

  3. Get Configuration

    gcloud artifacts print-settings python --project=mcp-idp-app-registry-p-13hf \
    --repository=mcp-art-internal-idp-python \
    --location=us-central1
  4. Keyring Authentication with User Credentials

Once keyring is set up, setup gcloud application-default login, and log in using the Google Cloud CLI:

gcloud auth application-default login
gcloud auth login

Now you're all set to install MCP Package! 🎉