Connecting to Gemini CLI
The Gemini CLI allows you to interact with Google’s multi-modal models from your terminal while leveraging tools and context from your HasMCP servers.Prerequisites
- Install the CLI:
- Authenticate: Run
geminiin your terminal and follow the login flow to authenticate with your Google account.
Setup Instructions
HasMCP servers are typically exposed via Streamable HTTP, which is supported by the Gemini CLI.Option 1: Quick Setup (Recommended)
Use the built-ingemini mcp add command to register your server without manually editing JSON files.
1
Generate Token
Go to the MCP Servers tab in HasMCP, select your server, and click
Generate Token to create a secure access key.
2
Run Command
Run the following command:
https://app.hasmcp.com/mcp/<SERVER_ID>).
TOKEN: The access token generated in Step 2.