Gemini
Gemini
Gemini is Google’s family of large language models (LLMs). It can generate text, images, audio, video, and code. This page explains how to connect the CData Connect Cloud MCP to Gemini through either the command-line interface or the Google Agent Development Kit (ADK).
Prerequisites
Before you can configure and use Gemini with CData Connect Cloud, you must first connect a data source to your CData Connect Cloud account. See Sources for more information.
You must also generate a Personal Access Token (PAT) on the Settings page. Copy this down, as it acts as your password during authentication.
You need Python >= 3.10 to use the Gemini tools.
Connect through the Gemini Command Line Interface
After you install Gemini, do the following:
-
Go to your user directory
%USERPROFILE%
and create a.gemini
folder. -
Within the folder, create a file named
settings.json
. -
Copy and paste the following into the
settings.json
file. ReplaceEMAIL
with your CData Connect Cloud email andPAT
with the PAT you obtained in the prerequisites:{ "mcpServers": { "connect-cloud": { "httpUrl": "https://mcp.cloud.cdata.com/mcp/", "headers": { "Authorization": "Basic EMAIL:PAT" //Replace with your CData Connect Cloud's Email and PAT }, "trust": true } }, "selectedAuthType": "oauth-personal" }
-
In the terminal, type
gemini
. You may need to give Google authorization to access your account. -
The Gemini screen appears as follows:
-
Enter a prompt in the prompt box to ask Gemini a question. Gemini uses the CData Connect Cloud tools such as
getCatalogs
,getSchemas
, andgetTables
to retrieve data from connected data sources. -
Gemini returns a response to your prompt.
Connect through the Google ADK
-
Download the folder adk-mcp-client and unzip the folder.
-
Rename
.env example
to.env
. -
In the
.env
file, replaceyour_email@example.com
with your CData Connect Cloud email, and replaceyour_mcp_password_here
with the PAT created in the prerequisites. -
Run
pip install -r requirements.txt
in your terminal. -
Run
python -m google.adk.cli web --port 5000
. This starts the ADK at port 5000 on your local machine. -
In your web browser, open
127.0.0.1:5000
. The application looks like the following: -
Enter a prompt in the Type a Message box. Gemini uses the CData Connect Cloud tools such as
getCatalogs
,getSchemas
, andgetTables
to retrieve data from connected data sources.