Files
syncthing-blade-mcp/CHANGELOG.md
T
PiersandClaude Fable 5 bf50002e8b AUD-04-02 — add write gate + confirm discipline (DD-385 Phase W)
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>
2026-06-11 23:20:48 +10:00

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=true and refuse with a clear error when the gate is off. Previously every mutating tool (override, revert, restart, accept-device, replace-stignore, …) fired ungated.
  • confirm=true required 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 annotated destructiveHint: 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. Local meta_envelope + append_meta helpers in formatters.py deleted; canonical implementations are now re-exported from the lib for backward call-site compatibility.
  • append_meta signature is now (body, meta_line) (lib semantics) where it previously accepted kwargs and built the envelope internally. The 11 call-sites in tools/folders.py, tools/instances.py, tools/system.py, and tools/devices.py were refactored to the two-step pattern append_meta(payload, meta_envelope(...)).

Wire-shape change (test fixtures updated)

  • _meta.filtered_by continues to be sorted alphabetically inside the helper (unchanged — was already the behaviour of the local helper).
  • _meta field 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 emitted latency_ms last.
  • _meta.next_cursor is now always present (defaults to null); the prior local helper omitted it entirely. The semantic OQ-4 invariant ("no cursor surfaced to callers in v1") is unchanged.
  • _meta.redactions continues to be emitted unconditionally as [] when empty (unchanged).
  • _meta.error_notes and _meta.domain_hints remain conditionally included only when non-empty (unchanged).

Notes

  • Pure substrate swap — no behavioural change to any tool. Pack-spec catalog declarations unchanged.