Files
genai-toolbox/MCP-TOOLBOX-EXTENSION.md
Averi Kitsch c91eca9b54 chore: add gemini cli extension configuration (#1727)
## Description

Create a Gemini CLI extension for the repo to recommend other
extensions.

Notes
* Since the repo has releases. The new release will trigger an extension
update rather than a version update in the JSON.
* MCP-TOOLBOX-EXTENSION.md is used in order to keep GEMINI.md free for
the project context.

## PR Checklist

> Thank you for opening a Pull Request! Before submitting your PR, there
are a
> few things you can do to make sure it goes smoothly:

- [ ] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md)
- [ ] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose)
  before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
- [ ] Make sure to add `!` if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>

---------

Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com>
2025-10-16 22:18:08 +00:00

7.2 KiB

This document helps you find and install the right Gemini CLI extension to interact with your databases.

How to Install an Extension

To install any of the extensions listed below, use the gemini extensions install command followed by the extension's GitHub repository URL.

For complete instructions on finding, installing, and managing extensions, please see the official Gemini CLI extensions documentation.

Example Installation Command:

gemini extensions install https://github.com/gemini-cli-extensions/EXTENSION_NAME

Make sure the user knows:

  • These commands are not supported from within the CLI
  • These commands will only be reflected in active CLI sessions on restart
  • Extensions require Application Default Credentials in your environment. See Set up ADC for a local development environment to learn how you can provide either your user credentials or service account credentials to ADC in a local development environment.
  • Most extensions require you to set environment variables to connect to a database. If there is a link provided for the configuration, fetch the web page and return the configuration.

Find Your Database Extension

Find your database or service in the list below to get the correct installation command.

Note on Observability: Extensions with -observability in their name are designed to help you understand the health and performance of your database instances, often by analyzing metrics and logs.

Google Cloud Managed Databases

BigQuery

Cloud SQL for MySQL

Cloud SQL for PostgreSQL

Cloud SQL for SQL Server

AlloyDB for PostgreSQL

  • Main Extension:

    gemini extensions install https://github.com/gemini-cli-extensions/alloydb
    

    Configuration: https://github.com/gemini-cli-extensions/alloydb/tree/main?tab=readme-ov-file#configuration

  • Observability:

    gemini extensions install https://github.com/gemini-cli-extensions/alloydb-observability
    

    If you are looking for other PostgreSQL options, consider the postgres extension for self-hosted instances, or the cloud-sql-postgresql extension for Cloud SQL for PostgreSQL.

Spanner

Firestore

Other Google Cloud Data Services

Dataplex

Looker

Other Database Engines

These extensions are for connecting to database instances not managed by Cloud SQL (e.g., self-hosted on-prem, on a VM, or in another cloud).

Custom Tools

MCP Toolbox