Gemini CLI connects to Zephex through a local stdio MCP entry. Use the settings JSON below instead of the older hosted HTTP block.
OVERVIEW
Gemini CLI is Google's terminal AI agent. For Zephex, the reliable setup is the local stdio MCP config in `~/.gemini/settings.json` or `<project>/.gemini/settings.json`, running `npx -y zephex` with your `ZEPHEX_API_KEY` in the env block.
CONFIG FILE LOCATION
~/.gemini/settings.json for a global setup, or <project>/.gemini/settings.json for a project-local one.
Paste the JSON exactly as shown under `mcpServers`. Gemini CLI should launch the local `npx -y zephex` process.
Replace `mcp_sk_your_key_here` with your real Zephex API key before saving.
{ "mcpServers": { "zephex": { "command": "npx", "args": ["-y", "zephex"], "env": { "ZEPHEX_API_KEY": "mcp_sk_your_key_here" } } }}Confirm the MCP server is loaded before you rely on it in normal prompts.
Make sure you saved the file before starting Gemini CLI, then restart the session after editing the config.
Check that the config uses `command`, `args`, and `env` exactly as shown above instead of the older hosted HTTP fields.
Install Node.js so `npx` is on PATH, or switch to absolute `node` and package paths if your environment does not inherit PATH correctly.
If the editor still does not connect, return to Quickstart or check Connection Issues.