From 2a1ff2899d791508382ec792c8078e44483a3aed Mon Sep 17 00:00:00 2001 From: Gergely Radics Date: Thu, 19 Mar 2026 21:20:58 +0100 Subject: [PATCH 1/2] feat: enabled gemini search default on --- cmd/server-bot/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/server-bot/main.go b/cmd/server-bot/main.go index 13e206e..cd4436f 100644 --- a/cmd/server-bot/main.go +++ b/cmd/server-bot/main.go @@ -96,10 +96,10 @@ func main() { } } - var searchEnable bool - searchEnabled := os.Getenv("SEARCH_ENABLE") - if searchEnabled == "true" || searchEnabled == "1" { - searchEnable = true + searchEnable := true + searchDisabled := os.Getenv("GEMINI_SEARCH_DISABLED") + if searchDisabled == "true" || searchDisabled == "1" { + searchEnable = false } // Initialize the Gemini AI logic From f24a27351a9e3f131ef5ab44de0a4d78b25df3f7 Mon Sep 17 00:00:00 2001 From: Gergely Radics Date: Thu, 19 Mar 2026 21:35:05 +0100 Subject: [PATCH 2/2] chore: README update --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d70ff0..cb6716c 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ You can configure the server using Environment Variables. | `ADDR` | Server listen address. | `:8080` | ❌ | | `GEMINI_MODEL` | The specific model version to use. | `gemini-flash-latest` | ❌ | | `MCP_SERVERS` | Comma-separated list of MCP HTTP stream servers (e.g., `http://localhost:8081/mcp`). | - | ❌ | -| `SEARCH_ENABLE` | Allow Google Search grounding (Warning: conflicts with MCP). | `false` | ❌ | +| `GEMINI_SEARCH_DISABLED` | Set to `true` or `1` to disable Google Search grounding. Search is **enabled by default**. | `false` | ❌ | | `HISTORY_SUMMARY` | Message count trigger for history summarization (`0` to disable). | `20` | ❌ | | `LOG_LEVEL` | Logging verbosity (`debug`, `info`, `warn`, `error`). | `info` | ❌ | | `CORS_ALLOWED_ORIGIN` | CORS allowed origin header. | `*` | ❌ | @@ -80,6 +80,8 @@ You can configure the server using Environment Variables. > **Note on MCP:** You cannot use the same function name across different MCP servers. Since functions are mapped to clients, duplicate names will override previous ones. +> **Note on Search + MCP:** Google Search grounding and MCP tools can now be used **simultaneously**. On Gemini 3.0 models, both are active at the same time — the model can call your MCP tools and ground responses in live search results within the same conversation. To opt out of search, set `GEMINI_SEARCH_DISABLED=true`. + --- ## 📡 API Usage