8 Commits
Author SHA1 Message Date
Michael RollandClaude Opus 5.5 208067766a 0.10.1: erlaubte HTTP-Hosts per MCP_ALLOWED_HOSTS statt fester LAN-Adresse; LICENSE ergänzt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:01:16 +01:00
Michael RollandClaude Opus 5.5 b678f1da1c 0.10.0: Sicherheitsfixes und neue Werkzeuge (Konflikte, Versionen, Geräte)
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>
2026-11-23 12:48:13 +01:00
PiersandClaude Fable 5 d0a7774b88 chore — align stallari-plugin.yaml version to 0.9.0 (was stale at 0.3.1)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 03:26:21 +10:00
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
PiersandClaude Opus 4.7 06217b6fdc DD-338 A.2.dom.c — domain_hint patterns + per-record _meta.domain_hints
New per-blade lib (src/syncthing_mcp/domain_hint.py, ~155 LOC) implementing
the shared DD-338 Pattern engine: equals / contains / glob ops, first-match-
wins, YAML pattern loading with graceful degradation (Convention #22).

Server module gains a BladeConfigStore reader honouring STALLARI_STATE_ROOT
override + the sanitized blade-id directory layout the Swift writer ships
(Convention #23 reader-side compliance), plus a polymorphic Syncthing field
projector covering both folder records (id/label/path/type) and device
records (deviceID/name/addresses).

Wired into the two list-returning read tools:
  - syncthing_list_folders (instances.py — newly gains _meta envelope; was
    previously bare fmt(); start time now tracked for latency_ms)
  - syncthing_list_devices (devices.py — extends existing envelope with
    domain_hints kwarg)

formatters.{meta_envelope,append_meta} extended with an optional
domain_hints kwarg; key omitted from the JSON tail when empty / None.

stallari-plugin.yaml gains a blade_domain_hint_patterns: { patterns: [] }
block (0 defaults; users layer their own via the Settings → Blade Domain
Hints editor). No tools[] block exists in this manifest — per-tool
domain_scope flips land in the catalog mirror at stallari-plugins/plugins/
in a separate parent-session action.

pyyaml>=6.0 added to runtime dependencies (gated by ImportError inside
load_patterns_from_yaml so the blade still boots if the wheel is absent).
Version bump 0.5.0 → 0.6.0 (minor — new substrate capability).

Tests: 13 new cases in tests/test_domain_hint.py covering empty-patterns,
folder+device matches, first-match-wins, glob wildcards, unknown-field
projector handoff, YAML well-formed / partial / malformed / non-mapping
root / missing-patterns-key. Full suite 133/133 green.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 12:46:47 +10:00
PiersandClaude Opus 4.6 e171f05bee Standardize on US license spelling in manifest
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 12:11:18 +10:00
PiersandClaude Opus 4.6 71ae753556 Add setup.fields, remove internal transport config from UI
- Add setup.fields with labels, placeholders, and help text
- Remove MCP_TRANSPORT, MCP_AUTH_TOKEN from env

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 20:34:56 +10:00
PiersandClaude Opus 4.6 a3d11898aa Add stallari-plugin.yaml
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-21 19:55:40 +10:00