homekit

A set of tools for controlling and checking Apple HomeKit smart-home devices, cameras, rooms, and sensors.

In plain words
What is it for?
Useful for listing homes, rooms, cameras, devices, and motion sensors; changing device settings; capturing camera snapshots; and reading or buffering motion and doorbell events.
Why use it?
It lets an agent work with HomeKit devices and read their status without manually opening a home-control app.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rodaddy/mcp2cli/homekit
Any agent
npx skills add rodaddy/mcp2cli --skill homekit
Clone the repo
git clone --depth 1 https://github.com/rodaddy/mcp2cli

Made for: Claude Code, Codex.

Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00360
Opus 5 $0.00005 $0.00180
Sonnet 5 $0.00002 $0.00072
Haiku 4.5 $0.00001 $0.00036

Measured 2d ago against content hash 80ae05b8f715, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

homekit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills/homekit/SKILL.md · 48 lines

What it actually says

homekit

MCP tools for homekit

Quick Reference

Tool Description
capture_snapshot Capture a snapshot from a HomeKit camera.
control_device Control a device.
get_device_state Get the current state of a device (on/off, brightness, color, etc.
get_motion_state Get the current motion detection state of a sensor.
get_pending_events Get buffered motion/doorbell events.
list_cameras List all HomeKit cameras.
list_devices List all devices from HomeKit and enabled plugins (Govee) with their names, room...
list_homes List all HomeKit homes configured on this Mac.
list_motion_sensors List all motion sensors, occupancy sensors, and doorbells in HomeKit.
list_rooms List all rooms in all HomeKit homes.
scrypted_capture_snapshot Capture a snapshot from a Scrypted camera.
scrypted_get_camera_state Get the current state of a Scrypted camera including motion detection status.
scrypted_list_cameras List all cameras from Scrypted NVR with their capabilities (motion detection, au...
subscribe_events Enable motion event buffering.

Usage

mcp2cli homekit <tool> --params '{...}'

See references/ for detailed parameter docs per tool.

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 48 lines · 9 tokens per session scan A 80ae05b8f715

Subscribe to this mod's changes

homekit is a skill published in the GitHub repository rodaddy/mcp2cli (8 stars, last pushed 10d ago), licensed MIT. It adds 9 tokens to every session and 360 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.