Skip to main content

Gemini CLI

Gemini CLI is Google's command-line AI tool.

Run the following command in your terminal:

gemini mcp add --transport http <server-key> <mcp-server-url>

Replace <server-key> with a name for this connection and <mcp-server-url> with the MCP Server URL from the MCP Info tab in Magento admin.

Complete the authentication steps in the browser window that opens.

tip

You can add a --scope flag to control where the server is registered:

  • --scope user — available globally
  • --scope project — available only in the current project

Manual setup

Add the following to ~/.gemini/settings.json (or a project-scoped .gemini/settings.json):

{
"mcpServers": {
"<server-key>": {
"httpUrl": "<mcp-server-url>"
}
}
}

If adding to an existing file, merge the mcpServers section into the corresponding section of the file.


Documentation