Gemini CLI integration commands.
- me gemini install -- register
meas an MCP server with Gemini CLI
Register me as an MCP server with Gemini CLI.
me gemini install [options]
| Option | Description |
|---|---|
--api-key <key> |
API key for a headless agent. Default: the MCP server uses your me login session, resolved at runtime. |
--space <slug> |
Pin a space. Default: resolve ME_SPACE / active space at runtime. |
--server <url> |
Server URL to embed in the MCP config. |
-s, --scope <scope> |
Gemini CLI config scope: user or project. Default: user. |
By default only the server URL is baked into the config: at runtime me mcp uses your me login session (resolved from the OS keychain / ~/.config/me each run, so it survives re-login) and your active space (set by me space use / ME_SPACE). Pass --api-key (mint one with me apikey create --agent <agent>, or me apikey create for a personal access token) for a headless agent that cannot reach your keychain; that bakes the key and requires a pinned --space.
For manual MCP client configuration, see MCP Integration.