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>
6.6 KiB
name, triggers
| name | triggers | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| syncthing |
|
Syncthing MCP — Skill Guide
MCP server for managing Syncthing instances. Multi-instance aware. Focus on replication analysis and safe disk-space reclamation.
Token Efficiency Rules (MANDATORY)
- All read tools default to
concise=true— compact JSON, short device IDs, minimal fields - Start with
syncthing_health_summary— single-call overview, avoids multiple queries - Use
syncthing_list_foldersbeforesyncthing_folder_statusto discover folder IDs - Use
syncthing_replication_reportfor safe-removal analysis (aggregates all folders) - Only set
concise=falsewhen debugging or when the user needs raw details - Avoid
syncthing_folder_statusin loops — it is expensive on the Syncthing side
Quick Start
| Goal | Tool | Notes |
|---|---|---|
| Overview / triage | syncthing_health_summary |
Start here. Status, alerts, counts |
| List folders | syncthing_list_folders |
Folder IDs, types, device counts |
| List devices | syncthing_list_devices |
Connection status, addresses |
| Safe to delete? | syncthing_replication_report |
Per-folder safe flag + reclaimable space |
| Folder deep-dive | syncthing_folder_status |
Expensive — use sparingly |
| Per-device sync | syncthing_folder_completion |
Completion % per remote device |
| Accept a device | syncthing_pending_devices → syncthing_accept_device |
Two-step |
| Accept a folder | syncthing_pending_folders → syncthing_accept_folder |
Two-step |
| Debug sync issue | syncthing_folder_errors + syncthing_remote_need |
What's stuck and why |
| Check instances | syncthing_list_instances |
Multi-instance: probe all nodes |
Workflows
Daily Health Check
syncthing_health_summary— review status and alerts- If alerts mention pending items →
syncthing_pending_devices/syncthing_pending_folders - If alerts mention errors →
syncthing_system_errorsorsyncthing_folder_errors
Disk Space Reclamation
syncthing_replication_report— identify folders withsafe=true- Confirm reclaimable space in
summary.reclaimable - For each folder to remove:
syncthing_pause_folder→ delete local data outside Syncthing - Optionally remove the folder from config via Syncthing web UI
Debugging Incomplete Sync
syncthing_folder_completion— which device is behind?syncthing_remote_need— what files does the remote device need?syncthing_folder_errors— any file-level errors blocking sync?syncthing_connections— is the device actually connected?
Accepting New Devices/Folders
syncthing_pending_devices— review pending requestssyncthing_accept_devicewith optionalnameparametersyncthing_pending_folders— review offered folderssyncthing_accept_folderwith optionalpathparametersyncthing_restart_required— check if restart needed after config changes
Setting Up Ignore Patterns
syncthing_get_ignores— review current patternssyncthing_set_ignores— replace patterns (common:*.tmp,.DS_Store,Thumbs.db)syncthing_get_default_ignores/syncthing_set_default_ignores— template for new folders
Tool Categories
Read Tools (39 total → concise by default)
Instance & System:
syncthing_list_instances, syncthing_system_status, syncthing_health_summary,
syncthing_system_errors, syncthing_system_log, syncthing_recent_changes,
syncthing_restart_required, syncthing_check_upgrade
Folders:
syncthing_list_folders, syncthing_folder_status, syncthing_folder_completion,
syncthing_replication_report, syncthing_folder_errors, syncthing_browse_folder,
syncthing_file_info, syncthing_folder_need, syncthing_remote_need
Devices:
syncthing_list_devices, syncthing_device_completion, syncthing_connections,
syncthing_device_stats
Config (read):
syncthing_pending_devices, syncthing_pending_folders, syncthing_get_ignores,
syncthing_get_default_ignores
Write Tools
syncthing_clear_errors, syncthing_restart, syncthing_pause_folder,
syncthing_resume_folder, syncthing_scan_folder, syncthing_override_folder,
syncthing_revert_folder, syncthing_accept_device, syncthing_reject_device,
syncthing_accept_folder, syncthing_reject_folder, syncthing_set_ignores,
syncthing_set_default_ignores
All write tools require the environment variable SYNCTHING_WRITE_ENABLED=true
(off by default). Destructive/disruptive tools — syncthing_override_folder,
syncthing_revert_folder, syncthing_restart, syncthing_accept_device,
syncthing_accept_folder, syncthing_set_ignores — additionally require
confirm=true in the call; without it they return a refusal explaining what
the operation would do.
Multi-Instance
When multiple instances are configured, every tool accepts an instance parameter.
If omitted with a single instance, it auto-selects. With multiple instances, omitting
instance returns an error listing available names.
Use syncthing_list_instances to discover instance names and availability.
Common Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
instance |
string | auto | Target instance name |
concise |
bool | true |
Compact output (read tools only) |
folder_id |
string | required | Syncthing folder ID |
device_id |
string | required | Full Syncthing device ID |
page / per_page |
int | 1 / 50 | Pagination for need/remoteneed |
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Bad API key | Check SYNCTHING_API_KEY or SYNCTHING_INSTANCES JSON |
| 403 Forbidden | API key lacks permissions | Regenerate API key in Syncthing web UI |
| Connection refused | Syncthing not running | Start Syncthing or check URL |
| Timeout | Syncthing busy or unreachable | Retry, or check network / firewall |
| "Multiple instances configured" | Missing instance param |
Specify instance name |
Performance Notes
syncthing_folder_statusandsyncthing_replication_reportcall/rest/db/statuswhich is expensive on the Syncthing side (CPU + RAM). Avoid calling in tight loops.syncthing_health_summarycalls/rest/db/statusper folder — equivalent cost.- The replication report makes one
/rest/db/completioncall per remote device per folder. On large setups this generates significant API traffic. - Syncthing v2.x uses SQLite (replacing LevelDB). First launch after upgrade may be slow due to migration.