Skip to content

Commit 1a09d8d

Browse files
authored
Merge branch 'main' into developer.md
2 parents 2087cef + 0ab1449 commit 1a09d8d

11 files changed

Lines changed: 97 additions & 48 deletions

.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: |

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
blank_issues_enabled: false
216
contact_links:
317
- name: Google Cloud Support

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/header-check.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 'License Header Check'
16+
17+
on:
18+
pull_request:
19+
branches: [ main ]
20+
21+
jobs:
22+
license-check:
23+
name: 'License Header Check'
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: 'Checkout Repository'
27+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
28+
29+
- name: Check License Header
30+
uses: apache/skywalking-eyes/header@main

.licenserc.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
header:
16+
license:
17+
spdx-id: "Apache-2.0"
18+
copyright-owner: "Google LLC"
19+
paths:
20+
- "**/*.yaml"
21+
- "**/*.yml"
22+
- "**/*.toml"

.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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.1.2](https://github.com/gemini-cli-extensions/cloud-sql-postgresql/compare/0.1.1...0.1.2) (2025-10-13)
4+
5+
6+
### Features
7+
8+
* **deps:** update dependency googleapis/genai-toolbox to v0.17.0 ([#40](https://github.com/gemini-cli-extensions/cloud-sql-postgresql/issues/40)) ([0310c85](https://github.com/gemini-cli-extensions/cloud-sql-postgresql/commit/0310c85517e6b4e8999fe6a9dc276f5e1c57f47b))
9+
310
## [0.1.1](https://github.com/gemini-cli-extensions/cloud-sql-postgresql/compare/0.1.0...0.1.1) (2025-09-30)
411

512

CLOUD-SQL-POSTGRESQL.md

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

4848
* **When to recommend:** If the user asks questions related to monitoring, performance, or observability of Cloud SQL for PostgreSQL databases.
49-
* **What to say:** "For Cloud SQL monitoring and observability, you might find the `cloud-sql-postgresql-observability` extension useful. You can install it with the following command:"
49+
* **What to say:** "For Cloud SQL monitoring and observability, you might find the `cloud-sql-postgresql-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."
5050
* **Command:**
5151
```
5252
gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-postgresql-observability

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
This Gemini CLI extension provides a set of tools to interact with [Cloud SQL for PostgreSQL](https://cloud.google.com/sql/docs/postgres) 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

88
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-postgresql
915

1016
## Why Use the Cloud SQL for PostgreSQL Extension?
1117

@@ -14,12 +20,15 @@ Learn more about [Gemini CLI Extensions](https://github.com/google-gemini/gemini
1420
* **Full Lifecycle Control:** Manage the entire lifecycle of your database, from creating instances to exploring schemas and running queries.
1521
* **Code Generation:** Accelerate development by asking Gemini to generate data classes and other code snippets based on your table schemas.
1622

23+
1724
## Prerequisites
1825

1926
Before you begin, ensure you have the following:
2027

2128
* [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed with version **+v0.6.0**.
29+
* Setup Gemini CLI [Authentication](https://github.com/google-gemini/gemini-cli/tree/main?tab=readme-ov-file#-authentication-options).
2230
* A Google Cloud project with the **Cloud SQL Admin API** enabled.
31+
* Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
2332
* IAM Permissions:
2433
* Cloud SQL Client (`roles/cloudsql.client`)
2534
* Cloud SQL Admin (`roles/cloudsql.admin`)
@@ -36,7 +45,7 @@ gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-pos
3645

3746
### Configuration
3847

39-
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.
4049
This configuration is not required if utilizing the [Admin toolset](#supported-tools).
4150

4251
* `CLOUD_SQL_POSTGRES_PROJECT`: The GCP project ID.
@@ -45,7 +54,7 @@ This configuration is not required if utilizing the [Admin toolset](#supported-t
4554
* `CLOUD_SQL_POSTGRES_DATABASE`: The name of the database to connect to.
4655
* `CLOUD_SQL_POSTGRES_USER`: (Optional) The database username.
4756
* `CLOUD_SQL_POSTGRES_PASSWORD`: (Optional) The password for the database user.
48-
* `CLOUD_SQL_POSTGRES_IP_TYPE`: (Optional) The IP Type.
57+
* `CLOUD_SQL_POSTGRES_IP_TYPE`: (Optional) The IP Type i.e. "PUBLIC", "PRIVATE", or "PSC" (Default: "PUBLIC")
4958

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

@@ -81,7 +90,7 @@ Interact with Cloud SQL for PostgreSQL using natural language:
8190

8291
## Supported Tools
8392

84-
* **Admin:**
93+
* **Admin:**
8594
* `create_instance`: Use this tool to create an Postgres instance.
8695
* `create_user`: Use this tool to create Postgres-BUILT-IN or IAM-based users.
8796
* `create_database`: Creates a new database in a Cloud SQL instance.
@@ -90,7 +99,7 @@ Interact with Cloud SQL for PostgreSQL using natural language:
9099
* `list_databases`: Lists all databases for a Cloud SQL instance.
91100
* `wait_for_operation`: Use this tool to poll the operations API until the operation is done.
92101

93-
* **Data:**
102+
* **Data:**
94103
* `list_tables`: Use this tool to lists tables in the database.
95104
* `execute_sql`: Use this tool to executes a SQL query.
96105
* `list_active_queries`: Use this tool to list currently running queries.
@@ -112,6 +121,11 @@ Find additional extensions to support your entire software development lifecycle
112121

113122
## Troubleshooting
114123

124+
Use `gemini --debug` to enable debugging.
125+
126+
Common issues:
127+
128+
* "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.
115129
* "✖ 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.
116-
* "✖ MCP ERROR: Error: spawn /Users/<USER>/.gemini/extensions/cloud-sql-postgresql/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
130+
* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/cloud-sql-postgresql/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
117131
* "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-postgresql",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Create, connect, and interact with a Cloud SQL for PostgreSQL database and data.",
55
"mcpServers": {
66
"cloud_sql_postgresql_admin": {

0 commit comments

Comments
 (0)