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: README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,26 @@
6
6
This Gemini CLI extension provides a set of tools to interact with [Microsoft SQL Server](https://docs.microsoft.com/en-us/sql/) instances. It allows you to manage your databases, execute queries, and explore schemas 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.
***Natural Language Management:** Stop wrestling with complex commands. Explore schemas and query data by describing what you want in plain English.
13
19
***Seamless Workflow:** As a Google-developed extension, it integrates seamlessly into the Gemini CLI environment. No need to constantly switch contexts for common database tasks.
14
20
***Code Generation:** Accelerate development by asking Gemini to generate data classes and other code snippets based on your table schemas.
15
21
22
+
16
23
## Prerequisites
17
24
18
25
Before you begin, ensure you have the following:
19
26
20
27
*[Gemini CLI](https://github.com/google-gemini/gemini-cli) installed with version **+v0.6.0**.
Set the following environment variables before starting the Gemini CLI:
44
+
Set the following environment variables before starting the Gemini CLI. These variables can be loaded from a `.env` file.
37
45
38
46
*`MSSQL_HOST`: The hostname or IP address of the SQL Server.
39
47
*`MSSQL_PORT`: The port number of the SQL Server.
@@ -78,6 +86,11 @@ Find additional extensions to support your entire software development lifecycle
78
86
79
87
## Troubleshooting
80
88
89
+
Use `gemini --debug` to enable debugging.
90
+
91
+
Common issues:
92
+
93
+
* "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.
81
94
* "✖ 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.
82
-
* "✖ 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+.
95
+
* "✖ 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+.
83
96
* "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