MCP 服务 2026-10-10 19:36 UTC
zabbix-mcp-server
由提交人 hermanekt 提交,主要更新类型为:常规更新与维护。提交说明:oauth: a viewer's token is read-only; resources run the authorization check。对项目做了常规维护与小幅调整。
Commit提交信息原文
oauth: a viewer's token is read-only; resources run the authorization check Reported privately on 2026-10-07 (SECURITY.md). Every OAuth access token was published with read_only=False whatever the portal role of the user who consented. The scope cap keeps a viewer to monitoring/extensions, but monitoring holds host/item/trigger create-update-delete, so a viewer could write to any server not set read_only. The role now travels on the authorization code, access token and refresh token; load_access_token derives read_only from it (viewer, unknown and missing -> read-only). The MCP resources (zabbix://<srv>/hosts, problems, hostgroups, templates) went straight to the API; they now run check_token_authorization like the tools. Registration moved into _register_resources so it can be tested. Tests: 507 (10 new, 9 fail on the old code). Version 1.37.3, CHANGELOG, SECURITY.md, docs/OAUTH.md and README updated.