Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@coolver/home-assistant-mcp

Coolver1.3kMIT3.2.25TypeScript support: included

Enable Cursor, VS Code, Claude Code or any MCP-enabled IDE to help you vibecode and manage Home Assistant: create automations, design dashboards, tweak themes, modify configs, and deploy changes using natural language

mcp, home-assistant, vibe-code, cursor, vs-code, co-pilot, claude-code, ai, smart-home, model-context-protocol, automation

readme

Home Assistant Vibecode MCP

NPM Version License: MIT

⚙️ This MCP server works together with the
Home Assistant Vibecode Agent,
installed as a Home Assistant add-on.
The agent runs on your Home Assistant instance and provides “eyes and hands” for AI IDEs like Cursor, VS Code, Claude Code, or any other MCP-enabled IDE.

Let AI build your Home Assistant automations – or act as your DevOps for the ones you write by hand. Just describe what you need in natural language. 🏠🤖

You describe your goal → AI inspects your Home Assistant → designs a custom solution → and deploys it on-board automatically. 🚀

And if you prefer to handcraft your automations and scripts yourself, the agent can simply act as your DevOps and extra pair of hands: quickly uploading your changes, running tests, and analyzing logs on demand. You stay in control and decide how much you delegate to AI and how deep it should go.

Transform the way you manage your smart home. This add-on enables Cursor, Visual Studio Code (VS Code), or any MCP-enabled IDE to:

  • 📝 Analyze your Home Assistant configuration, entities, and devices
  • 🏗️ Create intelligent automations, scripts, and complete systems — including Home Assistant helpers that can be fully managed programmatically
  • 🎨 Design and customize Lovelace dashboards with full control over cards, layouts, and styling
  • 🖌️ Create and tweak themes for a personalized UI
  • 🔄 Safely deploy changes with automatic Git-based versioning
  • 🔍 Monitor and troubleshoot your setup through log analysis
  • 📦 Install and manage HACS integrations and custom repositories

No more manual YAML editing or searching through documentation - just describe what you want in natural language!

Example: "Install smart climate control for my radiators" → AI creates 10+ automations, helpers, sensors, and scripts optimized for YOUR TRVs.

Built on Model Context Protocol and powered by HA Vibecode Agent.

✨ Key Features

🔍 Analyze your setup

✅ Read your full configuration — entities, automations, scripts, helpers
✅ Understand your devices — capabilities, relations, and usage patterns
✅ Learn existing logic — analyze how your current automations and scripts behave


🏗️ Build intelligence

✅ Create complete systems — multiple interconnected automations in seconds
✅ Generate helpers and sensors — tailored to your actual setup and needs
✅ Write optimized scripts — based on real entities, areas, and devices
✅ Refactor existing logic — improve or merge automations instead of starting from scratch


📊 Dashboards & UI

✅ Create and update Lovelace dashboards — fully programmatically
✅ Add, remove, or rearrange cards — stat, graphs, history, custom cards, and more
✅ Control layouts and views — organize rooms, areas, and scenarios
✅ Design and tweak themes — colors, typography, and styles for a personalized UI


🔒 Safe operations

✅ Git-based versioning — every change is tracked with meaningful commit messages
✅ Human-readable commits — AI explains what changed and why
✅ Configuration validation — test before apply to reduce breaking changes
✅ One-click rollback — revert to a previous state if something goes wrong
✅ Activity log — full audit trail of what the agent did and when


📦 Extend with the community

✅ Install and configure HACS — unlock 1000+ community integrations
✅ Search repositories — themes, plugins, custom components, dashboards
✅ Install integrations — one-command setup for new HACS components
✅ Keep things fresh — update all HACS repositories from a single place


Result:
You describe your goal → AI inspects your Home Assistant → designs a custom solution → and deploys it on-board automatically. 🚀


🚀 How is this different from other MCP modules for Home Assistant?

Most MCP integrations I’ve seen for Cursor, VS Code or Claude work only on your local machine and talk to Home Assistant over SSH and sometimes the REST API.

For serious Home Assistant work, that’s not really enough:

Home Assistant is not just a bunch of YAML files. It exposes multiple internal APIs, and some of the most important ones are only available from inside HA itself over the WebSocket API.

When you access HA only via SSH, the AI usually has to generate and upload a helper script on every request, then execute it blindly on the host. Since that script can be different every time, each request is a bit of a black box — more like playing Russian roulette than doing reliable automation.

Because of that, I chose a different architecture.

This project is split into two modules:

Home Assistant Agent (this module) – runs inside Home Assistant (as an add-on), has native access to all relevant APIs, files and services, and exposes a safe, well-defined interface for external tools.

Home Assistant MCP server – runs on your computer alongside your AI IDE (Cursor, VS Code, etc.) and talks to the Agent over a controlled API instead of SSH hacks (installation steps below)

This design makes working with Home Assistant faster, more predictable, safer and repeatable. Your AI IDE gets exactly the actions and data it needs — through a stable API — instead of constantly inventing ad-hoc scripts and hoping they behave correctly.


📋 Prerequisites

Before installing, you need:

  1. Home Assistant running (any version)
  2. HA Vibecode Agent v2.2.0+ installed as add-on
  3. Agent Key from HA Vibecode Agent (auto-generated on first start)
  4. AI-enabled editor installed (Cursor, VS Code + GitHub Copilot, Claude Code etc)

🚀 Quick Start (5 minutes)

Step 0: Install Node.js (if not already installed)

The MCP server requires Node.js to run on your computer (where your AI editor is installed):

  1. Check if Node.js is already installed: open terminal and run node --version
  2. If not installed or version is below v18.0.0, download and install from nodejs.org
  3. After installation, verify: node --version should show v18.0.0 or higher
  4. Important: Install Node.js on the computer where your AI editor runs, not on the Home Assistant server

Step 1: Install HA Vibecode Agent

Install the agent in your Home Assistant from :

  1. Go to SettingsAdd-onsAdd-on Store
  2. Click ⋮** → **Repositories
  3. Add: https://github.com/Coolver/home-assistant-vibecode-agent
  4. Install HA Vibecode Agent (v2.0.0+)
  5. Start the agent

Step 2: Setup MCP in Your AI Editor

Get configuration from Home Assistant:

  1. Open your Home Assistant (usually http://homeassistant.local:8123)
  2. Go to SettingsAdd-onsHA Vibecode Agent
  3. Click "Open Web UI" button
  4. Click the Cursor or VS Code tab (depending on which IDE you want to use with Home Assistant) and follow the setup instructions. You’ll need to install and configure Cursor or VS Code so they can connect to the HA Agent via the MCP protocol.
  5. That’s it — you’re ready to start working with your Home Assistant scripts, automations and dashboards using AI. If you find this project useful and want to support its development, please consider giving it a GitHub Star

Step 3: Test Connection

Verify everything works:

Open your AI editor (Cursor, VS Code, etc) and send this message to AI:

Connect to my Home Assistant and show me:
1. List of all my climate entities
2. Current status of the HA Vibecode Agent

This will verify the MCP connection is working.

If AI successfully returns your entities and agent status, you're all set! ✅

Troubleshooting: If connection fails:

  • Check that HA Vibecode Agent is running
  • Ensure your AI editor was fully restarted
  • Verify configuration was pasted correctly

Step 4: Start Building!

Just describe what you want in natural language - AI will handle the rest!


🔧 Configuration

Environment Variables

Variable Description Required Default
HA_AGENT_URL URL of HA Vibecode Agent Yes http://homeassistant.local:8099
HA_AGENT_KEY Agent Key for authentication Yes -

Custom Agent URL

If your agent runs on a different URL:

{
  "mcpServers": {
    "home-assistant": {
      "command": "npx",
      "args": ["-y", "@coolver/home-assistant-mcp@latest"],
      "env": {
        "HA_AGENT_URL": "http://<home-assistant-host>:8099",
        "HA_AGENT_KEY": "your_api_key_here"
      }
    }
  }
}

🐛 Troubleshooting

"Invalid Agent Key" error

  1. Check your Agent Key is correct in mcp.json (under HA_AGENT_KEY)
  2. Regenerate key if needed: Settings → Add-ons → HA Vibecode Agent → Open Web UI
  3. Make sure HA Vibecode Agent is running
  4. Verify agent is accessible: curl http://homeassistant.local:8099/api/health

"Connection refused"

  1. Check HA Vibecode Agent is started in Home Assistant
  2. Verify the URL in HA_AGENT_URL
  3. Make sure port 8099 is not blocked by firewall

"spawn npx ENOENT" error

This error means Node.js is not installed or not found in your system PATH.

Solution: Install Node.js (v18.0.0 or higher) on the computer where Cursor is running:

  1. Download and install Node.js from https://nodejs.org
  2. Restart Cursor completely after installation
  3. Verify installation by running node --version in a terminal

Important: Node.js must be installed on your computer (where Cursor, VS Code, Claude or other IDE runs), not on the Home Assistant server.


🔐 Security

  • ✅ All communication goes through HA Vibecode Agent (port 8099)
  • ✅ Agent Key authentication for MCP clients
  • ✅ Agent validates Agent Key for all requests
  • ✅ Agent uses internal SUPERVISOR_TOKEN for Home Assistant API operations
  • ✅ Your Agent Key is stored only in local IDE config file
  • ⚠️ Never commit mcp.json with your Agent Key to git!


📝 License

MIT © Vladimir Eremeev


🔧 Development

Project Structure

home-assistant-mcp/
├── package.json            # NPM package config
├── tsconfig.json           # TypeScript config
├── src/
│   ├── index.ts           # MCP server entry point
│   ├── ha-client.ts       # HA Agent API client
│   ├── handlers.ts        # Tool request handlers
│   ├── tools.ts           # Legacy tool definitions
│   └── tools/             # Modular tool definitions
│       ├── index.ts       # Tool exports
│       ├── files.ts       # File operation tools
│       ├── system.ts      # System operation tools
│       └── dashboard.ts   # Dashboard tools
├── build/                 # Compiled JavaScript output
├── README.md
├── CHANGELOG.md
└── QUICK_START.md

Architecture

MCP Server (index.ts) ← Communication Protocol

Tool Handlers (handlers.ts) ← Business Logic

HA Client (ha-client.ts) ← HTTP API Wrapper

HA Vibecode Agent (https://github.com/Coolver/home-assistant-vibecode-agent) (REST API) ← Home Assistant Integration


🙏 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

💬 Support


⭐ Show your support

Give a ⭐️ if this project helped you control your smart home with AI!

changelog

Changelog

All notable changes to this project will be documented in this file.

[3.2.25] - 2026-01-28

🔧 Timeout tuning for heavy operations

  • Increased default HTTP timeout in MCP HA client from 30 seconds to 90 seconds
    • Helps prevent timeouts for heavier operations like ha_list_automations on large/old Home Assistant instances
    • Per-request overrides (e.g. for add-on install/update with 10-minute timeouts) continue to work as before
    • Pairs with server-side optimizations in HA Vibecode Agent 2.10.35 for automation listing performance

[3.2.24] - 2026-01-27

✨ Update endpoints for automations and scripts

Complete CRUD operations for automations and scripts

  • Update automations: Added ha_update_automation tool to update existing automations via REST API
  • Update scripts: Added ha_update_script tool to update existing scripts via REST API
  • Full CRUD support: Now supports Create, Read, Update, Delete for both automations and scripts

[3.2.23] - 2026-01-20

✨ Device entity discovery support

Better device understanding for AI assistants

  • Device entity discovery: ha_get_device_registry_entry now supports include_entities parameter to retrieve all entities belonging to a device with their descriptions (entity_id, friendly_name, domain, device_class, current state) — perfect for understanding what sensors, switches, and other entities a physical device provides
  • Enhanced device information: When include_entities=true, responses include enriched entity information sorted by domain, making it easy for AI to understand device capabilities and help users work with specific devices

[3.2.22] - 2026-01-20

🔧 Version Metadata Sync

  • Version consistency: Synchronized version metadata across all files (package.json, src/index.ts, CHANGELOG.md)
  • Internal version tracking: MCP server now reports correct version (3.2.22) in server metadata

[3.2.21] - 2026-01-20

✨ Script listing & single-script fetch to save tokens

Context-efficient tools for working with large script sets

  • New lightweight listing tools: Added support for listing script and automation IDs without loading full YAML content, so AI can cheaply discover what exists
  • Single-entity fetch tools: New tools allow fetching configuration for a single script or automation by ID, instead of pulling everything into context
  • Reduced token usage: Designed specifically to minimize context size and token consumption when working with large scripts.yaml / automations.yaml
  • Better IDE workflows: IDEs can now first list IDs, then open only the script/automation currently being edited, keeping conversations focused and efficient

[3.2.20] - 2025-12-22

🐛 Bug Fix

  • Cleaner logs: Removed informational console messages to avoid [error] tags in Cursor logs
    • Startup connection messages are now silent (only errors are shown)
    • Added DEBUG mode support for verbose logging if needed (set DEBUG=true)
    • Prevents confusion with [error] tags for valid operations
    • Logs are now cleaner and only show real errors

[3.2.19] - 2025-12-22

🐛 Bug Fix

  • Fixed MCP JSON protocol errors: Changed console.log() to console.error() for informational messages
    • Prevents "Unexpected token" errors in MCP Cursor
    • MCP protocol requires clean JSON on stdout, informational messages now go to stderr
    • Fixes connection errors when MCP server starts

[3.2.18] - 2025-12-22

🔧 Maintenance

  • Documentation: Added comment about git tools in migratedToolNames list
  • Code organization: Clarified that git tools are in tools.ts (not migrated to separate module yet)

[3.2.17] - 2025-12-22

✨ Git Versioning: Manual Commit Mode Support

New Features:

  • Manual commit mode support: ha_git_commit now supports optional message parameter
    • When message is omitted and git_versioning_auto=false, returns suggested commit message
    • AI can show suggestion to user for confirmation/editing before committing
  • New ha_git_pending tool: View uncommitted changes in shadow repository
    • Useful when git_versioning_auto=false to see what changes are pending commit
    • Returns files modified/added/deleted, summary, and diff

Improvements:

  • Enhanced ha_git_commit handler: Properly handles needs_confirmation response from API
  • Better documentation: Updated tool descriptions to explain manual mode behavior

Maintenance:

  • Git ignore updates: Added COMMIT_MESSAGES.md and registry tokens to .gitignore

[3.2.16] - 2025-12-09

✨ New Feature

  • Dead Entities Detection: Added ha_find_dead_entities MCP tool to automatically detect "dead" entities in Entity Registry
    • Compares entities in registry (automation.* and script.*) with YAML configuration files
    • Identifies entities that exist in registry but are missing from YAML files
    • Returns detailed summary with counts and lists of dead automations and scripts
    • Safe read-only operation - only analyzes, doesn't modify anything
    • Helps keep Entity Registry clean by identifying orphaned entries

Why This Matters:

  • After deleting automations/scripts from YAML, their entries may remain in Entity Registry
  • These "dead" entities clutter the UI and can cause confusion
  • Now you can quickly identify and clean them up

Usage:

  • Call ha_find_dead_entities to get a report of all dead entities
  • Then use ha_remove_entity_registry_entry to clean them up

[3.2.15] - 2025-12-09

🔧 Improvements

  • Better error handling: Improved error message serialization for API errors
  • Enhanced debugging: More detailed error information when API calls fail
  • Better error display: Properly formats nested error objects from Home Assistant API

[3.2.14] - 2025-12-06

✨ NEW: Entity/Area/Device Registry API Support

Full access to Home Assistant registries with metadata and area assignments

  • Entity Registry API: Get all entities with metadata (area_id, device_id, name, disabled status, etc.)
  • Area Registry API: Full CRUD operations for areas (list, get, create, update, delete)
  • Device Registry API: Get and update devices with metadata (area_id, manufacturer, model, etc.)
  • 12 new MCP tools for registry operations (read and write)
  • Solves problem for users with many entities: Now AI can get complete picture with area assignments

New MCP Tools:

  • Entity Registry: ha_get_entity_registry, ha_get_entity_registry_entry, ha_update_entity_registry, ha_remove_entity_registry_entry
  • Area Registry: ha_get_area_registry, ha_get_area_registry_entry, ha_create_area, ha_update_area, ha_delete_area
  • Device Registry: ha_get_device_registry, ha_get_device_registry_entry, ha_update_device_registry, ha_remove_device_registry_entry

Why This Matters:

  • /api/entities/list only returns states, missing area assignments and metadata
  • Entity Registry provides area_id, device_id, custom names, disabled status

Requires: HA Vibecode Agent with Entity/Area/Device Registry API endpoints

[3.2.12] - 2025-12-06

🔧 Update

  • ✅ Updated package name to @Coolver

[3.2.11] - 2025-12-06

✨ New Feature

  • ✅ Added server.json configuration file for MCP server registry integration

[3.2.10] - 2025-12-06

📝 Documentation Update

  • ✅ Updated README.md with improved documentation and feature descriptions

[3.2.9] - 2025-12-06

📝 Documentation Update

  • ✅ Updated README.md with improved documentation and feature descriptions

[3.2.8] - 2025-12-06

📝 Documentation Update

  • ✅ Updated README.md with improved documentation

[3.2.7] - 2025-12-06

✨ Feature: Meaningful Git Commit Messages

AI-powered automatic generation of descriptive commit messages

  • Automatic commit message generation: MCP server now automatically generates meaningful commit messages based on operation context
  • User-provided descriptions: All write operations now accept optional description parameter for even more clarity
  • Context-aware messages: Commit messages explain what changed and why (e.g., "Add automation: Control lights when motion detected")
  • Easy change tracking: You can ask AI to show recent changes and quickly find what you need using meaningful descriptions

Updated tools:

  • ha_write_file - Now accepts optional description parameter
  • ha_create_helper - Now accepts optional description parameter
  • ha_create_automation - Now accepts optional description parameter
  • ha_create_script - Now accepts optional description parameter
  • ha_create_theme / ha_update_theme - Now accepts optional description parameter
  • ha_apply_dashboard - Now accepts optional description parameter

Examples:

  • When creating an automation, provide: "description": "Control living room lights when motion detected after sunset"
  • Result commit message: "Add automation: Control living room lights when motion detected after sunset"
  • If no description provided, MCP automatically generates meaningful message based on operation context

Requires: HA Vibecode Agent v2.10.2+

[3.2.2] - 2025-11-18

🔧 IMPROVED: Helper Deletion

Enhanced ha_delete_helper to support config entry helpers

Changes:

  • ha_delete_helper now attempts to delete helpers created via UI/API (config entries)
  • ✅ Works with both YAML-defined helpers and config entry helpers
  • ✅ Better error handling and reporting

Requires: HA Cursor Agent v2.9.3+

[3.2.1] - 2025-11-18

✨ NEW: Service Call Support

Added ability to call Home Assistant services via MCP

New Tool:

  • ha_call_service - Call any Home Assistant service (number.set_value, light.turn_on, climate.set_temperature, etc.)

Features:

  • ✅ Call any Home Assistant service through MCP
  • ✅ Support for service_data and target parameters
  • ✅ Examples: set number values, control lights, adjust thermostats, toggle switches
  • ✅ Full integration with Home Assistant API

Use Cases:

  • Set TRV temperature offsets: number.set_value with {"entity_id": "number.alex_trv_local_temperature_offset", "value": -2.0}
  • Control lights: light.turn_on with target entity
  • Adjust climate: climate.set_temperature with temperature value
  • Any other Home Assistant service

Implementation:

  • Added callService() method to HAClient
  • Added ha_call_service tool definition
  • Added handler in handlers registry
  • Integrated with HA Cursor Agent API endpoint

Requires: HA Cursor Agent v2.9.2+

[3.0.5] - 2025-11-10

🐛 Critical Bug Fix: Dashboard Apply

Fixed 422 error when applying dashboards

Bug:

  • Dashboard creation failed with 422 Unprocessable Entity
  • AI couldn't create dashboards

Root Cause:

  • Parameter order mismatch in handler
  • handler passed: (config, filename, register, backup)
  • client expected: (config, backup, filename, register)

Fix:

  • Corrected parameter order in handlers.ts
  • Matches ha-client.ts signature

Impact:

  • ✅ Dashboard creation now works
  • ✅ AI can create and apply dashboards
  • ✅ ha_apply_dashboard fully functional

Requires: HA Cursor Agent v2.7.2+

Version: 3.0.5 (PATCH - critical bug fix)

[3.0.4] - 2025-11-10

🏗️ REFACTOR: Modular Architecture

Internal refactor with 100% backward compatibility!

Part 1: Modular Tool Definitions

  • Created src/tools/ directory structure
  • Split tools into domain modules:
    • files.ts - File operations (4 tools)
    • system.ts - System operations (4 tools)
    • dashboard.ts - Dashboard operations (4 tools)
    • index.ts - Central export
  • 12 tools migrated to modules
  • Remaining 35 tools in old file (can migrate later)

Part 2: Handler Registry Pattern

  • Created src/handlers.ts with typed handlers
  • Replaced 428-line switch statement with registry lookup
  • Clean, maintainable handler functions

Benefits:

  • ✅ 75% reduction in index.ts (428 → 108 lines)
  • ✅ Type-safe handler functions
  • ✅ Easier to add new tools
  • ✅ Better code organization
  • ✅ Improved maintainability

Backward Compatibility:

  • ✅ All 47 tool names unchanged
  • ✅ All parameters unchanged
  • ✅ All behavior unchanged
  • ✅ No breaking changes
  • ✅ Users don't need to update configs

Git Stats:

  • index.ts: 428 → 108 lines (-75%)
  • handlers.ts: +270 lines (new)
  • tools/: +3 modules (new)

Version: 3.0.4 (PATCH - internal refactor, no API changes)

[3.0.3] - 2025-11-10

🔧 Final Polish: Complete Rename

Updated all remaining references to new package name:

Changes:

  • src/index.ts: server name 'mcp-home-assistant' → 'home-assistant-mcp'
  • src/index.ts: version synced with package.json (3.0.3)
  • QUICK_START.md: all paths and commands updated
  • bin: simplified format to string path

Version: 3.0.3

[3.0.2] - 2025-11-10

🐛 Bug Fix: NPM Publish Warnings

Fixed NPM publish warnings:

  • repository.url: added git+ prefix
  • Added .npmrc with provenance=true

[3.0.1] - 2025-11-10

🔧 Bug Fix: Bin Format

Restored bin to object format after NPM auto-correction.

[3.0.0] - 2025-11-10

🎯 BREAKING: Package Renamed + SDK Upgraded

MAJOR: Package renamed for consistency!

Old name: @coolver/mcp-home-assistant
New name: @coolver/home-assistant-mcp

Breaking Changes:

  • Package name changed
  • Users MUST update mcp.json:
    "args": ["-y", "@coolver/home-assistant-mcp@latest"]
  • SDK: 0.5.0 → 1.21.1 (new API)
  • bin command: mcp-home-assistant → home-assistant-mcp

Why:

  • Consistency with GitHub repo (home-assistant-mcp)
  • Development stage (no users affected)
  • Clearer naming (home-assistant first)

Changes:

  • package.json: name, version (2.5.1 → 3.0.0), bin, SDK dependency
  • README.md: all package references updated
  • QUICK_START.md: all package references updated
  • Repository: github.com/Coolver/home-assistant-mcp

Requires: HA Cursor Agent v2.6.0+

[2.5.0] - 2025-11-09

🎯 MAJOR REFACTOR: AI-Driven Dashboard Generation

Removed server-side generation - AI generates in Cursor now!

Changes:

  • ❌ REMOVED: ha_generate_dashboard tool
  • ✅ UPDATED: ha_analyze_entities_for_dashboard (full entity data)
  • ✅ KEPT: ha_apply_dashboard, ha_delete_dashboard

New Workflow:

  1. User asks for dashboard
  2. AI asks clarifying questions (conversational!)
  3. AI analyzes entities
  4. AI generates custom YAML in Cursor
  5. AI proposes to user
  6. AI applies via ha_apply_dashboard

Benefits:

  • AI understands context
  • Flexible custom layouts
  • Conversational approach
  • No rigid templates

Requires: HA Cursor Agent v2.5.0+

[2.4.3] - 2025-11-09

✨ Feature: Full HA Restart Tool

Added ha_restart tool:

  • Full Home Assistant restart (not just component reload)
  • Use when config changes require full restart
  • HA unavailable for ~60 seconds

Requires: HA Cursor Agent v2.4.7+

[2.4.2] - 2025-11-09

🗑️ Feature: Dashboard Deletion

Added ha_delete_dashboard tool:

  • Delete dashboard file
  • Remove from configuration.yaml
  • Restart Home Assistant
  • Git backup

Complete dashboard lifecycle:

  • ha_analyze_entities_for_dashboard → analyze
  • ha_apply_dashboard → create + register
  • ha_delete_dashboard → delete + unregister

Requires: HA Cursor Agent v2.4.5+

[2.4.1] - 2025-11-09

🎯 Feature: Dashboard Auto-Registration

Dashboard auto-registration parameters:

  • filename: custom dashboard filename
  • register_dashboard: auto-register in configuration.yaml
  • No manual UI steps needed!

Requires: HA Cursor Agent v2.4.2+

[2.4.0] - 2025-11-09

🎨 MAJOR: Lovelace Dashboard Generator

Initial dashboard generation tools:

  • ha_analyze_entities_for_dashboard
  • ha_generate_dashboard (later removed in v2.5.0)
  • ha_preview_dashboard
  • ha_apply_dashboard

Requires: HA Cursor Agent v2.4.0+

[2.3.4] - 2025-11-09

🔍 Feature: MCP Client Version Tracking

Send MCP version to agent in request headers:

  • ✅ Added X-MCP-Client-Version header to all requests
  • ✅ Version read from package.json automatically
  • ✅ Enables agent to log which MCP version is connecting

Changes:

  • src/ha-client.ts: added version reading from package.json
  • src/ha-client.ts: added X-MCP-Client-Version to axios headers
  • package.json: 2.3.3 → 2.3.4

Impact:

  • Agent can now see MCP client version in logs
  • Better debugging and compatibility tracking
  • Helps identify version mismatches

Requires: HA Cursor Agent v2.3.13+

[2.3.3] - 2025-11-09

🐛 Critical Bug Fix

Fixed Health Check Endpoint:

  • ✅ Changed healthCheck() from GET / to GET /api/health
  • ✅ MCP client now successfully connects to agent on startup
  • ✅ Fixes "Failed to connect to HA Cursor Agent" error

Root cause:

  • healthCheck() was calling wrong endpoint: / (ingress panel HTML)
  • Should call: /api/health (health check JSON API)
  • Agent was working, but MCP couldn't validate connection
  • MCP exits if health check fails

Impact:

  • MCP server now starts successfully
  • All tools become available in Cursor
  • Connection validation works correctly

Changes:

  • src/ha-client.ts: healthCheck endpoint fix
  • build/: recompiled TypeScript

[2.3.1] - 2025-11-09

🔧 Feature: Repository Management

Add-on Repository Management - Add community repositories to access popular add-ons!

New MCP Tools (2 repository tools)

Repository Management:

  • ha_list_repositories - List all connected add-on repositories
  • ha_add_repository - Add custom add-on repository URL

Why This Matters

Problem: Users see only 1-2 add-ons because community repositories aren't connected.

Solution: AI can now:

  1. Check which repositories are connected
  2. Suggest adding popular repositories
  3. Add repositories programmatically
  4. Show available add-ons after adding repository

Popular repositories:

Changes

  • Added ha_list_repositories tool
  • Added ha_add_repository tool
  • AI can now manage repository sources
  • Better explanation when minimal add-ons available

Requires

  • HA Cursor Agent v2.3.10+

[2.3.0] - 2025-11-09

🚀 MAJOR: Complete Add-on Management

Full add-on lifecycle management - Install, configure, and control Home Assistant add-ons via Cursor AI!

New MCP Tools (12 add-on tools)

Add-on Lifecycle:

  • ha_list_addons - List all available and installed add-ons
  • ha_list_installed_addons - List only installed add-ons
  • ha_addon_info - Get detailed add-on information
  • ha_addon_logs - Read add-on logs for troubleshooting
  • ha_install_addon - Install add-on (Zigbee2MQTT, Node-RED, etc)
  • ha_uninstall_addon - Uninstall add-on
  • ha_start_addon - Start add-on service
  • ha_stop_addon - Stop add-on service
  • ha_restart_addon - Restart add-on service
  • ha_update_addon - Update add-on to latest version
  • ha_get_addon_options - Get add-on configuration
  • ha_set_addon_options - Configure add-on options

Features

Agent v2.3.0 adds Supervisor API:

  • Full add-on management via Supervisor API
  • Timeout handling for long operations
  • Error handling and user-friendly messages
  • Log monitoring capabilities

Full workflow now works:

"Install Zigbee2MQTT for my Sonoff dongle""Setup Mosquitto MQTT broker""My Zigbee2MQTT isn't working - check logs and fix""Update all my add-ons"

README Improvements

  • ✅ Added "🔌 Manage Add-ons & Services" section
  • ✅ Clear examples: Zigbee2MQTT, MQTT, Node-RED
  • ✅ Shows natural language prompts for add-on operations
  • ✅ Better visibility of service management features

Impact:

  • Complete infrastructure setup automation
  • Simplified Zigbee/MQTT configuration
  • Automated add-on troubleshooting
  • Aligned with agent v2.3.0

Requires: HA Cursor Agent v2.3.0+

[2.2.2] - 2025-11-09

📝 Documentation Enhancement

README Improvements

  • ✅ Added "📦 Extend with Community Integrations" section to main capabilities
  • ✅ Clear examples of HACS usage with natural language prompts
  • ✅ Better visibility of community integrations feature (1000+ repos)
  • ✅ Improved feature discoverability in main README

Impact:

  • Users better understand HACS capabilities from README
  • Clear examples of how to use HACS through Cursor AI
  • Better alignment with agent v2.2.3 documentation

[2.2.1] - 2025-11-09

🧠 Tool Descriptions Enhancement

Proactive HACS Support

  • ✅ Enhanced ha_hacs_status description - now instructs AI to ALWAYS check this first when HACS is mentioned
  • ✅ Updated ha_hacs_list_repositories - reminds to check status and offer installation if needed
  • ✅ Updated ha_hacs_search - same proactive installation logic
  • ✅ Better AI behavior - automatically offers HACS installation when user requests custom integrations

Impact:

  • AI now proactively suggests HACS installation
  • Improved user experience - no need to manually discover HACS
  • Aligned with agent v2.2.2 AI Instructions

[2.2.0] - 2025-11-09

🚀 MAJOR: Complete HACS Integration with WebSocket

Full HACS Management - Browse, search, and install 1000+ integrations via Cursor AI!

New MCP Tools

Added 7 HACS tools (4 new, 3 enhanced):

Installation:

  • ha_install_hacs - Install HACS automatically
  • ha_hacs_status - Check if HACS is installed

Repository Management (NEW - WebSocket powered):

  • ha_hacs_list_repositories - List all HACS repositories ✨ Enhanced
  • ha_hacs_search - Search by name/author/description ✨ NEW
  • ha_hacs_install_repository - Install from HACS ✨ Enhanced
  • ha_hacs_update_all - Update all repositories ✨ NEW
  • ha_hacs_repository_details - Get detailed repo info ✨ NEW

Features

Agent v2.2.0 adds WebSocket:

  • Persistent WebSocket connection to Home Assistant
  • Real-time state access
  • Service calls via WebSocket
  • Auto-reconnect with backoff
  • Background task management

Full workflow now works:

User: "Install HACS and then install Xiaomi Gateway 3"

AI:
1. Installs HACS from GitHub ✅
2. Restarts Home Assistant ✅
3. Waits for connection ✅
4. Searches: "xiaomi gateway" ✅
5. Finds: "AlexxIT/XiaomiGateway3" ✅
6. Installs via hacs.download ✅
7. Guides through config ✅

What you can do:

  • 📦 "Install HACS"
  • 🔍 "Search for Xiaomi integrations in HACS"
  • ⬇️ "Install Xiaomi Gateway 3 from HACS"
  • 🔄 "Update all my HACS integrations"
  • 📊 "Show me details about the Xiaomi Gateway integration"

Requirements:

  • HA Cursor Agent v2.2.0+ (with WebSocket)
  • HACS configured via UI first time (one-time)

[2.1.0] - 2025-11-09

✨ NEW: HACS Support (Initial)

Basic HACS installation support (file operations only).

Note: v2.1.0 only supported installation. v2.2.0 adds full repository management with WebSocket.

[2.0.0] - 2025-11-08

🚨 BREAKING CHANGES

  • Removed HA_TOKEN support - only HA_AGENT_KEY is accepted now
    • Old configurations with HA_TOKEN will STOP WORKING
    • Must update to HA_AGENT_KEY in your Cursor MCP configuration
    • Cleaner API without legacy naming

Migration Required

If you're using HA_TOKEN:

// OLD (will not work in v2.0.0+):
{
  "env": {
    "HA_TOKEN": "your-key"
  }
}

// NEW (required):
{
  "env": {
    "HA_AGENT_KEY": "your-key"
  }
}

How to migrate:

  1. Update HA Cursor Agent add-on to v2.0.0
  2. Get new configuration from Web UI (Settings → Add-ons → HA Cursor Agent → Open Web UI)
  3. Copy the ready-to-use JSON config
  4. Update Cursor: Settings → Tools & MCP → Edit your server or add new one
  5. Restart Cursor

Why This Change?

  • ✅ Accurate naming: It's an Agent Key, not a HA Token
  • ✅ No confusion with Home Assistant authentication tokens
  • ✅ Simpler codebase
  • ✅ Clear API semantics

What Stays the Same

  • ✅ Same MCP tools and functionality
  • ✅ Same HA Cursor Agent API endpoints
  • ✅ Only variable name changed

[1.0.14] - 2025-11-08

Documentation

  • Fixed Ingress Panel access path in documentation

[1.0.13] - 2025-11-08

Documentation

  • Updated setup instructions to use Cursor Settings UI

[1.0.12] - 2025-11-08

Documentation

  • Updated agent version requirements

[1.0.11] - 2025-11-08

Documentation

  • Updated to reference agent v1.0.11+

[1.0.10] - 2025-11-08

Documentation

  • Updated to reference agent v1.0.10+

[1.0.9] - 2025-11-08

Added

  • Support for HA_AGENT_KEY environment variable (with backward compatibility to HA_TOKEN)

[1.0.8] - 2025-11-08

Documentation

  • Updated for API Key authentication instead of Long-Lived Tokens

[1.0.7] - 2025-11-08

Documentation

  • Updated for HA Cursor Agent v1.0.9+ with API Key system

[1.0.6] - 2025-11-08

Fixed

  • Fixed ha_reload_config to properly pass component parameter

Added

  • ha_git_diff tool for viewing differences between commits

[1.0.5] - 2025-11-08

Changed

  • Updated tool descriptions with [READ-ONLY] and [WRITE] labels

[1.0.4] - 2025-11-08

Added

  • Better log formatting for ha_get_logs tool

[1.0.3] - 2025-11-08

Added

  • Git diff functionality

[1.0.2] - 2025-11-08

Documentation

  • Updated README with improved instructions

[1.0.1] - 2025-11-08

Fixed

  • Initial release fixes

[1.0.0] - 2025-11-08

Added

  • Initial release
  • MCP server for Home Assistant via HA Cursor Agent
  • Full API coverage (files, entities, helpers, automations, scripts, system, backup, logs)
  • TypeScript implementation
  • NPM package publication