# Gemini

> Connect Enterprise Ego to Gemini Enterprise or to the Gemini CLI.

## Gemini Enterprise

Gemini Enterprise does not register itself. It asks for a client ID and a secret, so you create a client first.

1. In Enterprise Ego, open **Use in your AI**. Under **Advanced**, create a client. You get a client ID and a secret. Save the secret right away, it is not shown again.
2. In the Google Cloud console, an admin with the **Discovery Engine Editor** role chooses **Connected Data Stores**, then **Custom MCP Server** for the app.
3. Enter the link, the addresses from the Advanced section, the client ID and the secret, and turn **PKCE** on.

> **Preview at Google**
Custom MCP servers in Gemini Enterprise are still in Preview at Google.

## Gemini CLI

Add the link as `url` under `mcpServers` in `settings.json`. The CLI handles registration and sign-in itself.

```json
{
  "mcpServers": {
    "enterprise-ego": {
      "url": "https://enterpriseego.cafeboon.com/mcp"
    }
  }
}
```

## Good to know

- Gemini conversations are also a source for Enterprise Ego, through Google Workspace with Vault. Those conversations are kept in the archive, and they are not part of the shared memory. See [Connect AI platforms](https://enterpriseego.cafeboon.com/docs/admin/connect-ai-platforms).
