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
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
44
+
You will be prompted to configure the following settings during installation. These settings are saved in an `.env` file within the extension's directory.
45
+
46
+
*`MSSQL_HOST`: (Optional) The SQL Server host. Defaults to `localhost`.
47
+
*`MSSQL_PORT`: (Optional) The SQL Server port. Defaults to `1433`.
48
+
*`MSSQL_DATABASE`: The name of the database to connect to.
49
+
*`MSSQL_USER`: The database username.
50
+
*`MSSQL_PASSWORD`: The password for the database user.
> See [Troubleshooting](#troubleshooting) for debugging your configuration.
86
+
64
87
### Start Gemini CLI
65
88
66
89
To start the Gemini CLI, use the following command:
@@ -102,7 +125,6 @@ Use `gemini --debug` to enable debugging.
102
125
103
126
Common issues:
104
127
105
-
* "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.
106
128
* "✖ 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.
107
129
* "✖ MCP ERROR: Error: spawn /Users/USER/.gemini/extensions/sql-server/toolbox ENOENT": The Toolbox binary did not download correctly. Ensure you are using Gemini CLI v0.6.0+.
108
130
* "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