Connect Gemini CLI
The steps below demonstrate how to connect to the DoiT MCP server using Gemini CLI.
-
If you have not already done so, install the latest version of Gemini CLI on your machine.
-
In the directory where you installed Gemini CLI, locate the
settings.jsonfile. -
In a text editor, open the
settings.jsonfile. -
Copy the following script and paste it in the
settings.jsonfile.{
"mcpServers": {
"doit_mcp_server": {
"command": "npx",
"args": ["-y", "@doitintl/doit-mcp-server@latest"],
"env": {
"DOIT_API_KEY": `<doit_api_key>`
}
}
}
}Replace
doit_api_keywith your DoiT API key. -
Save and close the
settings.jsonfile. -
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.