Skip to main content

Connect Gemini CLI

The steps below demonstrate how to connect to the DoiT MCP server using Gemini CLI.

  1. If you have not already done so, install the latest version of Gemini CLI on your machine.

  2. In the directory where you installed Gemini CLI, locate the settings.json file.

  3. In a text editor, open the settings.json file.

  4. Copy the following script and paste it in the settings.json file.

    {
    "mcpServers": {
    "doit_mcp_server": {
    "command": "npx",
    "args": ["-y", "@doitintl/doit-mcp-server@latest"],
    "env": {
    "DOIT_API_KEY": `<doit_api_key>`
    }
    }
    }
    }

    Replace doit_api_key with your DoiT API key.

  5. Save and close the settings.json file.

  6. Launch Gemini CLI. Gemini CLI automatically detects and connects to the DoiT MCP server. You can now open a new chat to start asking questions or make requests related to DoiT Cloud Intelligence data.