From unifi-protect
Walk the user through setting up UniFi Protect NVR 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
/unifi-protect:configureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Walk the user through setting up UniFi Protect NVR credentials and persist them to `~/.mcp.json` so the MCP server can authenticate on every Claude Code launch.
Walk the user through setting up UniFi Protect NVR 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 UniFi Protect NVR or console? (e.g. https://192.168.1.1 or https://unifi.local)"
Store as UNIFI_HOST.
Say: "What is your UniFi Protect admin username?"
Store as UNIFI_USERNAME.
Say: "What is your UniFi Protect admin password?"
Store as UNIFI_PASSWORD.
Say: "Should SSL certificates be verified? Most homelabs use self-signed certs. Enter true or false (default: false)."
Default to false if unsure. Store as UNIFI_VERIFY_SSL.
Use Python to read ~/.mcp.json (create if missing), set the env vars under the unifi-protect 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("unifi-protect", {}).setdefault("env", {}).update({
"UNIFI_HOST": "<value from step 1>",
"UNIFI_USERNAME": "<value from step 2>",
"UNIFI_PASSWORD": "<value from step 3>",
"UNIFI_VERIFY_SSL": "<value from step 4>"
})
with open(path, "w") as f:
json.dump(config, f, indent=2)
print("Saved.")
Say: "UniFi Protect credentials saved to ~/.mcp.json. Run /reload-plugins to apply them."
~/.mcp.json is missing, create it with the full structure.Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub pzharyuk/ai-claude-plugins --plugin unifi-protect