Files
syncthing-blade-mcp/pyproject.toml
T
PiersandClaude Opus 4.7 1051f6a1bb DD-338 Phase C Wave 2 — syncthing audit_surface promotion
Promotes 4 folder-scoped multi-record tools from `audit_surface: minimal` to
`audit_surface: structured` by wrapping their client calls in `time.perf_counter()`
and emitting a `_meta` envelope via the existing `append_meta()` helper:

- `syncthing_folder_errors` — `folder=` + optional `scope=` (membership
  precondition mirrors `syncthing_folder_status`; refusal carries
  `redactions=["folder_outside_scope"]`).
- `syncthing_browse_folder` — `folder=` + optional `prefix=`, `levels=`.
- `syncthing_folder_need` — `folder=`, `page=`, `perpage=` (page+perpage
  advance documented in tool description; `next_cursor` omitted per Wave 2 OQ-4).
- `syncthing_remote_need` — `device=`, `folder=`, `page=`, `perpage=`.

Test additions (+14): per-tool `_meta` shape + filtered_by content + scope
membership match/mismatch on `syncthing_folder_errors`; new
`TestRemoteNeed` covers `syncthing_remote_need`; N=3 byte-equal
determinism class per promoted tool in `test_determinism.py` (latency_ms
stripped before compare). Existing 4 tests updated from `json.loads(raw)`
to `split_meta` + payload parse.

165/165 tests green (151 before + 14 new).

Version: 0.6.1 → 0.7.0 (pyproject); 0.3.1 → 0.4.0 (__init__.py).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 16:37:48 +10:00

35 lines
748 B
TOML

[project]
name = "syncthing-blade-mcp"
version = "0.7.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",
"pyyaml>=6.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"]