Walk the user through setting up Home Assistant credentials and persist them to `~/.mcp.json` so the MCP server can authenticate on every Claude Code launch.
How this skill is triggered — by the user, by Claude, or both
Slash command
/homeassistant-manager:configureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Walk the user through setting up Home Assistant credentials and persist them to `~/.mcp.json` so the MCP server can authenticate on every Claude Code launch.
Walk the user through setting up Home Assistant credentials and persist them to ~/.mcp.json so the MCP server can authenticate on every Claude Code launch.
Say: "What is the URL of your Home Assistant instance? (e.g. http://homeassistant.local:8123 or https://ha.yourdomain.com)"
Store as HA_URL.
Say: "Please paste your Home Assistant Long-Lived Access Token. Create one in Home Assistant under your Profile → Long-Lived Access Tokens (scroll to the bottom of the page)."
Store as HA_TOKEN.
Use Python to read ~/.mcp.json (create if missing), set the env vars under the homeassistant-manager server, and write it back:
import json, os
path = os.path.expanduser("~/.mcp.json")
config = {}
if os.path.exists(path):
with open(path) as f:
config = json.load(f)
config.setdefault("mcpServers", {}).setdefault("homeassistant-manager", {}).setdefault("env", {}).update({
"HA_URL": "<value from step 1>",
"HA_TOKEN": "<value from step 2>"
})
with open(path, "w") as f:
json.dump(config, f, indent=2)
print("Saved.")
Say: "Home Assistant credentials saved to ~/.mcp.json. Run /reload-plugins to apply them."
~/.mcp.json is missing, create it with the full structure.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub pzharyuk/ai-claude-plugins --plugin homeassistant-manager