ChatMaxima Docs

Connect ChatMaxima MCP with Gemini

Install the ChatMaxima extension for Gemini CLI with one command, sign in with OAuth, and build chatbots, WhatsApp templates and Flows from Gemini.

Overview

This guide shows how to connect ChatMaxima MCP with Gemini so Gemini can build chatbots, WhatsApp templates and WhatsApp Flows in your workspace. The supported path is the Gemini CLI, Google's open-source command-line agent, which can connect to remote MCP servers.

There are two ways to connect:

MethodWhat you doBest for
ChatMaxima extension (recommended)Run one install commandMost users. Adds the server, working rules and ready-made skills, and updates itself
Manual configurationEdit settings.json yourselfTeams that manage Gemini CLI settings by hand or per project

Both methods connect to the same server. ChatMaxima MCP is a remote, streamable HTTP server secured with OAuth 2.1, so you never store an API key in a configuration file.

Prerequisites

Before you begin, ensure you have:

  • A ChatMaxima account with a role that can use the builder, templates or Flows.
  • The Gemini CLI installed and signed in to your Google account.
  • Git installed, for the extension method. The CLI uses it to download the extension.

The ChatMaxima extension for Gemini CLI registers the ChatMaxima MCP server for you. It also adds a context file with the rules Gemini follows when it works in your workspace, such as asking which workspace to use and confirming before anything that cannot be undone, plus two skills with step-by-step recipes for building bots, templates and Flows.

Step 1: Install the extension

Run this in your terminal, outside an interactive Gemini session:

gemini extensions install https://github.com/chatmaxima-com/chatmaxima-gemini-cli-extension

Review the consent prompt and confirm. The CLI reports that the chatmaxima extension is installed and enabled.

Step 2: Sign in with OAuth

  1. Start the Gemini CLI.
  2. Trigger the ChatMaxima sign-in:
/mcp auth chatmaxima
  1. Your browser opens the ChatMaxima consent screen. Sign in to ChatMaxima.
  2. Choose the workspace you want Gemini to access if you belong to more than one team.
  3. Review the access and click Approve.

The CLI stores the connection so you do not need to sign in again for future sessions.

Step 3: Verify the connection

/mcp list

You should see the chatmaxima server with its available tools. The tools shown depend on your role in the selected workspace. Then continue with Build something.

Keep the extension up to date

The extension is published on GitHub. To pick up a new version, run:

gemini extensions update chatmaxima

Add --auto-update to the install command if you want the CLI to update it automatically.

Option B: Configure the server manually

Use this method if you prefer to manage the Gemini CLI configuration yourself. You get the same tools, without the extension's context file and skills.

Step 1: Open your Gemini CLI settings

The Gemini CLI reads MCP servers from a settings.json file. You can use the global file or a project-level file.

  • Global: ~/.gemini/settings.json
  • Project: .gemini/settings.json in your working directory

Open the file you want to use. Create it if it does not exist.

Step 2: Add ChatMaxima as an MCP server

Add a mcpServers entry that points to the ChatMaxima URL using the httpUrl key for streamable HTTP:

{
  "mcpServers": {
    "chatmaxima": {
      "httpUrl": "https://chatmaxima.com/mcp"
    }
  }
}

If your settings.json already has other keys, add the mcpServers block alongside them rather than replacing the file.

Note: Use httpUrl for ChatMaxima. It is a streamable HTTP MCP server, not a local command, so there is no command or args to set. If you also installed the extension, remove this entry, because a settings.json entry with the same name takes precedence over the extension.

Step 3: Sign in and verify

Start the Gemini CLI, run /mcp auth chatmaxima, sign in and approve access as described in Option A, then run /mcp list to confirm the chatmaxima server and its tools appear.

Build something

Ask Gemini to build in plain language, for example:

Using ChatMaxima, create a customer support chatbot for an online store.
Greet the visitor, offer buttons for Orders, Returns and Talk to a human,
and route each choice to the right reply. Run a test at the end.

Gemini calls ChatMaxima tools to create the bot, add and connect blocks, organize the canvas and run a test. Open the bot in your ChatMaxima dashboard to review and publish it.

Other prompts to try:

Show me the chatbots in my ChatMaxima workspace.
Draft a WhatsApp utility template that confirms an appointment for tomorrow
with a Reschedule button. Validate it but do not submit it.

Manage or revoke access

  • Extension: run gemini extensions uninstall chatmaxima, or gemini extensions disable chatmaxima to turn it off without removing it.
  • Manual configuration: remove the chatmaxima entry from mcpServers in settings.json.
  • In ChatMaxima: open Settings, then Connected Apps, and revoke the connection. It stops working immediately.

Troubleshooting

The install command fails

  1. Confirm Git is installed and on your PATH.
  2. Run the command from a normal terminal, not inside an interactive Gemini session. Extension management commands are not available in interactive mode.

/mcp list does not show ChatMaxima

  1. For the extension, run gemini extensions list and confirm chatmaxima is installed and enabled.
  2. For manual configuration, confirm the mcpServers block uses httpUrl and the exact URL https://chatmaxima.com/mcp, and that the JSON has no trailing commas.
  3. Restart the Gemini CLI so it reloads its configuration.

Authentication does not complete

  1. Run /mcp auth chatmaxima again and finish the browser sign-in.
  2. Allow your browser to open the ChatMaxima consent window.

No tools appear after connecting

  1. Confirm your role in the selected workspace has builder, template or Flow access.
  2. Re-run /mcp auth chatmaxima and select the correct workspace.

Next Steps

On this page