From adfd4d5b34eeb548600ab454aa1231f5201be99a Mon Sep 17 00:00:00 2001 From: Michael Roll <44135113+Mikei386@users.noreply.github.com> Date: Tue, 24 Nov 2026 12:18:22 +0100 Subject: [PATCH] =?UTF-8?q?README:=20deutsche=20Fassung,=20Fork-Hinweis,?= =?UTF-8?q?=20fehlende=20Variablen=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- README.de.md | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 10 +++++++- 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 README.de.md diff --git a/README.de.md b/README.de.md new file mode 100644 index 0000000..3be6b1a --- /dev/null +++ b/README.de.md @@ -0,0 +1,69 @@ +# syncthing-blade-mcp + +[English](README.md) | **Deutsch** + +MCP-Server für [Syncthing](https://syncthing.net/). Er gibt KI-Assistenten Lese- +und Steuerzugriff auf die REST-API von Syncthing, mit Schwerpunkt auf +**Replikation**: Welche Ordner sind vollständig auf anderen Geräten, sodass lokal +Platz frei gemacht werden kann? Die vollständige Dokumentation mit allen 45 +Werkzeugen steht in der [englischen README](README.md). + +> **Fork** von [piersdd/syncthing-blade-mcp](https://github.com/piersdd/syncthing-blade-mcp) +> (MIT), Basis v0.9.0, mit Sicherheitsfixes, zusätzlichen Werkzeugen (Konflikte, +> Versionen, Geräte) und einstellbaren erlaubten HTTP-Hosts. Siehe [CHANGELOG.md](CHANGELOG.md). + +## Funktionen + +- Status von System, Ordnern und Geräten, Replikationsbericht mit „sicher entfernbar“ + und freizugebendem Speicher +- Ordner pausieren/fortsetzen, scannen, Ignore-Muster, ausstehende Geräte und Ordner, + Konflikte und Dateiversionen +- Mehrere Syncthing-Instanzen aus einem Server +- Kompakte Ausgaben (spart Tokens), `concise=false` für alle Details +- [SKILL.md](SKILL.md) als Anleitung für LLMs + +## Voraussetzungen + +- Python 3.11+ und [uv](https://docs.astral.sh/uv/) (oder pip) +- Laufendes Syncthing (getestet mit v2.0.x) mit API-Key + (Syncthing-Oberfläche → Aktionen → Einstellungen → API-Schlüssel) + +## Installation + +```sh +git clone syncthing-blade-mcp +cd syncthing-blade-mcp +uv sync +``` + +Im MCP-Client als stdio-Server eintragen (`uv run syncthing-blade-mcp`) oder per HTTP +starten: `MCP_TRANSPORT=streamable-http MCP_AUTH_TOKEN= uv run syncthing-blade-mcp`. + +## Konfiguration + +| Variable | Bedeutung | +|---|---| +| `SYNCTHING_API_KEY`, `SYNCTHING_URL` | eine Instanz (Standard-URL `http://localhost:8384`) | +| `SYNCTHING_INSTANCES` | JSON für mehrere Instanzen, ersetzt die beiden oberen | +| `SYNCTHING_WRITE_ENABLED` | `true` erlaubt ändernde Werkzeuge (Standard aus) | +| `MCP_TRANSPORT` | `stdio` (Standard) oder `streamable-http` | +| `MCP_HOST`, `MCP_PORT`, `MCP_AUTH_TOKEN` | HTTP-Adresse, Port und Bearer-Token | +| `MCP_ALLOWED_HOSTS` | zusätzlich erlaubte `Host`-Header, z. B. `192.168.1.10:*,nas.lan:*` | + +## Sicherheit + +Ändernde Werkzeuge brauchen `SYNCTHING_WRITE_ENABLED=true`, gefährliche zusätzlich +`confirm=true` – z. B. das Fortsetzen eines pausierten Sende-Ordners, weil sonst +lokale Löschungen auf alle Geräte übertragen würden. Im HTTP-Modus immer +`MCP_AUTH_TOKEN` setzen. Einige Abfragen (`/rest/db/status`) sind für Syncthing teuer. + +## Entwicklung + +```sh +uv sync +uv run pytest -v +``` + +## Lizenz + +MIT, siehe [LICENSE](LICENSE). diff --git a/README.md b/README.md index ab19a70..e4ebb9d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,11 @@ # syncthing-blade-mcp +**English** | [Deutsch](README.de.md) + +> **Fork** of [piersdd/syncthing-blade-mcp](https://github.com/piersdd/syncthing-blade-mcp) +> (MIT) based on upstream v0.9.0, with safety fixes and extra tools (conflicts, +> versions, devices) and configurable allowed HTTP hosts. See [CHANGELOG.md](CHANGELOG.md). + An MCP (Model Context Protocol) server for [Syncthing](https://syncthing.net/) — the open-source continuous file synchronisation tool. Built to give AI assistants (Claude, etc.) read and control access to Syncthing's REST API, with a focus on **replication awareness**: understanding which folders are fully replicated across devices so you can confidently reclaim local disk space. @@ -236,7 +242,7 @@ The `safe` flag requires: at least one remote device at 100% completion with `re ### Install ```bash -git clone https://github.com/piersdd/syncthing-blade-mcp.git +git clone syncthing-blade-mcp cd syncthing-blade-mcp uv sync ``` @@ -334,6 +340,8 @@ uv run pytest -v | `MCP_HOST` | No | `0.0.0.0` | HTTP listen host | | `MCP_PORT` | No | `8000` | HTTP listen port | | `MCP_AUTH_TOKEN` | No | — | Bearer token for HTTP transport | +| `MCP_ALLOWED_HOSTS` | No | localhost only | Extra allowed `Host` headers for HTTP, e.g. `192.168.1.10:*,nas.lan:*` | +| `SYNCTHING_WRITE_ENABLED` | No | `false` | `true` enables mutating tools | | `DOMAIN` | No | — | FQDN for Traefik TLS (docker-compose.yml) | | `CLOUDFLARE_TUNNEL_TOKEN` | No | — | Tunnel token (docker-compose.tunnel.yml) |