v1.45 - 2026-12-01
A changed configuration is taken over by the running server, without a restart and without dropping a client (#115), the portal shows the requests of every MCP token (#116), the server knows and says how its Zabbix servers are (#117, all three by @tomaszajpt), and OAuth on a local http address starts again, which v1.44 broke. Every change has tests that run against a real server process.
Upgrading
- Nothing to change in
config.toml. A config of v1.44 loads as it is. Four options are new and optional:health_check_interval(60),health_check_timeout(10),usage_stats(true) andusage_retention_days(30). - The server writes request counts to
usage/next to its log (/var/log/zabbix-mcp/usage/, in Docker thelogsvolume): one small JSON file per day with counts per token name, tool and hour, kept 30 days. No token value and no request content.usage_stats = falseswitches it off. /healthwithout a token answers exactly what it did,{"status":"ok"}, with 200, whatever state Zabbix is in. The container health check, a load balancer probe and the portal's status dot are unaffected. A request that carries anAuthorization: Bearerheader now gets the detail for a valid MCP token and 401 for one that is not valid (it got{"status":"ok"}whatever the header said): a probe that sends a stale token along has to drop the header or use a valid one.- The server makes two small requests to every configured Zabbix server once a minute (
apiinfo.versionand ahost.getfor one id, plustoken.getwhere there are API tokens). Sethealth_check_interval = 0to switch the background check off; a server is then checked when somebody asks. - A change saved in the admin portal is in effect at once. Before, every save raised "Restart needed" and nothing but tokens changed until the restart. If you relied on a saved change waiting for a restart you chose the moment of, it no longer waits: an IP allowlist, a public address or a Zabbix server saved in the portal applies when you click Save. What still waits is marked "restart" in Settings.
SIGHUPreloads the configuration. It ended the process before (and systemd started it again).systemctl reload zabbix-mcp-serveris new;systemctl reload-or-restart, which the certbot hook ofinstall.sh request-tlshas always used, now reloads and no longer restarts.rate_limitwritten as something other than a number ("many",true) is a configuration error at start. It was accepted, and every tool call then failed with a TypeError. A number in quotes ("300") is read as the number, with a warning; a negative number means "no limit" as before.[oauth] enabled = truewithpublic_url = "http://localhost:..."on a server that listens on all interfaces starts again (see Fixed). Nothing to change.install.sh updaterewrites the systemd unit (it gainsExecReload) and restarts the service once, as every update does.
Added
- Configuration reload (#115). The running server reads
config.tomlagain and applies it. MCP sessions, open notification streams and client connections are not touched; a tool call that is running finishes with the settings it started with.- How: saving in the admin portal;
sudo systemctl reload zabbix-mcp-server;sudo ./deploy/install.sh reload(checks the file first and prints what the server made of it);docker compose kill -s HUP zabbix-mcp-server;SIGHUP; "Apply now" in the portal for a file that was edited by hand, which the portal notices by its content. - Applied at once: MCP tokens; Zabbix servers (added, removed, URL, API token,
read_only,verify_ssl, time zone, timeout);allowed_hosts,public_url,additional_hosts,allowed_origins,cors_origins,trusted_proxies;rate_limit,response_max_chars,tools_list_cache_ttl,allowed_import_dirs,timezone;log_levelandlog_file; a new TLS certificate and key for a server that runs with TLS; the health check settings; report branding,[reporting],[reporting.email]and the custom report templates; portal users,[admin.ai]and the update check; the OAuth lifetimes and the registered OAuth clients. - Waits for a restart, each with the reason shown next to it:
host,port,transport, the portal port and switch (sockets are opened at start);tools,disabled_tools,register_write_tools,compact_output,validate_get_params,schema_constraints,reject_unknown_arguments,strip_write_params(the tool catalog is built at start and clients keep it); switching TLS or OAuth on or off;require_authand the legacyauth_token. The first token on a server that started without authentication, and the last one removed, wait as well and are named: authentication is built into the endpoint at start, and a server that started open stays open until it is restarted. - Validated before it is applied. The file goes through the checks a start makes, and the ones around them (TLS files that are not a certificate and its key, a portal port equal to the MCP port). A file that fails changes nothing, not even its valid part: the server keeps the configuration it runs with, and the reason is in the log and in the portal until the file is fixed. One
[zabbix.<name>]section that stopped validating does not fail the rest: that server keeps the definition it runs with. A file that was still being written when the signal came (an editor, a bind mount) is read once more before a failure is reported. - An OAuth client removed from
config.tomlby hand is removed from the running server with its tokens, as "Revoke" in the portal does. - A save does not apply what somebody edited by hand. If
config.tomlalready held changes made outside the portal that were not applied, a save in the portal applies nothing; it says so, and "Apply now" applies all of it. - A reload signal during the start is not lost and does not end the server: it is acted upon as soon as the server is up.
- Reported. One log line per reload with what was applied, what waits and why, by whom or by which signal; a failed reload is an error line. A reload that did not come from the portal is in the audit log (
config_reload). - What waits is compared with what the server started with, so putting the old value back clears it without a restart. A setting given on the command line (
--host,--port,--transport, as the shipped compose file does) is not taken from the file, and a reload says so instead of asking for a restart that would change nothing. - A renewed TLS certificate is loaded without a restart.
systemctl reloadafter certbot (the hook ofrequest-tlsdoes it) or after replacing the files puts the new certificate into the listeners of the MCP endpoint and of the portal. A pair that does not match is refused and the certificate in use stays.
- How: saving in the admin portal;
- Admin portal.
- Saving says what became of the change: "In effect now, no restart needed", or "Waiting for a restart: Port". The "Restart needed" badge and banner appear only for settings that do wait and list them with the running value, the saved value and the reason. "Restart now" is where it was.
- Settings: every field that waits carries a "restart" mark with the reason, from the same table the server goes by. The line "All changes in this section require a server restart" that stood above five sections is replaced by what is true for each section.
- Dashboard: "Zabbix server health" (status, kind of failure, response time, last check, last success, when the API token expires) and "Configuration" (in effect / waiting / changed on disk / does not load, and the last reload).
- A file changed outside the portal is offered with "Apply now" in the header and on the Dashboard; one that does not load is named with the reason.
- Settings: "Health Check Interval" and "Health Check Timeout".
- Health of the Zabbix servers (#117). A background check of every configured Zabbix server at a configurable interval, with a timeout and requests of its own, so a Zabbix that hangs holds up neither a tool call nor a probe.
- Per server:
status(ok,auth_failed,unreachable,error), the kind of failure asreason(dns,refused,network,timeout,tls,http,not_zabbix,auth,token_expired,api) with a sentence that says what it means, the Zabbix version, the response time, the time of the last check and of the last success, since when it fails, and when the Zabbix API token expires (with a warning from 14 days before), where Zabbix tells. The error message itself is shown in the portal and written to the log, not sent to a token holder: it can name internal hosts. - Overall:
healthy,degraded(some servers do not work),unhealthy(none does). GET /healthwith a valid MCP token adds all of this for the servers that token may use. Without a token it stays{"status":"ok"}.GET /health/ready: the readiness probe. 200 while at least one Zabbix server works, 503 when none does, with the same detail. For whoever may call a tool: an MCP token where authentication is configured (a Kubernetes probe sends it inhttpHeaders), anybody on a server without authentication.- Liveness and readiness are separate: an outage of Zabbix or an expired API token never fails
/health, so nothing restarts the MCP server for it. It is reported: in the answers above, in the portal, and in the log once when it begins and once when it ends. - The
health_checktool names the kind of failure (reason) next to"status": "error". No token value, password or credential is part of any answer. - A server with password login (
legacy_auth, Zabbix 5.0 / 5.2) is asked through the session the server already holds. A login is made only when there is none, and after one Zabbix refused not again for 15 minutes: a wrong password tried every minute would block the user in Zabbix. - With an IP allowlist the endpoints are for the listed addresses, like every path. The bare
/healthfor this machine itself (the container health check) stays reachable from127.0.0.1and looks at no token there. - One answer of a WAF in front of Zabbix (HTTP 403, 429, 502 to 504) is asked again once before the check counts as failed.
- Per server:
[server].health_check_interval(60 s; 0 = off, a server is checked when asked) andhealth_check_timeout(10 s).- Request statistics per MCP token (#116). Every tool call is counted for its caller (an MCP token, an OAuth client, or nobody on a server without authentication) and its tool.
- Admin portal, new page "Usage": total, successful and failed requests, the average and the longest time; a chart of requests over time (per hour, per day for a longer period) with the failed part marked; a table per token with the time of its last request; a table per tool; the latest requests one by one; filters by period (last hour to 90 days, or two dates), token and tool; CSV export of the hourly counts. The page of a token shows its last 30 days.
- Kept across restarts: one small file per day in
usage/next to the server log, written every 30 seconds and when the server stops;usage_retention_days(30) decides how long. A directory that cannot be written leaves the statistics in memory, and the page says so. - Two servers that were given the same log directory do not overwrite each other's files: the second one counts in memory and says so. A file that is damaged, or a directory the service cannot read, is logged and left out; statistics never stop a start or fail a tool call.
- No secrets: a token is its config key and its name, an OAuth client its id. Token values, arguments and answers are never stored. A tool name that does not exist is counted as
(unknown tool)and what a client sends cannot grow the tables without bound. GET /api/usageon the portal returns the numbers as JSON for a logged-in session.[server].usage_stats = falseswitches the counting off; both settings are in Settings and apply without a restart.
install.sh reload, andinstall.sh generate-token <name>applies the new token to the running server instead of asking for a restart.- Installer on a stock system.
- Debian / Ubuntu: Python's
venvmodule is a package of its own there (python3.11-venv). Without it the install stopped half-way with the distribution's hint, after the user and the directories had been created. The installer installs the package itself now, and stops before creating anything when it cannot. - openSUSE / SLES:
--install-pythoninstalls Python 3.11 withzypper(the system Python is 3.6), and the message without the flag names the command.
- Debian / Ubuntu: Python's
Fixed
- With
[oauth] enabled = true, a server listening on all interfaces andpublic_url = "http://localhost:8080"did not start in v1.44: "OAuth needs https", exit code 2. This is the shippeddocker-compose.yml(the container listens on0.0.0.0, the port is published on the Docker host's127.0.0.1) and the local setupdocs/OAUTH.mddescribes; it worked up to v1.43. The check v1.44 added before the start went by the listen address, while the rule is about the address OAuth advertises: https, or http forlocalhost,127.0.0.1and[::1]. It now follows that rule, which is the MCP SDK's own, and a test compares the two address by address. The other way round is covered as well:host = "127.0.0.1"withpublic_url = "http://mcp.example.com"still ended in the SDK's traceback and now exits with the same message and code 2. - Admin portal, Client MCP Wizard: the
serverparameter of the page address went into the command to copy unchecked. A link to the wizard with a made-up?server=put its text into theclaude mcp add ...line and into the JSON key of the snippets, shell metacharacters included. Only the name of a configured server is used now,zabbixotherwise. - Installer.
port = 8443 # behind the proxy: the port and the listen address were not read when a comment followed the value. The health check after the restart then asked port 8080, and since v1.44updateended with exit code 1 for a server that was running.generate-token <name>with a quote or a backslash in the name wrote aconfig.tomlthat did not load.generate-token updateran an update: a word that is also a command was taken as the command. Aftergenerate-tokenandrequest-tlsit is that command's argument.updatethat had to rebuild a damaged virtualenv did not install PDF reporting again where it had been installed.
- A tool list that named servers no longer configured. The
serverparameter of every tool is described with the configured servers; the description is now built from the servers of the moment, which a reload can change. - The dashboard's server status opened a new connection to every Zabbix server on each page load (and, with password login, a new session). It shows what the health check last saw.
Documentation
- README: "Health Check" rewritten (liveness, readiness, the fields, which probe for what, a Zabbix HTTP agent item on
/health/ready), new section "Changing the configuration without a restart" with the two tables, the Docker and TLS sections, the installer table. INSTALL.md andconfig.example.tomlsay which options need a restart.
Tests
- 245 new tests, among them real server processes with a Zabbix API on a socket next to them: every setting that is applied at once is changed on a running server and observed from outside (an allowlist that starts refusing, a token that starts working, a Zabbix server that appears in the health answer, a certificate that is served after the reload), a session opened before a reload is used after it, a broken file leaves the server as it was, and the portal is driven through its forms. One test fails when a configuration option is added without saying whether it applies at once or at restart.
- Two independent reviews of the whole change, each followed by fixes with a test per finding (among them: a negative
rate_limitof a v1.44 config,/healthfrom loopback outside the IP allowlist, a reload signal during the start, a save that would have applied somebody's unfinished hand edit). - A certificate renewed by the real certbot on a server with systemd (
certbot renew --force-renewal, the deploy hook ofrequest-tls): the MCP endpoint and the portal served the new certificate, the process was the same one. scripts/test_with_llm.pyworks with MCP SDK 2 again (it imported the 1.x client) and takes the key fromOPENAI_API_KEY; nine scenarios with a real model against Zabbix 8.0, all answered through tools without an error.- On real servers, not containers: a fresh install of v1.44 on Debian 12 with its Zabbix 7.0, upgraded to v1.45 (every probe answers as before, config unchanged, all tools as on v1.44, then reload, health and statistics on systemd), and a fresh install of v1.45 on openSUSE Leap 15.6.
- The suite runs on Python 3.10, 3.13 and 3.14, with MCP SDK 2.0.0 and 2.3.0 and with uvicorn 0.42, 0.44 and 0.55; a test keeps modules that need a newer Python than 3.10 out of the server.
- Every tool compared with v1.44 on Zabbix 5.0, 5.2, 5.4, 6.0, 6.2, 6.4, 7.0, 7.2, 7.4 and 8.0: no tool fails that did not fail before. The health check and the API token expiry verified against real Zabbix 6.0, 7.0 and 8.0. An upgrade from v1.44 on Debian 12 and on Ubuntu 22.04 (Python 3.10, SDK 2.0.0) with six typical configurations: every answer a client got before the upgrade is the same after it.