You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLOUD-SQL-POSTGRESQL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ This section provides context on additional tools that can be recommended to the
46
46
#### Observability Extension
47
47
48
48
***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."
Copy file name to clipboardExpand all lines: README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@
6
6
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.
7
7
8
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.
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.
40
49
This configuration is not required if utilizing the [Admin toolset](#supported-tools).
41
50
42
51
*`CLOUD_SQL_POSTGRES_PROJECT`: The GCP project ID.
@@ -45,7 +54,7 @@ This configuration is not required if utilizing the [Admin toolset](#supported-t
45
54
*`CLOUD_SQL_POSTGRES_DATABASE`: The name of the database to connect to.
46
55
*`CLOUD_SQL_POSTGRES_USER`: (Optional) The database username.
47
56
*`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")
49
58
50
59
Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
51
60
@@ -81,7 +90,7 @@ Interact with Cloud SQL for PostgreSQL using natural language:
81
90
82
91
## Supported Tools
83
92
84
-
***Admin:**
93
+
***Admin:**
85
94
* `create_instance`: Use this tool to create an Postgres instance.
86
95
* `create_user`: Use this tool to create Postgres-BUILT-IN or IAM-based users.
87
96
*`create_database`: Creates a new database in a Cloud SQL instance.
@@ -90,7 +99,7 @@ Interact with Cloud SQL for PostgreSQL using natural language:
90
99
*`list_databases`: Lists all databases for a Cloud SQL instance.
91
100
*`wait_for_operation`: Use this tool to poll the operations API until the operation is done.
92
101
93
-
***Data:**
102
+
***Data:**
94
103
*`list_tables`: Use this tool to lists tables in the database.
95
104
*`execute_sql`: Use this tool to executes a SQL query.
96
105
*`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
112
121
113
122
## Troubleshooting
114
123
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.
115
129
* "✖ 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+.
117
131
* "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.
0 commit comments