Skip to content

Commit 935a76b

Browse files
authored
Merge branch 'main' into ci-presubmit
2 parents 0d1a3d3 + aa552fd commit 935a76b

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

.github/workflows/presubmit-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
chmod +x toolbox
3535
3636
- name: Install Extension
37+
<<<<<<< ci-presubmit
3738
run: npx gemini extensions validate .
3839
env:
3940
GEMINI_API_KEY: "placeholder"
41+
=======
42+
env:
43+
GEMINI_API_KEY: "placeholder"
44+
run: yes | npx gemini extensions install .
45+
>>>>>>> main

.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.4"
2+
".": "0.1.5"
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.5](https://github.com/gemini-cli-extensions/sql-server/compare/0.1.4...0.1.5) (2026-01-30)
4+
5+
6+
### Features
7+
8+
* add Configuration settings ([#71](https://github.com/gemini-cli-extensions/sql-server/issues/71)) ([454fd40](https://github.com/gemini-cli-extensions/sql-server/commit/454fd40e1260d52970604b431243b0d02153fc9e))
9+
310
## [0.1.4](https://github.com/gemini-cli-extensions/sql-server/compare/0.1.3...0.1.4) (2026-01-13)
411

512

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,27 @@ gemini extensions install https://github.com/gemini-cli-extensions/sql-server
4141

4242
### Configuration
4343

44-
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.
51+
52+
To view or update your configuration:
53+
54+
**List Settings:**
55+
* Terminal: `gemini extensions list`
56+
* Gemini CLI: `/extensions list`
57+
58+
**Update Settings:**
59+
* Terminal: `gemini extensions config sql-server [setting name] [--scope <scope>]`
60+
* `setting name`: (Optional) The single setting to configure.
61+
* `scope`: (Optional) The scope of the setting in (`user` or `workspace`). Defaults to `user`.
62+
* Currently, you must restart the Gemini CLI for changes to take effect. We recommend using `gemini --resume` to resume your session.
63+
64+
Alternatively, you can manually set these environment variables before starting the Gemini CLI:
4565

4666
#### PowerShell
4767
```powershell
@@ -61,6 +81,9 @@ export MSSQL_USER="<your-database-user>"
6181
export MSSQL_PASSWORD="<your-database-password>"
6282
```
6383

84+
> [!NOTE]
85+
> See [Troubleshooting](#troubleshooting) for debugging your configuration.
86+
6487
### Start Gemini CLI
6588

6689
To start the Gemini CLI, use the following command:
@@ -102,7 +125,6 @@ Use `gemini --debug` to enable debugging.
102125

103126
Common issues:
104127

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.
106128
* "✖ 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.
107129
* "✖ 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+.
108130
* "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": "sql-server",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Connect to SQL Server",
55
"mcpServers": {
66
"sql_server": {

0 commit comments

Comments
 (0)