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
Browse filesBrowse the repository at this point in the historyBrowse files
committed
feat(proxy): add SEARCH_USER_AGENT override for SearXNG-instance requests (FEAT-050)
Introduces getSearchUserAgent() (SEARCH_USER_AGENT || USER_AGENT) and applies it
to all three instance-side fetches — searxng_web_search, /config discovery, and
suggestions — so User-Agent config mirrors the proxy model: a global default
(USER_AGENT) plus per-group overrides (SEARCH_USER_AGENT for instance traffic,
URL_READER_USER_AGENT for reads). web_url_read is unchanged.
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Codex <noreply@openai.com>
Copy file name to clipboardExpand all lines: CONFIGURATION.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,8 +70,11 @@ Self-hosting SearXNG with JSON output enabled remains the recommended setup. The
70
70
71
71
| Variable | Required | Default | Description |
72
72
|---|---|---|---|
73
-
|`USER_AGENT`| No | — | Global User-Agent header for all outgoing requests (e.g. `MyBot/1.0`) |
74
-
|`URL_READER_USER_AGENT`| No | — | User-Agent for `web_url_read` only — overrides `USER_AGENT` for URL reads |
73
+
|`USER_AGENT`| No | — | Global default User-Agent header for outgoing requests (e.g. `MyBot/1.0`) |
74
+
|`SEARCH_USER_AGENT`| No |`USER_AGENT`| User-Agent for SearXNG instance requests: `searxng_web_search`, `/config` capability discovery, and search suggestions |
75
+
|`URL_READER_USER_AGENT`| No |`USER_AGENT`| User-Agent for `web_url_read` only |
76
+
77
+
`SEARCH_USER_AGENT` and `URL_READER_USER_AGENT` are per-group overrides. When unset, both fall back to `USER_AGENT`. If neither the group override nor `USER_AGENT` is set, no User-Agent header is added by `mcp-searxng`.
75
78
76
79
## Proxy
77
80
@@ -205,6 +208,7 @@ Complete MCP client configuration with every variable. Mix and match as needed
0 commit comments