The blade had no write gate and no confirm parameter anywhere — every mutating tool (override, revert, restart, accept-device, replace-stignore, …) fired ungated, unlike every sibling blade. This brings syncthing up to the class baseline: - All 13 mutating tools now require SYNCTHING_WRITE_ENABLED=true (models.require_write, env read at call time) and refuse with a clear message when the gate is off. - Destructive/disruptive operations additionally require confirm=true: syncthing_override_folder, syncthing_revert_folder, syncthing_restart, syncthing_accept_device, syncthing_accept_folder, syncthing_set_ignores. Refusals explain what the operation would do. These six are now annotated destructiveHint: true. - New ConfirmWriteParams / ConfirmFolderWriteParams models; confirm field added to AcceptDeviceInput, AcceptFolderInput, SetIgnoresInput. - Server-level FastMCP instructions document the gate + confirm contract; README, SKILL.md, and stallari-plugin.yaml (setup field + env entry) updated to match. - Regression suite tests/test_write_gate.py: gated-off refusal (all 13, unset + non-"true" value), gated-on-without-confirm refusal (all 6 destructive), gated-on-with-confirm proceeds (mocked), and non-destructive-needs-no-confirm. Existing write-tool tests updated to enable the gate + pass confirm. 201 tests green. Version 0.8.0 → 0.9.0 (behaviour-affecting safety gate). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
Changelog
All notable changes to syncthing-blade-mcp will be documented in this file.
The format is based on Keep a Changelog.
[0.9.0] - 2026-06-11
Security
- AUD-04-02 / DD-385 Phase W — write gate + confirm discipline (class baseline).
All 13 mutating tools now require
SYNCTHING_WRITE_ENABLED=trueand refuse with a clear error when the gate is off. Previously every mutating tool (override, revert, restart, accept-device, replace-stignore, …) fired ungated. confirm=truerequired for destructive/disruptive operations:syncthing_override_folder,syncthing_revert_folder,syncthing_restart,syncthing_accept_device,syncthing_accept_folder,syncthing_set_ignores. The refusal message explains what the operation would do. These tools are now annotateddestructiveHint: true.
Changed
- Server-level MCP instructions now document the write gate and confirm requirements.
[0.8.0] - 2026-05-24
Changed
- DD-338 Phase E.python — depend on
stallari-mcp-helpers>=0.1.0,<1.0.0. Localmeta_envelope+append_metahelpers informatters.pydeleted; canonical implementations are now re-exported from the lib for backward call-site compatibility. append_metasignature is now(body, meta_line)(lib semantics) where it previously accepted kwargs and built the envelope internally. The 11 call-sites intools/folders.py,tools/instances.py,tools/system.py, andtools/devices.pywere refactored to the two-step patternappend_meta(payload, meta_envelope(...)).
Wire-shape change (test fixtures updated)
_meta.filtered_bycontinues to be sorted alphabetically inside the helper (unchanged — was already the behaviour of the local helper)._metafield order now follows the canonical lib convention (matched_total,returned,latency_ms,filtered_by,redactions,next_cursor,error_notes?,domain_hints?). The prior local helper emittedlatency_mslast._meta.next_cursoris now always present (defaults tonull); the prior local helper omitted it entirely. The semantic OQ-4 invariant ("no cursor surfaced to callers in v1") is unchanged._meta.redactionscontinues to be emitted unconditionally as[]when empty (unchanged)._meta.error_notesand_meta.domain_hintsremain conditionally included only when non-empty (unchanged).
Notes
- Pure substrate swap — no behavioural change to any tool. Pack-spec catalog declarations unchanged.