Commit Graph
21 Commits
Author SHA1 Message Date
Piers e915e6da01 Merge pull request #2 from Groupthink-dev/feat/dd-338-a1-syncthing
DD-338 A.1 — scope= arg + sort-before-return + _meta envelope on 3 read tools
2026-05-21 22:03:34 +10:00
PiersandClaude Opus 4.7 0bd5d1ce06 DD-338 A.1 — syncthing scope= arg + sort-before-return + _meta envelope on 3 read tools
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>
2026-05-21 21:58:19 +10:00
PiersandClaude Opus 4.7 11b4d40a57 chore: add PyPI publish workflow + bump 0.4.0
DD-182 Python Wave A backfill. OIDC trusted publishing.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-28 14:31:36 +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
PiersandClaude Opus 4.6 631f22d6c3 Rename syncthing-mcp to syncthing-blade-mcp
Align naming with the Blade MCP server convention used across the
Sidereal platform. Updates package name, console script entry point,
Docker configs, deploy script, and documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-12 12:19:11 +10:00
Piers 78ffb8bd49 Merge pull request #1 from piersdd/claude/improve-syncthing-mcp-JS2P5
Claude/improve syncthing mcp js2 p5
2026-02-17 14:51:10 +11:00
Claude bafb450a69 Add uv.lock for reproducible dependency resolution
https://claude.ai/code/session_018efEinU8ypT2jHeex6o9PC
2026-02-17 03:45:35 +00:00
Claude 41f1018477 Token-efficient output, SKILL.md, Cloudflare Tunnel, new tools (v0.3.0)
Major improvements following best-in-class MCP patterns:

- Token efficiency: new formatters.py with compact JSON (no indent),
  short device IDs, character-limit truncation; all read tools gain
  concise=true (default) / concise=false toggle via ReadParams base
- Models: ReadParams/WriteParams hierarchy replaces flat models;
  backward-compatible aliases preserved for tests
- New tools: syncthing_remote_need (debug remote sync gaps),
  syncthing_device_stats (per-device statistics)
- SKILL.md: LLM skill guide with token rules, quick-start table,
  workflows, tool reference, and troubleshooting
- Cloudflare Tunnel: docker-compose.tunnel.yml for zero-trust HTTP
  deployment alongside existing Traefik/ACME support
- Fix duplicate dependencies in pyproject.toml; bump to v0.3.0

https://claude.ai/code/session_018efEinU8ypT2jHeex6o9PC
2026-02-17 03:44:48 +00:00
PiersandClaude Opus 4.6 39d6994738 Add Streamable HTTP transport, bearer auth, and Docker deployment
- Enable stateless_http + json_response on FastMCP for scalable HTTP
  serving without sticky sessions (Traefik-friendly)
- Add MCP_TRANSPORT env var to select stdio (default) vs streamable-http
- Add bearer token auth middleware (MCP_AUTH_TOKEN) with /health bypass
- Add Dockerfile (Python 3.12-slim + uv) and docker-compose.yml with
  Traefik v2/v3 labels, ACME TLS, and health check routing
- Add .env.example with multi-instance config for mini/tn-sb/tn-mr2/p-mba
- Add uvicorn + starlette as runtime dependencies

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 19:31:45 +11:00
PiersandClaude Opus 4.6 5ca58735eb Add Streamable HTTP transport, bearer auth, and Docker deployment
- Enable stateless_http + json_response on FastMCP for scalable HTTP
  serving without sticky sessions (Traefik-friendly)
- Add MCP_TRANSPORT env var to select stdio (default) vs streamable-http
- Add bearer token auth middleware (MCP_AUTH_TOKEN) with /health bypass
- Add Dockerfile (Python 3.12-slim + uv) and docker-compose.yml with
  Traefik v2/v3 labels, ACME TLS, and health check routing
- Add .env.example with multi-instance config for mini/tn-sb/tn-mr2/p-mba
- Add uvicorn + starlette as runtime dependencies

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 03:54:43 +00:00
Piers Dawson-DamerandClaude Opus 4.6 3a33d34bd1 Refactor into package, add 6 new tools, add 96 tests
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>
2026-02-15 10:13:37 +11:00
Piers Dawson-Damer 5b54c09cd5 Add multi-instance support, config mutation tools, and expanded monitoring
Refactor single-instance architecture into a SyncthingClient class that
supports connecting to multiple Syncthing nodes simultaneously via a
SYNCTHING_INSTANCES JSON env var (backward-compatible with existing
single-instance SYNCTHING_URL + SYNCTHING_API_KEY).

New tools (18, bringing total to 30):
- Instance management: list_instances
- Pending config: pending_devices/folders, accept/reject device/folder
- Restart: restart_required, restart
- Ignore patterns: get/set_ignores, get/set_default_ignores
- Monitoring: system_errors, clear_errors, system_log, recent_changes,
  health_summary
2026-02-14 18:31:28 +11:00
Piers Dawson-Damer 3da2a9f63c fix: lifespan handler must accept app argument from FastMCP 2026-02-14 13:33:08 +11:00
Piers Dawson-Damer c7c40be257 improve deploy-local 2026-02-14 13:28:05 +11:00
Piers Dawson-Damer 2ee6231871 add pyproject 2026-02-14 13:28:02 +11:00
Piers Dawson-Damer df73a595f8 improve deploy-local 2026-02-14 13:25:45 +11:00
Piers Dawson-Damer 1afbc9684b add lightweight deploy script 2026-02-14 13:20:25 +11:00
Piers Dawson-Damer 1b7e26d615 add readme 2026-02-14 13:15:24 +11:00
Piers Dawson-Damer 9ccc6a510c Initial commit: Syncthing MCP server 2026-02-14 10:03:15 +11:00