Also sets a write deadline on MCP responses so a client that stops
reading cannot hold up change notices, and checks that an ID exists
before the find tool reports it.
Serves the public read API to AI assistants at /mcp. Off by default;
private when mcp.keys are set, public otherwise. Tools call the REST
handlers in-process, so validation, guards and errors match REST.
Humidity, pressure, gas and power monitor channels are decoded when a reading is stored. Positions and altitude are never decoded. Fixes the humidity size, which is one byte on the wire.
A repeater read by a poller this server does not assign now counts as polled while a trusted reading is under 36 hours old. gone_quiet takes 3 and 6 hours on every radio.
polling.foreign_claims: check takes a claim as this server's own only
when its signed poll_url names DOMAIN, or, for firmware that sends
none, when a rebroadcaster says it arrived on one of polling.mqtt_hosts.
Any other claim is foreign, and one that can be placed neither way is
dropped. The default, off, treats every claim as its own, as before.
A foreign observer is kept out of polling_claims, so it is never a
poller or standby, gets no owners answer and takes no request. Its
readings are stored, marked foreign and trusted on the same advert
evidence. A reading with no claim behind it is kept as foreign too.
Claims that carry a signature are verified with the observer's key in
every mode; a wrong one is dropped. Asking for telemetry on a repeater
a foreign observer already checks needs acknowledgeForeign.
MQTT_BROKER_n_REBROADCAST=true marks a broker that forwards from other
brokers and names each message's source in the source-broker and
source-host user properties. The worker then connects with MQTT 5 and
records packets, observations and observer brokers under the source
name. Without it the connection is 3.1.1 as before.
Each packet keeps the set of brokers it arrived through (brokers on
packet detail). Observer broker lists and the broker filter cover the
last 30 days, and GET /brokers/sources lists the names for the filter.
The server now reads DOMAIN, and WEB_DOMAIN when the web app is on
another host, for mailed links and the portal callback. A leftover
accounts.public_url is ignored with a startup warning.
Release note for the next production release: accounts.public_url is
removed and no longer needed. Accounts need DOMAIN in the server's
environment; the Docker stacks already set it. Docs need the same
update.
A claim can reach a server its observer does not ask for policy. Tell
them apart by the claim's poll_url, or by whether the observer asked
this server lately, and keep such observers out of requests.
The slot limit now follows the claim instead of a fixed 8 (default 8, ceiling 32), in the poller view and in the seat math. The poller view also reports pollIntervalMinutes.
A status with a lower uptime stored a row at once every time, so falling or
negative uptimes and boot loops wrote a row and an alert per message. Now a
window takes one immediate reboot row, a negative uptime is unusable, and a
late copy of the boot's first status (the other broker's delivery) is dropped
instead of reading as a second reboot.
The tracker records a status only once its row is written, so a failed insert
leaves the reboot for the other broker's copy. The row after an immediate
reboot row is stamped on arrival, so the gap between the two is the time that
passed.
Readings of a repeater an observer polls on its own were hidden unless it heard a zero-hop advert in the last 24h. They are now trusted while no assignee of that repeater has advert evidence. The window is polling.evidence_window, default 7d.
Alerts go out by email, by push or both, as each user chooses. Push is
sent through the push server with the operator's Push ID and secret and
sealed per device, so this server no longer holds a Firebase key. The
outbox tracks each channel, so a retry of one never repeats the other.