12 Commits
Author SHA1 Message Date
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
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