Prerequisites
Gemini CLI
Get started with Gemini CLI
Service Account Token
Create a service account with appropriate permissions
Configuration
1
Add the MCP Server
Ask gemini to show you where the user scope Open the We recommend the user scope to make the MCP server available across all your projects. If you prefer to define it locally, open a .gemini folder in your local project, create a settings.json file inside and update the MCP server there.
settings.json file is:settings.json file and add in the control plane mcp server details:2
Verify the Connection
List your configured MCP servers to confirm the setup:You should see cpln listed with a successful connection.
Managing MCP Servers
For the latest configuration options and troubleshooting, refer to the official Gemini CLI Documentation.
Example Conversation
Here’s an example of deploying a public workload through Gemini CLI:1
Set Context
2
Deploy a Workload
3
Get the Endpoint
Troubleshooting
Authentication errors
Authentication errors
- Check that your service account token is valid.
- Ensure the token is entered without extra spaces or quotes.
- Verify the token has appropriate permissions (see Service Account Permissions).
- Check for typos in the org name you’re using for context, this is a common cause of authentication failures.