## Install Lightsage MCP in Kilo

Kilo supports remote MCP servers from `kilo.json`. Kilo Code also supports `kilo.jsonc`. Use this guide to connect Kilo to the hosted Lightsage MCP endpoint.

### 1. Get your Lightsage API key

Open the [Lightsage dashboard](https://app.lightsage.com/settings/api), copy your API key, and store it as `LIGHTSAGE_API_KEY`:

```
export LIGHTSAGE_API_KEY="ls_cli_your_api_key"
```

Do not put your API key in shared project config, screenshots, issue reports, or public repositories.

### 2. Add Lightsage MCP to Kilo

Add Lightsage MCP to `~/.config/kilo/kilo.json` for global CLI access, or to `~/.config/kilo/kilo.jsonc` for Kilo Code. For one project, use `./kilo.json`, `./kilo.jsonc`, or `./.kilo/kilo.jsonc`:

```
{
  "mcp": {
    "lightsage": {
      "type": "remote",
      "url": "https://mcp.lightsage.com/mcp",
      "enabled": true,
      "headers": {
        "X-Lightsage-Api-Key": "{env:LIGHTSAGE_API_KEY}"
      }
    }
  }
}
```

### 3. Verify Kilo tools

List configured MCP servers:

```
kilo mcp list
```

In the Kilo TUI, use `/mcps` if you need to inspect or toggle MCP servers. Then run a read-only prompt:

```
Use the Lightsage MCP server to check my Lightsage auth status.
```

See the [Kilo CLI MCP docs](https://kilo.ai/docs/automate/mcp/using-in-cli) and [Kilo Code MCP docs](https://kilo.ai/docs/automate/mcp/using-in-kilo-code).
