settings.json or through gemini mcp add. Use this guide to connect Gemini CLI to the hosted Lightsage MCP endpoint.
1
Get your Lightsage API key
Open the Lightsage dashboard, copy your API key, and store it as Do not put your API key in shared project config, screenshots, issue reports, or public repositories.
LIGHTSAGE_API_KEY:2
Add Lightsage MCP to Gemini CLI
Add Lightsage MCP with Gemini’s MCP command:If you edit Keep the
~/.gemini/settings.json or .gemini/settings.json directly, use the httpUrl transport field:Accept: application/json, text/event-stream header in both forms. Without it, streamable HTTP MCP initialization can fail.Prefer the command form when possible so the header is expanded from your shell instead of written into project config.3
Verify Gemini CLI tools
List configured MCP servers:Then run a read-only prompt:
mcpServers configuration reference.