# Connect VS Code with GitHub Copilot to Ishara

Connect GitHub Copilot in VS Code to Ishara’s MCP server with a .mcp.json file, so agent mode can apply your reviewers’ edits.

- Server: `https://useishara.com/mcp`
- Where it goes: `.mcp.json` in your workspace, or `~/.copilot/mcp-config.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 VS Code with GitHub Copilot, with your token in place of `ishara_…`:

   .mcp.json:

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

   At the root of your workspace, or in `~/.copilot/mcp-config.json` for every workspace. VS Code reads `${ISHARA_TOKEN}` from your environment.

   .vscode/mcp.json:

```json
{
  "inputs": [
    { "type": "promptString", "id": "ishara-token", "description": "Ishara token", "password": true }
  ],
  "servers": {
    "ishara": {
      "type": "http",
      "url": "https://useishara.com/mcp",
      "headers": { "Authorization": "Bearer ${input:ishara-token}" }
    }
  }
}
```

   The older format, which asks for the token once and stores it securely. VS Code says this “Local harness” will be removed in February 2027.

3. Run **MCP: List Servers** from the Command Palette, and start **ishara** if it isn’t running. VS Code asks you to trust it the first time.
4. In Copilot Chat, switch to agent mode and open the tools picker: Ishara’s tools are listed. 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. Expand the first tool call to check it used Ishara.

## Good to know

- The `type` is `http` in both formats, not `streamableHttp`.
- Agent mode needs VS Code 1.99 or later; remote MCP servers arrived in 1.102.

Checked against the official docs on 2026-11-12: [VS Code: MCP configuration](https://code.visualstudio.com/docs/agents/reference/mcp-configuration), [VS Code: add an MCP server](https://code.visualstudio.com/docs/agent-customization/mcp-servers), [VS Code: moving to the Copilot harness](https://code.visualstudio.com/docs/agents/run/move-to-copilot).
