Skip to content

Commit 5938d75

Browse files
authored
Merge branch 'main' into ci-presubmit
2 parents 55753a4 + 90acdbf commit 5938d75

10 files changed

Lines changed: 54 additions & 17 deletions

.github/workflows/header-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: 'Checkout Repository'
27-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
27+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2828

2929
- name: Check License Header
3030
uses: apache/skywalking-eyes/header@61275cc80d0798a405cb070f7d3a8aaf7cf2c2c1 # v0.8.0

.github/workflows/json-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Check out code
26-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
26+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2727

2828
- name: Run JSON Lint
2929
run: jq . gemini-extension.json

.github/workflows/markdown-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Check out code
27-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
27+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2828

2929
- name: Link Checker
3030
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0

.github/workflows/package-and-upload-assets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout code at the new tag
42-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
4343
with:
4444
ref: ${{ github.event.release.tag_name }}
4545

@@ -102,7 +102,7 @@ jobs:
102102
echo "ARCHIVE_PATH=${ARCHIVE_NAME}" >> $GITHUB_OUTPUT
103103
104104
- name: Upload archive as workflow artifact
105-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
105+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
106106
with:
107107
name: ${{ steps.vars.outputs.archive_name }}
108108
path: ${{ steps.create_archive.outputs.ARCHIVE_PATH }}
@@ -116,10 +116,10 @@ jobs:
116116
contents: write
117117
steps:
118118
- name: Checkout code
119-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
119+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
120120

121121
- name: Download all archives from workflow artifacts
122-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
122+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
123123
with:
124124
path: release-archives
125125

.github/workflows/presubmit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Check out code
25-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
25+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2626

2727
- name: Install Gemini CLI
2828
run: npm install @google/gemini-cli
@@ -36,4 +36,4 @@ jobs:
3636
- name: Install Extension
3737
run: npx gemini extensions validate .
3838
env:
39-
GEMINI_API_KEY: "placeholder"
39+
GEMINI_API_KEY: "placeholder"

.github/workflows/sync-labels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
issues: 'write'
3030
pull-requests: 'write'
3131
steps:
32-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
32+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333
- uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.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.7"
2+
".": "0.1.8"
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.8](https://github.com/gemini-cli-extensions/cloud-sql-mysql/compare/0.1.7...0.1.8) (2026-01-30)
4+
5+
6+
### Features
7+
8+
* add Configuration settings ([#83](https://github.com/gemini-cli-extensions/cloud-sql-mysql/issues/83)) ([36d4433](https://github.com/gemini-cli-extensions/cloud-sql-mysql/commit/36d443385c94d188f16d33e36a156cb7a0215b23))
9+
* **deps:** update dependency googleapis/genai-toolbox to v0.26.0 ([#84](https://github.com/gemini-cli-extensions/cloud-sql-mysql/issues/84)) ([306aaa9](https://github.com/gemini-cli-extensions/cloud-sql-mysql/commit/306aaa9c39c0834528efd3728ee6f3056ef6ea5d))
10+
311
## [0.1.7](https://github.com/gemini-cli-extensions/cloud-sql-mysql/compare/0.1.6...0.1.7) (2026-01-09)
412

513

README.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,32 @@ gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-mys
4545

4646
### Configuration
4747

48-
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
49-
This configuration is not required if utilizing the [Admin toolset](#supported-tools).
48+
You will be prompted to configure the following settings during installation. These settings are saved in an `.env` file within the extension's directory.
49+
50+
* `CLOUD_SQL_MYSQL_PROJECT`: The GCP project ID.
51+
* `CLOUD_SQL_MYSQL_REGION`: The region of your Cloud SQL instance.
52+
* `CLOUD_SQL_MYSQL_INSTANCE`: The name of your Cloud SQL instance.
53+
* `CLOUD_SQL_MYSQL_DATABASE`: The name of the database to connect to.
54+
* `CLOUD_SQL_MYSQL_USER`: (Optional) The database username. Defaults to the active IAM user.
55+
* `CLOUD_SQL_MYSQL_PASSWORD`: (Optional) The password for the database user. Required if using CLOUD_SQL_MYSQL_USER. Defaults to the active IAM user.
56+
* `CLOUD_SQL_MYSQL_IP_TYPE`: (Optional) Type of the IP address: `PUBLIC`, `PRIVATE`, or `PSC`. Defaults to `PUBLIC`.
57+
58+
> [!NOTE]
59+
> This configuration is primarily for the Data Plane tools (querying). The Admin toolset does not strictly require these to be pre-set if you provide them in your prompts, but it is recommended for a smoother experience.
60+
61+
To view or update your configuration:
62+
63+
**List Settings:**
64+
* Terminal: `gemini extensions list`
65+
* Gemini CLI: `/extensions list`
66+
67+
**Update Settings:**
68+
* Terminal: `gemini extensions config cloud-sql-mysql [setting name] [--scope <scope>]`
69+
* `setting name`: (Optional) The single setting to configure.
70+
* `scope`: (Optional) The scope of the setting in (`user` or `workspace`). Defaults to `user`.
71+
* Currently, you must restart the Gemini CLI for changes to take effect. We recommend using `gemini --resume` to resume your session.
72+
73+
Alternatively, you can manually set these environment variables before starting the Gemini CLI:
5074

5175
```bash
5276
export CLOUD_SQL_MYSQL_PROJECT="<your-gcp-project-id>"
@@ -58,10 +82,10 @@ export CLOUD_SQL_MYSQL_PASSWORD="<your-database-password>" # Optional, defaults
5882
export CLOUD_SQL_MYSQL_IP_TYPE="PUBLIC" # Optional: `PUBLIC`, `PRIVATE`, `PSC`. Defaults to `PUBLIC`.
5983
```
6084

61-
Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
62-
6385
> [!NOTE]
64-
> If your Cloud SQL for MySQL instance uses private IPs, you must run Gemini CLI in the same Virtual Private Cloud (VPC) network.
86+
> * Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
87+
> * If your Cloud SQL for MySQL instance uses private IPs, you must run Gemini CLI in the same Virtual Private Cloud (VPC) network.
88+
> * See [Troubleshooting](#troubleshooting) for debugging your configuration.
6589
6690
### Start Gemini CLI
6791

@@ -93,12 +117,17 @@ Interact with MySQL using natural language:
93117
## Supported Tools
94118

95119
* **Admin:**
120+
* `clone_instance`: Use this tool to creates a clone for an existing Cloud SQL for MySQL instance.
121+
* `create_backup`: Use this tool to creates a backup on a Cloud SQL instance.
122+
* `create_database`: Use this tool to creates a new database in a Cloud SQL instance.
96123
* `create_instance`: Use this tool to create an Postgres instance.
97124
* `create_user`: Use this tool to create Postgres-BUILT-IN or IAM-based users.
98125
* `get_instance`: Use this tool to get details about an Postgres instance.
99126
* `get_user`: Use this tool to get details about a user.
127+
* `list_databases`: Use this tool to lists all databases for a Cloud SQL instance.
100128
* `list_instances`: Use this tool to list instances in a given project and location.
101129
* `list_users`: Use this tool to list users in a given project and location.
130+
* `restore_backup`: Use this tool to restores a backup of a Cloud SQL instance.
102131
* `wait_for_operation`: Use this tool to poll the operations API until the operation is done.
103132

104133
* **Data:**

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.7",
3+
"version": "0.1.8",
44
"description": "Connect and interact with a Cloud SQL for MySQL database and data",
55
"mcpServers": {
66
"cloud_sql_mysql_admin": {

0 commit comments

Comments
 (0)