Files
syncthing-blade-mcp/pyproject.toml
T
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

34 lines
729 B
TOML

[project]
name = "syncthing-blade-mcp"
version = "0.5.0"
description = "MCP server for Syncthing — token-efficient replication management, multi-instance, safe disk-space reclamation."
requires-python = ">=3.11"
dependencies = [
"mcp[cli]>=1.0.0",
"httpx>=0.27.0",
"pydantic>=2.0.0",
"uvicorn>=0.30.0",
"starlette>=0.37.0",
]
[project.scripts]
syncthing-blade-mcp = "syncthing_mcp.__main__:main"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"respx>=0.22",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/syncthing_mcp"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]