# Connect Gemini CLI to Ishara

Connect Gemini CLI to Ishara’s MCP server with one command or a few lines of settings.json, and let it apply your reviewers’ edits.

- Server: `https://useishara.com/mcp`
- Where it goes: `gemini mcp add`, or `.gemini/settings.json`
- Transport: Streamable HTTP, built in
- Authentication: a bearer token in the `Authorization` header

## Steps

1. In Ishara, open **Agents**, create a token under **New token** and copy it (it’s shown once).
2. Add Ishara to Gemini CLI, with your token in place of `ishara_…`:

   Terminal:

```sh
gemini mcp add --transport http --header "Authorization: Bearer ishara_…" ishara https://useishara.com/mcp
```

   Adds Ishara to this project. Add `-s user` for every project.

   ~/.gemini/settings.json:

```json
{
  "mcpServers": {
    "ishara": {
      "httpUrl": "https://useishara.com/mcp",
      "headers": { "Authorization": "Bearer $ISHARA_TOKEN" }
    }
  }
}
```

   `httpUrl`, not `url`: in Gemini CLI, `url` means the older SSE transport.

3. Type `/mcp` in Gemini CLI: Ishara shows **CONNECTED** with its tools. `/mcp reload` picks up changes without a restart.
4. Ask your agent: “Apply the open Ishara notes.” It lists them, applies each edit in your code, and marks each note done with a reply the reviewer sees on the site.

## Good to know

- If you turn on trusted folders, Gemini CLI doesn’t connect to MCP servers in a folder you haven’t trusted.

Checked against the official docs on 2026-11-12: [Gemini CLI: MCP servers](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md), [Gemini CLI: trusted folders](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/trusted-folders.md).
