# Connect the GitHub Copilot coding agent to Ishara

Let the GitHub Copilot coding agent read Ishara notes in a repository, apply the edits in a pull request and reply to reviewers.

- Server: `https://useishara.com/mcp`
- Where it goes: Repository **Settings → Copilot → MCP servers** on github.com
- 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 the GitHub Copilot coding agent, with your token in place of `ishara_…`:

   MCP configuration:

```
{
  "mcpServers": {
    "ishara": {
      "type": "http",
      "url": "https://useishara.com/mcp",
      "tools": ["*"],
      "headers": { "Authorization": "Bearer $COPILOT_MCP_ISHARA_TOKEN" }
    }
  }
}
```

   Paste it under **MCP configuration** and click **Save MCP configuration**. The token comes from the secret below, never from this text.

3. In the same repository, go to **Settings → Secrets and variables → Agents** and add a repository secret named `COPILOT_MCP_ISHARA_TOKEN`, with your token as its value.
4. Assign an issue to Copilot, such as “Apply the open Ishara notes for this site and reply to each one.” When it opens a pull request, click **View session** and expand **Start MCP Servers**: Ishara’s tools are listed at the end of the log.

## Good to know

- Secret names must start with `COPILOT_MCP_`, and they live under **Agents** secrets, not Actions secrets.
- The coding agent uses MCP tools on its own, without asking. On sites where anyone can leave a note, set the site to **Accepted notes only** so a person approves each note first.
- Copilot code review uses only tools marked read-only; in Ishara those are the tools that read notes.

Checked against the official docs on 2026-11-12: [GitHub: configure MCP servers](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers), [GitHub: secrets and variables](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-cloud-agent/configure-secrets-and-variables), [GitHub: MCP concepts](https://docs.github.com/en/copilot/concepts/customizations/mcp).
