mirror of
https://github.com/0xMassi/webclaw.git
synced 2026-07-21 07:01:01 +02:00
The user has 6 MCP servers configured in ~/.gemini/settings.json.
Without mitigation, the gemini CLI spawns all of them on every headless
call, adding 10-60+ seconds of startup latency.
Two flags reduce this:
- cmd.current_dir(workdir): workspace .gemini/settings.json with
{"mcpServers":{}} overrides ~/.gemini/settings.json, blocking all
6 MCP servers from spawning. The workdir is /tmp/noxa-gemini/ and
is created once at GeminiCliProvider::new().
- --extensions "": prevents extension loading (~3s saved)
Per geminicli.com/docs: workspace settings override user settings.
The --allowed-mcp-server-names flag was tested but hangs with a fake
name and exits without response for empty string — not usable.
Result: consistent 13-17s per call vs >60s baseline with MCP servers.
|
||
|---|---|---|
| .. | ||
| noxa-cli | ||
| noxa-core | ||
| noxa-fetch | ||
| noxa-llm | ||
| noxa-mcp | ||
| noxa-pdf | ||