/mqtt-observability:mqtt-setupfrom mqtt-observability
First-run setup for MQTT Observability — collect broker host/IP, port, type, username, and password; persist as environment variables for later reuse.
Ships in mqtt-observability. Installing the plugin adds it to Claude Code.
Collect the user's MQTT broker connection details and persist them so the other plugin skills (mqtt-monitor-all, mqtt-monitor-topic, mqtt-publish) can reuse them without re-asking.
Ask the user (in one message, not five):
10.0.0.3, mqtt.local, or broker.hivemq.com.1883 (plaintext) or 8883 (TLS). If the user doesn't specify, assume 1883.mosquitto, hivemq, emqx, aws-iot, home-assistant, other. Informational only; used for hints about topic conventions.true / false. Default false unless port is 8883.If any of these were already provided in the user's invocation message, don't re-ask — just confirm the full set back before writing.
Write a credentials file at ~/.claude/plugins-data/mqtt-observability/credentials.env with this exact format (so the skills can source it):
export MQTT_HOST="<host>"
export MQTT_PORT="<port>"
export MQTT_BROKER_TYPE="<type>"
export MQTT_USERNAME="<username>"
export MQTT_PASSWORD="<password>"
export MQTT_TLS="<true|false>"
Create the parent directory if needed:
mkdir -p ~/.claude/plugins-data/mqtt-observability
chmod 700 ~/.claude/plugins-data/mqtt-observability
After writing the file, chmod 600 it so the password isn't world-readable.
After writing the file, source it in the current shell so the variables are available for any immediately-following skill invocation in this conversation:
set -a; . ~/.claude/plugins-data/mqtt-observability/credentials.env; set +a
If mosquitto_pub is available on the system, run a smoke test:
mosquitto_pub -h "$MQTT_HOST" -p "$MQTT_PORT" \
${MQTT_USERNAME:+-u "$MQTT_USERNAME"} \
${MQTT_PASSWORD:+-P "$MQTT_PASSWORD"} \
${MQTT_TLS:+--cafile /etc/ssl/certs/ca-certificates.crt} \
-t "claude/mqtt-observability/setup-test" \
-m "setup ok $(date -Iseconds)" \
-q 0
If mosquitto_pub is not installed, tell the user:
mosquitto-clients is not installed. Install with:
sudo apt install mosquitto-clients
Don't fail the setup if the tooling is missing — just persist the credentials and flag the missing dependency.
Tell the user:
~/.claude/plugins-data/mqtt-observability/credentials.env)/mqtt-setup again — it overwrites)What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
mqtt-observability@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin mqtt-observability