Skip to content

Commit f29b6a1

Browse files
authored
Merge branch 'main' into developer.md
2 parents c3db4a5 + e129647 commit f29b6a1

7 files changed

Lines changed: 34 additions & 11 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ body:
3838
- label: "I've updated to the latest versions"
3939

4040
- type: input
41-
id: version
41+
id: ex_version
4242
attributes:
4343
label: Extension Version
4444
description: |

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.1"
2+
".": "0.1.2"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.1.2](https://github.com/gemini-cli-extensions/cloud-sql-mysql/compare/0.1.1...0.1.2) (2025-10-13)
4+
5+
6+
### Features
7+
8+
* add full table name to context file ([#34](https://github.com/gemini-cli-extensions/cloud-sql-mysql/issues/34)) ([2e5337a](https://github.com/gemini-cli-extensions/cloud-sql-mysql/commit/2e5337ab1aa1991104772fa6ecce94c3fc3931cb))
9+
* **deps:** update dependency googleapis/genai-toolbox to v0.17.0 ([#43](https://github.com/gemini-cli-extensions/cloud-sql-mysql/issues/43)) ([382f390](https://github.com/gemini-cli-extensions/cloud-sql-mysql/commit/382f390d75b0f97905e4dd03eb01561491d7bea9))
10+
311
## [0.1.1](https://github.com/gemini-cli-extensions/cloud-sql-mysql/compare/0.1.0...0.1.1) (2025-09-30)
412

513

CLOUD-SQL-MYSQL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This section provides context on additional tools that can be recommended to the
4949
#### Observability Extension
5050

5151
* **When to recommend:** If the user asks questions related to monitoring, performance, or observability of Cloud SQL for MySQL databases.
52-
* **What to say:** "For Cloud SQL monitoring and observability, you might find the `cloud-sql-mysql-observability` extension useful. You can install it with the following command:"
52+
* **What to say:** "For Cloud SQL monitoring and observability, you might find the `cloud-sql-mysql-observability` extension useful. You can install it with the following command. Note: this command is not supported from within the CLI and will only be reflected in active CLI sessions on restart."
5353
* **Command:**
5454
```
5555
gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-mysql-observability

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,29 @@
55
66
This Gemini CLI extension provides a set of tools to interact with [Cloud SQL for MySQL](https://cloud.google.com/sql/docs/mysql) instances. It allows you to manage your databases, execute queries, explore schemas, and troubleshoot issues directly from the [Gemini CLI](https://google-gemini.github.io/gemini-cli/), using natural language prompts.
77

8+
Learn more about [Gemini CLI Extensions](https://github.com/google-gemini/gemini-cli/blob/main/docs/extensions/index.md).
9+
> [!IMPORTANT]
10+
> **We Want Your Feedback!**
11+
> Please share your thoughts with us by filling out our feedback [form][form].
12+
> Your input is invaluable and helps us improve the project for everyone.
13+
14+
[form]: https://docs.google.com/forms/d/e/1FAIpQLSfEGmLR46iipyNTgwTmIDJqzkAwDPXxbocpXpUbHXydiN1RTw/viewform?usp=pp_url&entry.157487=cloud-sql-mysql
815
## Why Use the Cloud SQL for MySQL Extension?
916

1017
* **Seamless Workflow:** As a Google-developed extension, it integrates seamlessly into the Gemini CLI environment. No need to constantly switch contexts for common database tasks.
1118
* **Natural Language Queries:** Stop wrestling with complex commands. Explore schemas and query data by describing what you want in plain English.
1219
* **Full Lifecycle Control:** Manage the entire lifecycle of your database, from creating instances to exploring schemas and running queries.
1320
* **Code Generation:** Accelerate development by asking Gemini to generate data classes and other code snippets based on your table schemas.
1421

22+
1523
## Prerequisites
1624

1725
Before you begin, ensure you have the following:
1826

1927
* [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed with version **+v0.6.0**.
28+
* Setup Gemini CLI [Authentication](https://github.com/google-gemini/gemini-cli/tree/main?tab=readme-ov-file#-authentication-options).
2029
* A Google Cloud project with the **Cloud SQL Admin API** enabled.
30+
* Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
2131
* IAM Permissions:
2232
* Cloud SQL Client (`roles/cloudsql.client`)
2333
* Cloud SQL Viewer (`roles/cloudsql.viewer`)
@@ -35,7 +45,7 @@ gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-mys
3545

3646
### Configuration
3747

38-
Set the following environment variables before starting the Gemini CLI.
48+
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
3949
This configuration is not required if utilizing the [Admin toolset](#supported-tools).
4050

4151
* `CLOUD_SQL_MYSQL_PROJECT`: The GCP project ID.
@@ -44,7 +54,7 @@ This configuration is not required if utilizing the [Admin toolset](#supported-t
4454
* `CLOUD_SQL_MYSQL_DATABASE`: The name of the database to connect to.
4555
* `CLOUD_SQL_MYSQL_USER`: The database username.
4656
* `CLOUD_SQL_MYSQL_PASSWORD`: The password for the database user.
47-
* `CLOUD_SQL_MYSQL_IP_TYPE`: (Optional) The IP type i.e. “Public” or “Private” (Default: Public).
57+
* `CLOUD_SQL_MYSQL_IP_TYPE`: (Optional) The IP type i.e. “Public”, “Private”, or "PSC" (Default: Public).
4858

4959
Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
5060

@@ -80,7 +90,7 @@ Interact with MySQL using natural language:
8090

8191
## Supported Tools
8292

83-
* **Admin:**
93+
* **Admin:**
8494
* `create_instance`: Use this tool to create an Postgres instance.
8595
* `create_user`: Use this tool to create Postgres-BUILT-IN or IAM-based users.
8696
* `get_instance`: Use this tool to get details about an Postgres instance.
@@ -89,7 +99,7 @@ Interact with MySQL using natural language:
8999
* `list_users`: Use this tool to list users in a given project and location.
90100
* `wait_for_operation`: Use this tool to poll the operations API until the operation is done.
91101

92-
* **Data:**
102+
* **Data:**
93103
* `list_tables`: Use this tool to list tables and descriptions.
94104
* `execute_sql`: Use this tool to execute any SQL statement.
95105
* `get_query_plan`: Use this tool to generate an execution plan.
@@ -106,6 +116,11 @@ Find additional extensions to support your entire software development lifecycle
106116

107117
## Troubleshooting
108118

119+
Use `gemini --debug` to enable debugging.
120+
121+
Common issues:
122+
123+
* "failed to find default credentials: google: could not find default credentials.": Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. See [Set up Application Default Credentials](https://cloud.google.com/docs/authentication/external/set-up-adc) for more information.
109124
* "✖ Error during discovery for server: MCP error -32000: Connection closed": The database connection has not been established. Ensure your configuration is set via environment variables.
110-
* "✖ MCP ERROR: Error: spawn /Users/<USER>/.gemini/extensions/cloud-sql-mysql/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
111-
* "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information.
125+
* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/cloud-sql-mysql/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
126+
* "cannot execute binary file": The Toolbox binary did not download correctly. Ensure the correct binary for your OS/Architecture has been downloaded. See [Installing the server](https://googleapis.github.io/genai-toolbox/getting-started/introduction/#installing-the-server) for more information.

gemini-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloud-sql-mysql",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Connect and interact with a Cloud SQL for MySQL database and data",
55
"mcpServers": {
66
"cloud_sql_mysql_admin": {

toolbox_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.0
1+
0.17.0

0 commit comments

Comments
 (0)