Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions source/_integrations/mcp_server.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,29 @@ Home Assistant instance:

![Screenshot of Cursor controlling the office lights](/images/integrations/mcp_server/cursor-lights-control.png)

### Example: gemini-cli

1. Install `gemini-cli` if you haven't already. You can find installation instructions at [https://geminicli.com/](https://geminicli.com/).
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the documentation guidelines, lists should be surrounded by blank lines. There should be a blank line before step 1 to separate it from the preceding paragraph.

Copilot generated this review using guidance from repository custom instructions.
2. Open the `gemini-cli` configuration file. This is usually located at `~/.gemini/settings.json`. For more details, refer to the [gemini-cli MCP server documentation](https://geminicli.com/docs/tools/mcp-server/).
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File paths should be marked with backticks according to the documentation guidelines. The file path ~/.gemini/settings.json needs backtick formatting.

Copilot generated this review using guidance from repository custom instructions.
3. Add the following to your `mcpServers` configuration:

```json
{
"mcpServers": {
"homeassistant": {
"httpUrl": "https://<your_home_assistant_url>/api/mcp",
Comment thread
frenck marked this conversation as resolved.
"headers": {
"Authorization": "Bearer ${HOMEASSISTANT_TOKEN}"
Comment thread
frenck marked this conversation as resolved.
}
}
}
}
```

4. Replace `<your_home_assistant_url>` with the URL of your Home Assistant instance.
5. Set the `HOMEASSISTANT_TOKEN` environment variable to a [Long-Lived Access Token](https://developers.home-assistant.io/docs/auth_api/#long-lived-access-token) from your Home Assistant instance.
Comment thread
frenck marked this conversation as resolved.
6. Save the file. You can now use Home Assistant tools within `gemini-cli`.

## Supported functionality

### Tools
Expand Down