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
* add full table name to context file ([#35](https://github.com/gemini-cli-extensions/cloud-sql-sqlserver/issues/35)) ([984b098](https://github.com/gemini-cli-extensions/cloud-sql-sqlserver/commit/984b09830b67a346bf3d9222b88622bd37fa7415))
9
+
***deps:** update dependency googleapis/genai-toolbox to v0.17.0 ([#42](https://github.com/gemini-cli-extensions/cloud-sql-sqlserver/issues/42)) ([946fc11](https://github.com/gemini-cli-extensions/cloud-sql-sqlserver/commit/946fc11399c4131d3c3892c373e428accb90d172))
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_MSSQL_PROJECT`: The GCP project ID.
@@ -66,45 +75,6 @@ gemini
66
75
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
67
76
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
68
77
69
-
### Start Gemini CLI
70
-
71
-
To start the Gemini CLI, use the following command:
72
-
73
-
```bash
74
-
gemini
75
-
```
76
-
77
-
> [!WARNING]
78
-
> **Changing Instance & Database Connections**
79
-
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
80
-
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
81
-
82
-
### Start Gemini CLI
83
-
84
-
To start the Gemini CLI, use the following command:
85
-
86
-
```bash
87
-
gemini
88
-
```
89
-
90
-
> [!WARNING]
91
-
> **Changing Instance & Database Connections**
92
-
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
93
-
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
94
-
95
-
### Start Gemini CLI
96
-
97
-
To start the Gemini CLI, use the following command:
98
-
99
-
```bash
100
-
gemini
101
-
```
102
-
103
-
> [!WARNING]
104
-
> **Changing Instance & Database Connections**
105
-
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
106
-
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
107
-
108
78
## Usage Examples
109
79
110
80
Interact with Cloud SQL for SQL Server using natural language:
@@ -121,7 +91,7 @@ Interact with Cloud SQL for SQL Server using natural language:
121
91
122
92
## Supported Tools
123
93
124
-
***Admin:**
94
+
***Admin:**
125
95
* `create_instance`: Use this tool to create an SQL Server instance.
126
96
* `create_user`: Use this tool to create SQL Server-BUILT-IN or IAM-based users.
127
97
* `get_instance`: Use this tool to get details about an SQL Server instance.
@@ -130,7 +100,7 @@ Interact with Cloud SQL for SQL Server using natural language:
130
100
* `list_users`: Use this tool to list users in a given project and location.
131
101
*`wait_for_operation`: Use this tool to poll the operations API until the operation is done.
132
102
133
-
***Data:**
103
+
***Data:**
134
104
*`list_tables`: Use this tool to list tables and descriptions.
135
105
*`execute_sql`: Use this tool to execute any SQL statement.
136
106
@@ -143,6 +113,11 @@ Find additional extensions to support your entire software development lifecycle
143
113
144
114
## Troubleshooting
145
115
116
+
Use `gemini --debug` to enable debugging.
117
+
118
+
Common issues:
119
+
120
+
* "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.
146
121
* "✖ 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.
147
-
* "✖ MCP ERROR: Error: spawn /Users/<USER>/.gemini/extensions/cloud-sql-sqlserver/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
122
+
* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/cloud-sql-sqlserver/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
148
123
* "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