# Connect JetBrains AI Assistant and Junie to Ishara

Connect JetBrains AI Assistant or Junie to Ishara through the mcp-remote bridge, since neither sends request headers itself.

- Server: `https://useishara.com/mcp`
- Where it goes: **Settings → Tools → AI Assistant → Model Context Protocol (MCP)**, or `.junie/mcp/mcp.json`
- Transport: stdio, through `mcp-remote`
- 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 JetBrains AI Assistant and Junie, with your token in place of `ishara_…`:

   mcp.json:

```json
{
  "mcpServers": {
    "ishara": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://useishara.com/mcp", "--header", "Authorization:${AUTH_HEADER}", "--transport", "http-only"],
      "env": { "AUTH_HEADER": "Bearer ishara_…" }
    }
  }
}
```

   AI Assistant: add a server in its MCP settings and paste this. Junie: save it as `.junie/mcp/mcp.json` in the project, or `~/.junie/mcp/mcp.json`. Needs Node.js 18 or later.

3. Click **Apply**. The **Status** column shows the connection; hover over the icon to see an error.
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

- AI Assistant’s MCP settings have no field for headers, and Junie’s docs say it “does not support security tokens in MCP configs”, so the bridge runs on your computer and adds the token.
- `Authorization:${AUTH_HEADER}` has no space after the colon on purpose: some clients split arguments on spaces.
- `mcp-remote` is a community package, not a JetBrains feature.

Checked against the official docs on 2026-11-12: [AI Assistant: MCP](https://www.jetbrains.com/help/ai-assistant/mcp.html), [Junie: MCP configuration](https://junie.jetbrains.com/docs/junie-ide-plugin.html#mcp-configuration), [mcp-remote](https://github.com/punkpeye/mcp-remote).
