mcp
v0.2.1MCP server exposing GitOps-oriented tools for Home Assistant
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ha_snapshot Inventory snapshot for Home Assistant
Read-only inventory of the connected Home Assistant instance: every entity (with current state and attributes), device, area, integration and config entry, plus the core version. Returned as compact JSON in the domusops.snapshot/0.1 format. detail=summary gives counts and topology only; standard (default) is grouped, templated and at least 5x smaller than the raw registries on a 500-entity reference instance (asserted in CI); full keeps every field, including those standard omits, in the same lossless encoding. Secrets and coordinates are always redacted. Every response reports its compression…
| Parameter | Type | Description |
|---|---|---|
detail | string | summary: counts and topology only. standard: compressed full inventory. full: every field, including those standard omits (escape hatch; larger). |
ha_logbook_query Logbook history for Home Assistant
Read-only history of what happened on the connected Home Assistant instance: the logbook events in a time window, in order, each with its cause (the automation, script, service call, user, or entity behind it). Returned as compact JSON in the domusops.logbook/0.1 format, with event times in the instance's local time. start and end are ISO 8601 (no offset means the instance's time zone); the default window is the last 24 hours. entities takes exact entity IDs or * patterns (light.*, *_motion); without it, every event is returned, including instance start and stop. exclude takes the same IDs and…
| Parameter | Type | Description |
|---|---|---|
detail | string | summary: counts per entity, domain, and cause. standard: every event, compressed. |
end | string | Window end, ISO 8601. Default: now. A later time is clamped to now. |
entities | array | Entity IDs or patterns where * matches anything (light.*, *_motion). Omit for every event. |
exclude | array | Entity IDs or patterns to leave out, in the same form as entities (*_firmware, button.*). Applied after entities; events with no entity are never excluded. |
start | string | Window start, ISO 8601 (2026-09-26T03:00 or 2026-09-26T03:00:00-06:00). Default: 24 hours before end. |
ha_trace Automation and script traces for Home Assistant
Read-only step-by-step traces of automation and script runs on the connected Home Assistant instance: what triggered each run, which conditions passed or failed, which branches and actions ran with which data, how long each step took, and where and why the run stopped. Also returns not-triggered traces (a trigger evaluated a change but did not fire), which explain why an automation did not run. Returned as compact JSON in the domusops.trace/0.1 format, with times in the instance's local time. entities takes automation or script entity IDs or * patterns (automation.*, script.*_lights); without…
| Parameter | Type | Description |
|---|---|---|
context | string | A context ID from a ha_trace or ha_logbook_query response, or a full 26-character context ID. Returns every run in that context. Not combinable with entities, exclude, start, end, or run. |
detail | string | summary: one row per run. standard: every step, compressed losslessly. |
end | string | Keep runs that started at or before this time, ISO 8601. Default when start is given: now. |
entities | array | Automation or script entity IDs, or patterns where * matches anything (automation.*, script.*_lights). Omit for every automation and script. |
exclude | array | Automation or script entity IDs or patterns to leave out, in the same form as entities. Applied after entities. Not combinable with run or context. |
run | string | A run ID from an earlier ha_trace response (32 hexadecimal characters). Returns that run only. Not combinable with entities, exclude, start, end, or context. |
start | string | Keep runs that started at or after this time, ISO 8601 (2026-09-26T03:00 or 2026-09-26T03:00:00-06:00). Default when end is given: 24 hours before end. |
ha_state Entity states for Home Assistant
Read-only current state of the entities of the connected Home Assistant instance: for each one its state, its attributes, when it last changed, was last updated and last reported, and the context of the change. Returned as compact JSON in the domusops.state/0.1 format, grouped by domain and templated, with times in the instance's local time. entities takes exact entity IDs or * patterns (light.*, *_motion); without it, every entity is considered. domain keeps only those domains (light, sensor); state keeps only entities whose state is one of the values given (on, unavailable). exclude takes th…
| Parameter | Type | Description |
|---|---|---|
attributes | array | Attribute names to keep (brightness, friendly_name). Without it, every attribute is returned. Not combinable with detail=summary. |
detail | string | summary: counts per domain, with unavailable and unknown. standard (default): every selected entity with its state, attributes, times and context. |
domain | array | Domains to keep (light, sensor). Combined with entities, an entity must match both. |
entities | array | Entity IDs or patterns with * (light.kitchen, light.*, *_battery). Without it, every entity is considered. |
exclude | array | Entity IDs or patterns to leave out, in the same form as entities (*_firmware, button.*). Applied after the other filters. |
state | array | State values to keep, compared exactly (on, off, unavailable, unknown). |
ha_history Entity history for Home Assistant
Read-only recorded history of the entities of the connected Home Assistant instance over a time window: for each entity the state it had at the start of the window, then every recorded change with its time, its state and the attributes that changed. Use it to answer when an attribute changed and to what (a battery level, a light's color, a motion attribute). Returned as compact JSON in the domusops.history/0.1 format: unchanged attributes are not repeated from one change to the next, and times are in the instance's local time, to the second, grouped by date and hour. entities takes exact entit…
| Parameter | Type | Description |
|---|---|---|
attributes | array | Attribute names to keep (battery_level, brightness). Without it, every attribute is returned. With it, a change is listed only when the state or one of these attributes changed. Not combinable with de… |
detail | string | summary: counts of changes per domain, and per entity when entities is given. standard (default): every listed entity's start state and changes. |
end | string | Window end, ISO 8601. Defaults to now; a future end is clamped to now. |
entities | array | Entity IDs or patterns with * (light.kitchen, light.*, *_battery). Without it, every entity the instance has now is considered. |
exclude | array | Entity IDs or patterns to leave out, in the same form as entities (*_power, sun.*). Applied after entities. |
significant_only | boolean | Keep only the changes the instance considers significant, which leaves out most attribute-only changes. Default false: every recorded change. |
start | string | Window start, ISO 8601 (2026-09-26T03:00, or with an offset). Defaults to 24 hours before end. The window may not exceed 10 days. |
ha_system_log System log for Home Assistant
Read-only errors and warnings the connected Home Assistant instance has recorded in its system log since it last started (the instance keeps a bounded number, 50 by default): for each entry its level, logger, the integration it belongs to (custom integrations marked), its source file and line, how many times it occurred, its first and last occurrence, its distinct messages and its full exception traceback. Use it to find why an integration stopped working or what failed when an automation ran. Returned as compact JSON in the domusops.system_log/0.1 format: entries in order of last occurrence,…
| Parameter | Type | Description |
|---|---|---|
detail | string | summary: counts of entries and occurrences per integration and level. standard (default): every selected entry with its messages and traceback. |
exclude | array | Integration domains or patterns to leave out, in the same form as integrations. Applied after integrations; never removes an entry that belongs to no integration. |
integrations | array | Integration domains or patterns with * (mqtt, hue*, *_cloud). Without it, every entry is considered, including those that belong to no integration. |
level | string | The minimum level. Without it, every recorded entry (the instance records warnings and above). |
start | string | Keep entries whose last occurrence is at or after this time, ISO 8601 (2026-11-13T08:00, or with an offset). It may not be in the future. |
ha_ping Connection check for Home Assistant
Read-only check of whether this server can work with the connected Home Assistant instance, before any real query. Reads only the current user's administrator flag and the instance's core configuration: no entities, registries, history or traces. Returns compact JSON in the domusops.ping/0.1 format: the server's name and version; the instance's version, the minimum this server supports, whether it is supported, and its time zone (start and end without an offset are read in it); whether the token's user is an administrator; which integrations the other tools need are loaded; and, for every othe…