Files
syncthing-blade-mcp/stallari-plugin.yaml
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

120 lines
4.1 KiB
YAML

name: syncthing-blade-mcp
version: "0.3.1"
description: "Syncthing replication management MCP — multi-instance, token-efficient output, safe disk-space reclamation"
author: groupthink-dev
license: MIT
tier: certified
author_type: first-party
readiness: beta
contract: sync-v1
services:
instances:
list: syncthing_list_instances
system:
status: syncthing_system_status
health: syncthing_health_summary
errors: syncthing_system_errors
clear_errors: syncthing_clear_errors
log: syncthing_system_log
recent_changes: syncthing_recent_changes
restart_required: syncthing_restart_required
restart: syncthing_restart
check_upgrade: syncthing_check_upgrade
folders:
list: syncthing_list_folders
status: syncthing_folder_status
completion: syncthing_folder_completion
replication_report: syncthing_replication_report
errors: syncthing_folder_errors
scan: syncthing_scan_folder
pause: syncthing_pause_folder
resume: syncthing_resume_folder
override: syncthing_override_folder
revert: syncthing_revert_folder
files:
browse: syncthing_browse_folder
info: syncthing_file_info
need: syncthing_folder_need
remote_need: syncthing_remote_need
devices:
list: syncthing_list_devices
completion: syncthing_device_completion
connections: syncthing_connections
stats: syncthing_device_stats
config:
pending_devices: syncthing_pending_devices
pending_folders: syncthing_pending_folders
accept_device: syncthing_accept_device
reject_device: syncthing_reject_device
accept_folder: syncthing_accept_folder
reject_folder: syncthing_reject_folder
get_ignores: syncthing_get_ignores
set_ignores: syncthing_set_ignores
get_default_ignores: syncthing_get_default_ignores
set_default_ignores: syncthing_set_default_ignores
setup:
icon: "🔄"
blurb: "Syncthing file sync — multi-instance replication status, safe disk-space reclamation, device management"
auth_model: api_key
complexity: simple
fields:
- key: SYNCTHING_API_KEY
label: "API Key"
secret: true
required: true
help: "Syncthing REST API key — find in Actions → Settings → API Key"
- key: SYNCTHING_URL
label: "Server URL"
required: false
placeholder: "http://localhost:8384"
help: "Syncthing web GUI URL. Defaults to localhost:8384"
- key: SYNCTHING_INSTANCES
label: "Multi-Instance Config"
secret: true
required: false
placeholder: '{"name": {"url": "...", "apiKey": "..."}}'
help: "JSON object for multi-instance mode. Overrides API Key and URL above"
- key: SYNCTHING_WRITE_ENABLED
label: "Enable Write Operations"
required: false
placeholder: "true"
help: "Set to 'true' to allow mutating tools (pause/resume, accept, restart, override, ignores). Off by default; destructive operations also require confirm=true per call"
install:
runtime: uv
package: syncthing-blade-mcp
command: syncthing-blade-mcp
env:
- name: SYNCTHING_API_KEY
secret: true
required: true
description: "Syncthing REST API key (single-instance mode)"
- name: SYNCTHING_URL
secret: false
required: false
description: "Syncthing base URL (default: http://localhost:8384)"
- name: SYNCTHING_INSTANCES
secret: true
required: false
description: "JSON object for multi-instance mode (overrides API_KEY/URL)"
- name: SYNCTHING_WRITE_ENABLED
secret: false
required: false
description: "Set to 'true' to enable mutating tools; destructive/disruptive operations also require confirm=true (default: writes disabled)"
conformance:
required: "38"
last_tested: "2026-04-21"
# DD-338 A.2.dom.c — domain-hint pattern block. Empty by default; users
# layer their own patterns via the Stallari Settings → Blade Domain Hints
# editor, which writes to ``<state-root>/blade-config/syncthing-blade-mcp/
# config.yaml``. The harness merges that file at dispatch time; this block
# documents the pack-side contract (presence ⇒ blade participates in
# per-record domain attribution).
blade_domain_hint_patterns:
patterns: []