Recommendation
Use httpUrl for Streamable HTTP. Gemini CLI uses mcpServers in settings.json.
Hosted HTTP
1 | { |
Local stdio
1 | { |
Verify
Restart Gemini CLI so it runs MCP discovery. Then ask:
1 | List the Netskope NPA MCP tools you can access. Do not call any write tools. |
Common issues
| Symptom | Fix |
|---|---|
| HTTP config ignored | Use httpUrl, not url, for Streamable HTTP. |
| SSE chosen accidentally | url is for SSE endpoints; NPA MCP uses /mcp. |
| Tools names look prefixed | Gemini namespaces MCP tools using the server name. |
| Too many approvals | Keep trust: false for first use, then allowlist intentionally. |
Platform notes
Gemini CLI documents mcpServers, httpUrl for HTTP streaming, url for SSE, custom headers, and environment variable references.
Source: Gemini CLI MCP server docs