# Connect OpenCode to Ishara

Connect OpenCode to Ishara’s MCP server as a remote server with OAuth switched off and your token in a header.

- Server: `https://useishara.com/mcp`
- Where it goes: `opencode.json` in your project, or `~/.config/opencode/opencode.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 OpenCode, with your token in place of `ishara_…`:

   opencode.json:

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "ishara": {
        "type": "remote",
        "url": "https://useishara.com/mcp",
        "oauth": false,
        "headers": { "Authorization": "{env:ISHARA_AUTH}" }
      }
    }
  }
}
```

   Set `ISHARA_AUTH` to `Bearer` followed by a space and your token.

3. Run `opencode mcp list` (or type `/mcps` in OpenCode): Ishara shows as connected.
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

- Keep `"oauth": false`: OpenCode tries OAuth for remote servers unless told not to.
- Servers sit under `mcp.servers`; older examples without `servers` are out of date.
- Environment variables are written `{env:NAME}`, without a dollar sign.

Checked against the official docs on 2026-11-12: [OpenCode: MCP servers](https://opencode.ai/docs/mcp-servers/), [OpenCode: config](https://opencode.ai/docs/config/).
