Skip to content

Commit eca9acb

Browse files
authored
Merge branch 'main' into developer.md
2 parents 5c2b496 + 335060b commit eca9acb

File tree

10 files changed

+97
-85
lines changed

10 files changed

+97
-85
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ body:
3838
- label: "I've updated to the latest versions"
3939

4040
- type: input
41-
id: version
41+
id: ex_version
4242
attributes:
4343
label: Extension Version
4444
description: |

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
116
blank_issues_enabled: false
217
contact_links:
318
- name: Google Cloud Support

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/header-check.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 'License Header Check'
16+
17+
on:
18+
pull_request:
19+
branches: [ main ]
20+
21+
jobs:
22+
license-check:
23+
name: 'License Header Check'
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: 'Checkout Repository'
27+
uses: actions/checkout@v5
28+
29+
- name: Check License Header
30+
uses: apache/skywalking-eyes/header@v0.7.0

.licenserc.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
header:
16+
license:
17+
spdx-id: "Apache-2.0"
18+
copyright-owner: "Google LLC"
19+
paths:
20+
- "**/*.yaml"
21+
- "**/*.yml"
22+
- "**/*.toml"

.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.1"
2+
".": "0.1.2"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.1.2](https://github.com/gemini-cli-extensions/cloud-sql-sqlserver/compare/0.1.1...0.1.2) (2025-10-13)
4+
5+
6+
### Features
7+
8+
* 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))
10+
311
## [0.1.1](https://github.com/gemini-cli-extensions/cloud-sql-sqlserver/compare/0.1.0...0.1.1) (2025-09-30)
412

513

README.md

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@ Learn more about [Gemini CLI Extensions](https://github.com/google-gemini/gemini
1313
* **Natural Language Management:** Stop wrestling with complex commands. Explore schemas and query data by describing what you want in plain English.
1414
* **Code Generation:** Accelerate development by asking Gemini to generate data classes and other code snippets based on your table schemas.
1515

16+
> [!IMPORTANT]
17+
> **We Want Your Feedback!**
18+
> Please share your thoughts with us by filling out our feedback [form][form].
19+
> Your input is invaluable and helps us improve the project for everyone.
20+
21+
[form]: https://docs.google.com/forms/d/e/1FAIpQLSfEGmLR46iipyNTgwTmIDJqzkAwDPXxbocpXpUbHXydiN1RTw/viewform?usp=pp_url&entry.157487=cloud-sql-sqlserver
22+
1623
## Prerequisites
1724

1825
Before you begin, ensure you have the following:
1926

2027
* [Gemini CLI](https://github.com/google-gemini/gemini-cli) installed with version **+v0.6.0**.
28+
* Setup Gemini CLI [Authentication](https://github.com/google-gemini/gemini-cli/tree/main?tab=readme-ov-file#-authentication-options).
2129
* A Google Cloud project with the **Cloud SQL Admin API** enabled.
30+
* Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment.
2231
* IAM Permissions:
2332
* Cloud SQL Client (`roles/cloudsql.client`)
2433
* Cloud SQL Viewer (`roles/cloudsql.viewer`)
@@ -36,7 +45,7 @@ gemini extensions install https://github.com/gemini-cli-extensions/cloud-sql-sql
3645

3746
### Configuration
3847

39-
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.
4049
This configuration is not required if utilizing the [Admin toolset](#supported-tools).
4150

4251
* `CLOUD_SQL_MSSQL_PROJECT`: The GCP project ID.
@@ -66,45 +75,6 @@ gemini
6675
> Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session.
6776
> To save and resume conversation history use command: `/chat save <tag>` and `/chat resume <tag>`.
6877
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-
10878
## Usage Examples
10979

11080
Interact with Cloud SQL for SQL Server using natural language:
@@ -121,7 +91,7 @@ Interact with Cloud SQL for SQL Server using natural language:
12191

12292
## Supported Tools
12393

124-
* **Admin:**
94+
* **Admin:**
12595
* `create_instance`: Use this tool to create an SQL Server instance.
12696
* `create_user`: Use this tool to create SQL Server-BUILT-IN or IAM-based users.
12797
* `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:
130100
* `list_users`: Use this tool to list users in a given project and location.
131101
* `wait_for_operation`: Use this tool to poll the operations API until the operation is done.
132102

133-
* **Data:**
103+
* **Data:**
134104
* `list_tables`: Use this tool to list tables and descriptions.
135105
* `execute_sql`: Use this tool to execute any SQL statement.
136106

@@ -143,6 +113,11 @@ Find additional extensions to support your entire software development lifecycle
143113

144114
## Troubleshooting
145115

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.
146121
* "✖ 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+.
148123
* "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": "cloud-sql-sqlserver",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Connect to Cloud SQL for SQL Server",
55
"mcpServers": {
66
"cloud_sql_sqlserver_admin": {

toolbox_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.16.0
1+
0.17.0

0 commit comments

Comments
 (0)