To securely access your company's enterprise applications directly from the Gemini CLI, you must connect it to the JumpCloud AI Gateway. Connecting through JumpCloud ensures your enterprise data remains secure and your access is verified.
Configuring Gemini CLI
You can add the AI Gateway to your Gemini CLI using a simple terminal command or by manually editing your configuration file. Choose one of the following methods:
Method 1: Using the Command Line (Recommended):
- Open your terminal.
- Run the following command to add the AI Gateway as an MCP server:
gemini mcp add --transport http jumpcloud-ai-gateway https://ai.jumpcloud.com/mcp - You might need to restart your Gemini CLI session to ensure the new server configuration loads.
Method 2: Manually Editing the Configuration File
Alternatively, you can manually add the AI Gateway endpoint to your Gemini CLI configuration file using the HTTP streaming format. Â
- Open your Gemini CLI settings.json file.
- Add the JumpCloud AI Gateway to your mcpServers object using the exact JSON snippet below:
{
  "mcpServers": {
    "jumpcloud-ai-gateway": {
      "httpUrl": "https://ai.jumpcloud.com/mcp"
    }
  }
}
- Save the file and restart your Gemini CLI session.
Authenticating Your Tools
After adding the MCP server in Gemini CLI, you must authorize and authenticate to the specific enterprise tools (such as Atlassian) before the AI can access them.
- You'll be redirected to the JumpCloud AI Gateway authorization page.
- Review the list of available enterprise tools and select the checkbox next to each tool you want your AI client to access.
- Authenticate to the selected tools based on their required connection method:
- OAuth: Click Connect via OAuth. You'll be redirected to the application to securely sign in, and then returned to this page.
- API Key: Enter your API key for the application in the text field and click Save. Click the documentation link provided in the UI if you need help finding your API token.
- Once all required tools display a green Connected status, click Authorize tools at the bottom of the page.
- Return to your terminal. Your AI client can now use the tools authorized through the gateway.