Connecting with Google Gemini CLI
You can connect to Google Gemini CLI with the AtScale MCP Server.
Prerequisites
- The AtScale MCP server must be enabled for your AtScale instance.
- Your AtScale instance must be available to open ports.
Configure a connection to Gemini CLI
To connect to Gemini CLI:
-
In Design Center, generate an API token:
-
Click the profile icon in the top-right corner. The Account panel opens.
-
In the API Token section, click the generate icon. A token is generated.
-
Copy the token.
-
-
Install Gemini CLI. In a terminal window, run the following:
npm install -g @google/gemini-cli@latestDevelopment Environment -
Add the following to your
~/.gemini/settings.jsonfile. Be sure to replace<atscale_url>with the URL for your AtScale instance, and<api_token>with the API token you generated above.{
"mcpServers": {
"atscale-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://<atscale_url>/mcp",
"--header",
"Authorization: Bearer ${AUTH_TOKEN}"
],
"env": {
"AUTH_TOKEN": "<api_token>",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
},
"security": {
"auth": {
"selectedType": "oauth-personal"
}
},
"ui": {
"theme": "Default"
},
"general": {
"previewFeatures": true
}
} -
In a terminal window, run the following to launch Gemini CLI:
gemini
You can now begin querying your AtScale models through Gemini CLI.