How to Connect WholesaleX to Gemini CLI

You can configure WholesaleX MCP in Gemini CLI using an HTTP connection authenticated with a WordPress application password.

Before You Begin

Complete the Getting Started with WholesaleX MCP guide. Copy your server address and generate a Base64 authentication value by following How to Create a WordPress Application Password for WholesaleX MCP.

Configure WholesaleX in Gemini CLI

  1. Open or create your personal Gemini CLI configuration file: ~/.gemini/settings.json.
  2. Add the following configuration to the mcpServers object. Preserve any existing server configurations.
{

  "mcpServers": {

    "wholesalex": {

      "httpUrl": "https://example.com/wp-json/wholesalex/mcp",

      "headers": {

        "Authorization": "Basic YOUR-BASE64-VALUE"

      }

    }

  }

}
  1. Replace the example URL with your WholesaleX server address.
  2. Replace YOUR-BASE64-VALUE with your generated authentication value.
  3. Save the configuration file and restart Gemini CLI.

Verify Your Connection

Inside Gemini CLI, run:

/mcp

Check whether WholesaleX is connected and its tools are available.

Follow the Verify Your WholesaleX MCP Connection instructions in the Getting Started guide to confirm that the connection can retrieve store data.

Keep your configuration file private because it contains authentication credentials.

For more information, see the official Gemini CLI MCP documentation.