From e70be84242381ca61ff6f9b2e852cc81492cd762 Mon Sep 17 00:00:00 2001 From: Shobhit Singh Date: Wed, 28 Jan 2026 14:05:57 -0800 Subject: [PATCH 1/3] feat: Support custom scopes and maxQueryResultRows After this change the user can optionally control authorization scopes for BigQuery interaction and max rows for query results via environment variables, e.g.: ```shell $ export BIGQUERY_SCOPES="https://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/drive" $ export BIGQUERY_MAX_QUERY_RESULT_ROWS=50 ``` --- tools.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools.yaml b/tools.yaml index 7d6bbba..d796353 100644 --- a/tools.yaml +++ b/tools.yaml @@ -18,6 +18,8 @@ sources: project: ${BIGQUERY_PROJECT} location: ${BIGQUERY_LOCATION:} useClientOAuth: ${BIGQUERY_USE_CLIENT_OAUTH:false} + scopes: ${BIGQUERY_SCOPES:} + maxQueryResultRows: ${BIGQUERY_MAX_QUERY_RESULT_ROWS:50} tools: ask_data_insights: From 8170fa577c597e2132c6bb3646cd8b3852e0a0b5 Mon Sep 17 00:00:00 2001 From: Shobhit Singh Date: Wed, 28 Jan 2026 14:08:56 -0800 Subject: [PATCH 2/3] Update README with optional BigQuery settings Add optional environment variables for BigQuery configuration. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6783215..599f252 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ Set the following environment variables before starting the Gemini CLI. These va ```bash export BIGQUERY_PROJECT="" export BIGQUERY_LOCATION="" # Optional +export BIGQUERY_SCOPES="https://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/drive" # Optional +export BIGQUERY_MAX_QUERY_RESULT_ROWS=50 # Optional ``` Ensure [Application Default Credentials](https://cloud.google.com/docs/authentication/gcloud) are available in your environment. From 1788173fb766ed79677c2ea8002912cc17b87f8e Mon Sep 17 00:00:00 2001 From: Shobhit Singh Date: Wed, 28 Jan 2026 15:23:07 -0800 Subject: [PATCH 3/3] Add optional configuration for BigQuery settings --- gemini-extension.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gemini-extension.json b/gemini-extension.json index 4e8a05e..b43f6ed 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -23,6 +23,16 @@ "name": "Location", "description": "(Optional) Location of the BigQuery resources", "envVar": "BIGQUERY_LOCATION" + }, + { + "name": "Authorization Scopes", + "description": "(Optional) Authorization scopes for Google APIs (Dataplex, Conversational API, BigQuery), comma-separated", + "envVar": "BIGQUERY_SCOPES" + }, + { + "name": "Maximum Query Result Rows", + "description": "(Optional) Maximum number of rows to return from BigQuery query results", + "envVar": "BIGQUERY_MAX_QUERY_RESULT_ROWS" } ] -} \ No newline at end of file +}