
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@vortitron/home-assistant-mcp
Advanced tools
Model Context Protocol (MCP) server that lets coding agents (Cursor, VS Code, Claude) read and control Home Assistant, ESPHome and Node-RED: inspect entities, call services, render templates, debug logs, edit automations and deploy Node-RED flows.
A Model Context Protocol (MCP) server that lets coding agents — Cursor, VS Code (Copilot), Claude Desktop and anything else that speaks MCP — talk directly to Home Assistant and (optionally) the ESPHome dashboard.
Instead of copy-pasting entity ids, YAML and current values into your agent, the agent can discover entities, read live state, render templates, call services and edit automations itself — and iterate until the code actually works.
Part of the Vome family and an open-source companion to VomeHome (managed Home Assistant). It is useful stand-alone for any Home Assistant user.
A typical "change an automation" loop today looks like: you tell the agent which entities exist, paste their current values, paste the YAML, apply the change, then manually check whether it worked. With this server the agent does all of that:
All write operations are off by default and gated behind an explicit safety policy (see Safety).
| Tool | Description |
|---|---|
ha_get_config | Core config: version, location, time zone, loaded components. |
ha_list_entities | List entities (filter by domain, free-text search, area). |
ha_get_state | Full state + attributes for one or more entities. |
ha_get_history | Historical state changes over a time window. |
ha_list_services | Available services (and their fields for a given domain). |
ha_list_areas | Areas (rooms/zones). |
ha_list_devices | Device registry (filter by area / search). |
ha_get_entity_registry | Registry metadata: platform, area, device, disabled/hidden. |
ha_render_template | Render a Jinja2 template against live state. |
ha_list_helpers | List stored helpers (input_boolean, input_number, counter, timer, …). |
ha_list_automations | Automations with entity_id, unique id, state, last-triggered. |
ha_get_automation | Full automation config (triggers/conditions/actions). |
ha_check_config | Validate the configuration (Check configuration). |
ha_get_system_log | Deduplicated, structured errors — level, logger, source, count, first/last seen. Start here. |
ha_get_error_log | Tail of the raw Home Assistant error log. |
ha_get_supervisor_log | Add-on / Core / Supervisor / host logs (direct mode, HAOS or Supervised). |
ha_get_logbook | Human-readable logbook entries. |
ha_list_traces | Recent automation/script runs and how each one stopped. |
ha_get_trace | Step-by-step detail for one run, with failed_at naming the blocking step. |
Write-gating depends on the mode. In direct mode the MCP is the only guard, so these refuse until
HA_ALLOW_WRITE=true. In brokered mode your VomeHome API key carries the per-instanceha:write/ha:configscopes and the server enforces them, so the client flags are optional local-only restrictions.
| Tool | Description |
|---|---|
ha_call_service | Call any service (turn_on, set_temperature, …). |
ha_clear_system_log | Empty the structured error store (only needs HA_ALLOW_WRITE). |
ha_set_log_level | Change logging for one integration at runtime (only needs HA_ALLOW_WRITE). |
ha_set_automation | Create or update an automation (also needs HA_ALLOW_CONFIG_WRITE). |
ha_set_helper | Create or update a helper — no configuration.yaml, no restart. |
ha_read_config_file | Read a file under the config directory (needs ha:files). |
ha_write_config_file | Replace a file under the config directory; checks the config and restores the file if it fails (needs ha:files). |
ha_list_config_files | List a directory under the config directory (needs ha:files). |
ha_delete_helper | Delete a stored helper. |
ha_delete_automation | Delete an automation (also needs HA_ALLOW_CONFIG_WRITE). |
ha_trigger_automation | Manually run an automation now. |
ha_reload_automations | Reload automations without restarting. |
| Tool | What it does |
|---|---|
ha_list_dashboards | List dashboards (url_path, title, mode, sidebar). |
ha_get_dashboard | Read one dashboard's full config (views, cards, …). |
ha_save_dashboard | Save/replace a dashboard config (needs HA_ALLOW_CONFIG_WRITE). |
ha_create_dashboard | Register a new storage-mode dashboard (needs HA_ALLOW_CONFIG_WRITE). |
ha_delete_dashboard | Delete a dashboard by id (needs HA_ALLOW_CONFIG_WRITE). |
Dashboards use Home Assistant's WebSocket API. In brokered mode VomeHome proxies an allowlisted subset via
POST /api/v1/instances/<id>/ha/ws/command. |ha_fire_event| Fire a custom event on the event bus. |
| Tool | Description |
|---|---|
esphome_dashboard_info | How ESPHome is reached, and whether flashing/logs are available right now. |
esphome_list_devices | List dashboard configurations/devices; flags configs needing renames. |
esphome_list_migrations | ESPHome spellings a config still uses that have been renamed. |
esphome_get_config | Read a configuration's YAML. |
esphome_save_config | Write a configuration's YAML (write-gated). |
esphome_validate | Validate a configuration. |
esphome_compile | Compile firmware. |
esphome_upload | Compile + flash a device over the air; validates first (write-gated). |
esphome_logs | Read a device's live logs — boot, wifi, sensors, crashes. |
esphome_clean | Delete cached build files after a stale-build compile failure (write-gated). |
There is nothing to configure. Every command — builds and logs included — goes through the VomeHome relay, so ESPHome works wherever brokered Home Assistant does, with no port to open.
There is also no second way in. The ESPHome add-on is host-networked with its web
port disabled, behind an ingress that admits only the Supervisor and localhost,
so the Vome component on the home is the only thing that can reach the dashboard
at all. A direct-dashboard mode existed once (ESPHOME_DASHBOARD_URL) and was
removed in 0.6.0: it spoke a protocol ESPHome has since deleted, and on a default
install it could not connect anyway.
NODERED_URL)Node-RED is the flow-based editor that ships as a Home
Assistant add-on. It is powerful but fiddly to edit by hand — so let the agent
read and write the flow JSON for you. Flows are stored as a JSON array of nodes
grouped into tabs; these tools work a tab at a time (safe) or on the whole
config (deliberate). Writes are gated behind the same switches as editing HA
automations (HA_ALLOW_WRITE + HA_ALLOW_CONFIG_WRITE).
| Tool | Description |
|---|---|
nodered_get_flows | Get the full flow config (all tabs) plus the current revision. |
nodered_get_flow | Get one flow (tab) and its nodes by id. |
nodered_list_nodes | List installed node modules/types (the palette). |
nodered_create_flow | Add a new tab without disturbing existing flows (write-gated). |
nodered_update_flow | Replace one tab by id, leaving others untouched (write-gated). |
nodered_delete_flow | Delete a tab and its nodes (write-gated). |
nodered_set_flows | Replace the entire flow config and deploy (write-gated). |
VOMEHOME_TOKEN)VomeHome is managed Home Assistant hosting. Log in to the portal with GitHub, mint a personal access token under Account → API tokens, and the agent can manage your instances from the editor. Advanced management stays behind a full browser login on the portal.
| Tool | Description |
|---|---|
vomehome_list_instances | List your HA instances with status, tier, URL, live health, the active instance and per-instance client write/config access. |
vomehome_get_instance | Details + live status for one instance. |
vomehome_use_instance | Switch which instance the ha_* tools target (multi-instance — see Several instances from one token). |
vomehome_reboot_instance | Reboot an instance's VM (write-gated). |
vomehome_create_instance | Create a throwaway test/sandbox instance (needs the create scope on your API key; the new instance becomes the active target). |
vomehome_get_login_url | Mint a one-click HA login URL to open in a new tab. |
| Tool | Description |
|---|---|
ha_supervisor_api | Call a Supervisor endpoint via supervisor/api (store, add-ons, …). |
ha_addon_install_vome | Add https://github.com/Vortitron/VomeSync to the store, install Vome, and start it. |
ha_config_entry_options | Read or set an integration's options — including ESPHome's allow_service_calls. |
ha_config_entry_options reaches settings that exist nowhere else in the API.
The one people ask for is ESPHome's "allow the device to perform Home
Assistant actions" (allow_service_calls): a device cannot call HA services
without it, and it is several clicks deep in the UI, so it is routinely
forgotten. Get the entry id from ha_list_config_entries with domain=esphome,
call with entry_id alone to read the form, then again with user_input.
Submitting sets every field on the form, so send the values you read back with
only what you meant to change altered.
Needs a Supervised/HAOS target (e.g. a VomeHome sandbox from vomehome_create_instance, or the ha-plc-sandbox MCP entry). In brokered mode the API key's scopes decide — no HA_ALLOW_WRITE / VOMEHOME_ALLOW_CREATE env flags required. Container-only HA has no add-on store — use HACS for the integration there.
Typical developer flow: vomehome_create_instance → wait until running → ha_addon_install_vome → restart Core → add the Vome integration.
Requires Node.js ≥ 18.18 (Node 20+ recommended). There is nothing to install
by hand — your editor launches the server on demand with npx, so the same
config works on every machine (no absolute paths).
Click it, then edit the pre‑filled HA_URL and HA_TOKEN. (If the button does
nothing, copy the cursor:// link from the source of this section into your
browser's address bar.)
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one
project) and fill in your token — that's the whole install:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "paste-your-long-lived-token",
"HA_ALLOW_WRITE": "false"
}
}
}
}
npx -y @vortitron/home-assistant-mcp doctor # one-off connectivity check
# or hack on it:
git clone https://github.com/Vortitron/home-assistant-mcp.git
cd home-assistant-mcp && npm install && npm run build
npx -y @vortitron/home-assistant-mcp tunnel --token <jwt> --local-port 3390
Opens a local listener on 127.0.0.1:<local-port> and forwards it, over the
same outbound relay Vome already uses (no port-forwarding on your router), to
a tcp-scheme LAN route on a Vome-linked Home Assistant — e.g. an RDP host.
Point mstsc/Remmina/any TCP client at that local address. Get a token from
Home Assistant: Developer Tools → Actions → vomesync.mint_lan_tcp_token
(or the Vome App's ingress panel → LAN tunnels → "Get tunnel token"). Tokens
are short-lived and scoped to one instance + one route.
Configuration is via environment variables (a local .env is also read). Copy
.env.example to .env and fill it in, or set the variables in your editor's MCP
config.
| Variable | Default | Description |
|---|---|---|
HA_URL | — (required) | Base URL, e.g. http://homeassistant.local:8123. |
HA_TOKEN | — (required) | Long-lived access token (Profile → Security). |
HA_ALLOW_WRITE | off (direct) / permissive (brokered) | Local write guard. In brokered mode the API key's per-instance scope decides (server-enforced); setting false only adds a local restriction. In direct mode this is the master switch and defaults off. |
HA_DENY_DOMAINS | lock,alarm_control_panel,cover,climate,vacuum,valve,water_heater,lawn_mower,camera | Domains that can never be written. Set empty to clear. |
HA_ALLOW_DOMAINS | (any) | If set, only these domains may be written. |
HA_ALLOW_CONFIG_WRITE | off (direct) / permissive (brokered) | Local guard for editing automation config. Same semantics as HA_ALLOW_WRITE. |
NODERED_URL | (disabled) | Node-RED editor/admin base URL, e.g. http://homeassistant.local:1880. Enables the nodered_* tools. |
NODERED_TOKEN | — | Bearer token if Node-RED adminAuth is enabled. |
NODERED_USERNAME / NODERED_PASSWORD | — | Credentials exchanged for a token via /auth/token, if you prefer not to mint one by hand. |
VOMEHOME_API_URL | https://vome.io | VomeHome portal base URL. |
VOMEHOME_TOKEN | (disabled) | VomeHome personal access token; enables the vomehome_* tools. |
VOMEHOME_INSTANCE_ID | (direct mode) | The active/default instance to broker HA calls to. With a token and no HA_TOKEN, HA tools route through VomeHome (see Brokered mode). What it may do is set by your token's per-instance scopes in the portal (server-enforced). |
VOMEHOME_INSTANCES | (none) | Optional JSON registry to make multiple instances known at startup, e.g. [{"id":"rly-house","label":"home"},{"id":"sbx"}]. Per-instance write/config here are optional local restrictions (omit to defer to the server). Switch between them with vomehome_use_instance. See Several instances from one token. |
VOMEHOME_ALLOW_CREATE | (defer to key) | Optional local guard for creating an instance. The real authority is the account-wide create scope on your API key; set false to block creation locally regardless. Instances you create become the active target for the session. |
HA_TIMEOUT_MS | 15000 | HTTP/WebSocket request timeout. |
MAX_RESULTS | 500 | Max items a list tool returns before truncating. |
LOG_LEVEL | info | error | warn | info | debug (logs go to stderr). |
In Home Assistant: click your user (bottom-left) → Security tab → Long-lived access tokens → Create token.
This is a standard stdio MCP server, so the same binary works everywhere.
Use the one‑click button above, or create .cursor/mcp.json
in your project (or ~/.cursor/mcp.json for all projects). See
examples/cursor.mcp.json:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "paste-your-long-lived-token",
"HA_ALLOW_WRITE": "false"
}
}
}
}
Create .vscode/mcp.json (see examples/vscode.mcp.json).
VS Code can prompt for the token so it is not stored in the file:
{
"inputs": [
{ "id": "ha_token", "type": "promptString", "description": "Home Assistant token", "password": true }
],
"servers": {
"home-assistant": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "${input:ha_token}"
}
}
}
}
Add the same block under mcpServers in claude_desktop_config.json.
Each entry under mcpServers is its own server process with its own
environment, so to control several Home Assistants — each with a different
token — add one entry per instance and give each a distinct name. The name
prefixes the tool names in your editor (e.g. ha-home: ha_list_entities), so
the agent always knows which house it is talking to. See
examples/cursor.multi.mcp.json:
{
"mcpServers": {
"ha-home": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"VOMEHOME_TOKEN": "vh_token-for-home",
"VOMEHOME_INSTANCE_ID": "rly-aaaaaaaaaaaa"
}
},
"ha-cottage": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"VOMEHOME_TOKEN": "vh_token-for-cottage",
"VOMEHOME_INSTANCE_ID": "rly-bbbbbbbbbbbb"
}
}
}
}
Brokered and direct entries mix freely (e.g. a brokered home plus a direct
HA_URL/HA_TOKEN lab instance), and each entry can carry its own safety
flags — a read-only token for the family home, writes enabled for the test
bench.
The multi-process layout above is one process per token. When several instances
live on the same VomeHome account (same token), you can instead drive them
all from one server and switch between them at runtime. Permissions live on
the key — you grant ha:write / ha:config per instance in the portal and the
server enforces it — so the config below is just about which instances are known
at startup (plus any optional local belt-and-braces restrictions).
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"VOMEHOME_TOKEN": "vh_your-account-token",
"VOMEHOME_INSTANCE_ID": "rly-house",
"VOMEHOME_INSTANCES": "[{\"id\":\"rly-house\",\"write\":false,\"label\":\"home (locked read-only here)\"},{\"id\":\"sbx-plc\",\"label\":\"PLC sandbox\"}]"
}
}
}
}
VOMEHOME_INSTANCE_ID is the active/default instance the ha_* tools
target at startup (folded into the registry automatically as "default").
What it may do is set by your token's per-instance scopes in the portal.VOMEHOME_INSTANCES declares which instances are known at startup. Listing
them is optional — the token already reaches them — but it lets you pin the
active target and add local restrictions. A per-instance write / config
here is an optional local-only restriction: omit it to defer to the server,
or set false to keep an instance read-only on this machine regardless of what
the key allows (the example locks the house locally).vomehome_use_instance switches the active instance for subsequent ha_*
calls; vomehome_list_instances shows which one is active and each
instance's effective access.vomehome_create_instance) needs the create scope on
your key — you own what you create: a created instance becomes the active
target for the session. Add its id to VOMEHOME_INSTANCES to keep it known
across restarts.The API key is the single source of truth and the server has the final say
(it returns 403 if the key lacks a scope). The client flags above only ever
restrict further on this machine; they never widen what the token can do.
npx -y @vortitron/home-assistant-mcp doctor
doctor checks REST, the WebSocket registry and (if configured) the ESPHome
dashboard, and prints a health summary. It never starts the MCP server, so it is
safe to run any time.
Designed to be safe to point at a real home:
HA_TOKEN the MCP is the
only guard, so every state-changing tool refuses until HA_ALLOW_WRITE=true.
In brokered mode permissions instead live on your VomeHome API key and are
enforced server-side per instance (see Brokered mode).HA_DENY_DOMAINS.HA_ALLOW_DOMAINS to permit only specific
domains.ha_call_service checks the domain of every target
entity — including entity ids nested anywhere inside data — so a generic
service (e.g. homeassistant.turn_on) cannot be used to reach a denied
domain. Generic services targeting an area/device/label are refused while
a deny/allow-list is active, because those selectors resolve server-side and
cannot be checked here; target entity ids or use the domain-specific service
(e.g. light.turn_on) instead.ha:config scope (brokered) or HA_ALLOW_CONFIG_WRITE=true (direct).VOMEHOME_ALLOW_CREATE
client flag can add a local block. The VomeHome token is scoped server-side to
your own account.Tools are also annotated with MCP hints (readOnlyHint, destructiveHint) so
clients can warn before destructive calls.
The guard constrains what these tools will do, and it's a strong guardrail
when the MCP server is the agent's only route to Home Assistant. It is not a
cryptographic boundary: a Home Assistant long‑lived token grants full access, so
an agent that also holds that token can call the HA API directly and bypass the
guard. So keep the token in your editor's MCP config (ideally ~/.cursor/mcp.json,
outside any repo the agent can read) — not in files the agent browses.
For a genuine boundary, point the agent at VomeHome instead: it holds only a
revocable VOMEHOME_TOKEN while the powerful HA credential stays server‑side,
where access is policed and audited — so the agent can't go around the policy.
See Brokered mode.
Direct mode is convenient, but the write‑guard only helps if the agent doesn't also hold the HA token. Brokered mode closes that gap: the agent is given a revocable, scoped VomeHome token and an instance id — and no Home Assistant token at all. Every HA read/write is proxied through the VomeHome portal, which:
ha:write for an instance genuinely cannot change it, no matter how it's used;homeassistant.turn_on can't reach a lock);Because the policy lives on the server, the agent cannot bypass it — that's the difference between a guardrail and a boundary.
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"VOMEHOME_TOKEN": "vh_paste-your-token",
"VOMEHOME_INSTANCE_ID": "your-instance-id"
}
}
}
}
Mint the token at Account → API tokens in the portal. There you grant, per
instance, whether it may control Home Assistant (ha:write) and/or edit
automation config (ha:config) — and you can edit those grants after issuing the
key. The key is the single source of truth; the MCP just carries it. Get the
instance id from the dashboard or the vomehome_list_instances tool. (The portal's
token page generates this token-only snippet for you.)
Token scopes for the
vomehome_*tools. The instance-management tools (vomehome_list_instances,_get_instance,_use_instance,_get_login_url) need theinstances:readscope, andvomehome_create_instanceneedsinstances:write(which implies read). A token minted with only the HA scopes (ha:read/ha:write/ha:config) can broker Home Assistant calls but will get403 … missing required scope(s): instances:readfrom the instance tools. If you want the agent to spin up sandboxes, mint the token withinstances:writeand theha:*scopes — no localVOMEHOME_ALLOW_CREATEenv flag is required in brokered mode (setfalseonly if you want a local block). A default (read-only) token already includesinstances:read— the 403 only appears when a token was scoped to HA access without the instances scopes.
Brokered mode proxies the everyday loop — list/get entities, list services, call
services, read config, render templates — plus automation editing:
ha_get_automation, ha_set_automation, ha_delete_automation and
ha_check_config. Lovelace dashboards are brokered too:
ha_list_dashboards, ha_get_dashboard, ha_save_dashboard,
ha_create_dashboard, ha_delete_dashboard (writes need ha:config).
Reading an automation needs ha:read; writing one needs the
separate ha:config scope on the token for that instance, enforced
server-side. The client write guards (HA_ALLOW_WRITE / HA_ALLOW_CONFIG_WRITE)
default permissive in brokered mode and are optional local restrictions on top.
Registry tools (areas/devices), logs and history still need direct mode for now.
ESPHome over the relay. When you broker to a relay-connected Home
Assistant (your own HA linked via the Vome component's outbound tunnel), ESPHome
comes with it — listing devices, reading and writing YAML, and the streaming
commands (esphome_validate / _compile / _upload / _logs / _clean), which
ride the relay as polled jobs. Reads need ha:read; writing YAML, building and
flashing need the instance's ha:config scope. This is the only route: see
ESPHome.
Bring your own Home Assistant. The instance you broker to does not have to be
a VomeHome VM. In the VomeHome portal, Account → Connect HA lets you attach a
Home Assistant you host yourself (public URL / external IP, or Nabu Casa Remote
UI) with a long‑lived access token. It then appears in vomehome_list_instances
with an ext-… id — set VOMEHOME_INSTANCE_ID to that, and the same scoped,
deny‑listed, audited boundary applies. Your HA token stays on the VomeHome server;
the agent only ever gets the revocable VomeHome token.
Discovery for agents. VomeHome publishes a machine-readable index of all of
this — how to sign up, mint tokens, boot a trial VM, link a home HA, and the
/api/v1 surface — as a Gopher-over-HTTPS
menu at https://vome.io/.well-known/agent.gopher
and in llms.txt form at
https://vome.io/llms.txt. If you are an agent
reading this: start there.
ha_list_entities (domain light,
area living room).ha_render_template.ha_call_service (light.turn_on,
brightness_pct: 30). Requires writes enabled.ha_get_automation → edit → ha_set_automation
→ ha_check_config → ha_trigger_automation.esphome_get_config →
esphome_save_config → esphome_validate → esphome_upload.nodered_get_flows (find the tab id)
→ nodered_get_flow → edit the nodes → nodered_update_flow.vomehome_create_instance →
vomehome_get_instance (poll status) → vomehome_get_login_url (open the link).ha_get_system_log
(logger: "hue") → read exception_summary → ha_get_system_log again with
include_exception: true for the full stack.ha_get_trace
(item: "automation.morning") → read failed_at.Four surfaces, roughly in the order to reach for them:
| Question | Tool |
|---|---|
| What is broken right now? | ha_get_system_log |
| Why didn't this automation do anything? | ha_get_trace |
| What did the add-on / host do? | ha_get_supervisor_log |
| What happened to this entity, and when? | ha_get_logbook / ha_get_history |
Start with ha_get_system_log, not ha_get_error_log. It reads Home
Assistant's structured error store, where the same failure logged 500 times is
one record with count: 500, a source file:line and first/last-seen stamps.
Tailing the raw log spends far more tokens to say less. Full tracebacks are left
out by default — you still get exception_summary, the final line that names the
actual exception — so ask for include_exception: true once you know which entry
matters.
The reproduce loop. When you can trigger the problem on demand, don't sift through history at all — make the log contain only your reproduction:
ha_set_log_level (integration: "hue", level: "debug") — debug on the one
integration, not globally.ha_clear_system_log.ha_call_service, ha_trigger_automation, …).ha_get_system_log — everything returned was caused by step 3.Levels are runtime-only and reset on restart. Both write tools need
HA_ALLOW_WRITE=true in direct mode, but not HA_ALLOW_CONFIG_WRITE, and the
domain deny/allow lists don't apply — they change log plumbing, not entities.
Traces answer what logs can't. An automation whose condition returned false
logs nothing at all; the trace records it. ha_get_trace defaults to the most
recent run and returns failed_at — the first step that errored or evaluated
false — alongside the trigger and the ordered steps. Home Assistant keeps only a
few traces per item (5 by default) and none from before the last restart, so
ha_list_traces returning nothing usually means "trigger it and look again".
/devices, /edit) are used for listing and reading/writing
YAML. These work over the VomeHome relay as well as directly.validate, compile, upload, logs and clean run over the dashboard's
multiplexed /ws API. Over the relay they are brokered as jobs: the portal
starts one and this client polls it, which is what lets a multi-minute compile
survive the ordinary HTTP timeouts in between.esphome-device-builder, which replaced the per-command WebSockets
(/validate, /logs, …) and the /edit REST endpoint with a single /ws
socket; the remaining legacy endpoints are documented upstream as deprecated.
The component translates /ws into the stable line/exit stream the relay
carries, so this client, the portal and the relay never learn that ESPHome
moved. Builds go through the dashboard's job queue, so an agent-triggered
build also shows up in its own "Firmware tasks" panel.src/esphome/discovery.ts) finds a dashboard for direct mode,
where there is no relay and so no policy layer to bypass. Call
esphome_dashboard_info to see which mode is active and, when nothing is
reachable, every address that was tried and how each failed.esphome_upload validates before it flashes. A device that takes a bad build is
offline until someone reaches it with a cable, so the cheap check runs first;
pass skip_validate: true to bypass it.1880
(http://homeassistant.local:1880). Point NODERED_URL at it.adminAuth set, supply
NODERED_TOKEN (or NODERED_USERNAME/NODERED_PASSWORD, which the client
exchanges for a token). An add-on reachable only on your trusted network, or
behind HA ingress / an auth-terminating proxy, needs no auth here.nodered_set_flows rewrites everything — prefer nodered_create_flow /
nodered_update_flow for day-to-day edits. Pass the rev from
nodered_get_flows so a concurrent change in the editor is detected rather
than silently overwritten.docs/alt_interfaces_plan.md).npm run dev # run from source with tsx (watch)
npm run build # compile to dist/
npm test # vitest
npm run lint # eslint
npm run typecheck # tsc --noEmit
Layout:
src/
index.ts # entry: MCP stdio server + `doctor`/`tunnel` CLI
config.ts # env parsing + validation
safety.ts # write-guard policy
logger.ts # stderr logger
ha/ # Home Assistant REST + WebSocket + brokered clients
esphome/ # ESPHome dashboard client
nodered/ # Node-RED admin API client
vomehome/ # VomeHome portal client
tools/ # one module per tool group
cli/doctor.ts # connectivity check
cli/tunnel.ts # raw-TCP LAN tunnel client (RDP, etc.)
tests/ # vitest unit tests
VOMEHOME_TOKEN
so the HA credential never reaches the agent and the read‑only / deny‑domain /
audit policy is enforced server‑side. Automation editing and the ESPHome
REST subset are brokered too (the latter over a relay-connected HA). See
Brokered mode. Next: registry (areas/devices)
over the broker and a per‑token audit view in the portal.vomehome_* tools already list, create, reboot
and open instances. Next: point HA_URL/HA_TOKEN at a freshly created sandbox
automatically so an agent can try changes there before touching a real home,
then promote what works. (Requires the portal API endpoints described in
project_outline.md.)/import + wizard flow), so an agent can take a brand-new
board from unflashed to working entity without a UI step.MIT © Vortitron
FAQs
Model Context Protocol (MCP) server that lets coding agents (Cursor, VS Code, Claude) read and control Home Assistant, ESPHome and Node-RED: inspect entities, call services, render templates, debug logs, edit automations and deploy Node-RED flows.
We found that @vortitron/home-assistant-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.