Fixes:
- resume_folder braucht confirm bei sendreceive/sendonly (Löschungen würden
sich auf alle Geräte verteilen)
- accept_folder legt Ordner unter <Default-Pfad>/<Label> an statt direkt im
Default-Pfad; belegte Pfade werden abgelehnt
- override/revert prüfen den Ordnertyp
- Fehler als MCP-ToolError (isError) mit verständlichem Text
- truncate hält JSON gültig
- pause/resume patchen nur "paused"; Bearer-Vergleich zeitkonstant
- uv.lock zum mcp<2.0-Pin synchronisiert
Neu: syncthing_find_conflicts, syncthing_list_versions,
syncthing_restore_version, syncthing_folder_stats, syncthing_add_device,
syncthing_share_folder, syncthing_set_device_paused
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Combined Track 1 + Track 2 + Track 3 single-PR (heaviest A.1 spec, only
top-5 blade in both scope AND determinism gap).
Track 1: scope= arg with env-var folder-ID list indirection
(SYNCTHING_{WORK,PERSONAL,FAMILY,HOME,INFRASTRUCTURE}_FOLDERS
comma-separated; per-instance _<INSTANCE> override). Server-side
from blade-process perspective (Syncthing REST has no native
folder filter; blade-internal filter IS the over-fetch boundary
per DD-333).
Track 2: canonical sort on device.deviceID + folder id tie-breaker on
replication_report (fixes sort-key collision case).
Track 3: structured _meta envelope (canonical JSON-tail wire shape per
architect amendment 2026-05-21) with matched_total / returned /
filtered_by / redactions / latency_ms; filtered_by alphabetised
for hash reproducibility.
Touched tools: syncthing_list_devices, syncthing_folder_status,
syncthing_replication_report. Other 35 tools unchanged.
scope=public raises through the standard error path (folders are not
public in Syncthing's model). Unconfigured scope passes through with a
honest scope=<name>_unconfigured redaction.
Tests: 120 pass (97 baseline + 23 new). Determinism check is N=5
byte-equal (modulo latency_ms) per tool.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Split the monolithic syncthing_mcp.py into a proper src/syncthing_mcp/
package with focused modules: client, models, registry, server, and
tool submodules (system, folders, devices, config, instances).
New tools: browse_folder, file_info, folder_need (file-level queries),
override_folder, revert_folder (conflict resolution), check_upgrade
(system management). Bumps tool count from 30 to 36.
Adds comprehensive test suite (96 tests) using pytest + respx for
HTTP mocking, covering client methods, registry logic, model validation,
and all tool functions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>