README: deutsche Fassung, Fork-Hinweis, fehlende Variablen ergänzt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael RollandClaude Opus 5.5 committed 2026-11-24 12:18:22 +01:00
1 parent 208067766a
commit adfd4d5b34
2 files changed
+78 -1

No files matched your search

+69
View File
@@ -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 <repository-url> 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=<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).
+9 -1
View File
@@ -1,5 +1,11 @@
# syncthing-blade-mcp # 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. 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. 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 ### Install
```bash ```bash
git clone https://github.com/piersdd/syncthing-blade-mcp.git git clone <repository-url> syncthing-blade-mcp
cd syncthing-blade-mcp cd syncthing-blade-mcp
uv sync uv sync
``` ```
@@ -334,6 +340,8 @@ uv run pytest -v
| `MCP_HOST` | No | `0.0.0.0` | HTTP listen host | | `MCP_HOST` | No | `0.0.0.0` | HTTP listen host |
| `MCP_PORT` | No | `8000` | HTTP listen port | | `MCP_PORT` | No | `8000` | HTTP listen port |
| `MCP_AUTH_TOKEN` | No | — | Bearer token for HTTP transport | | `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) | | `DOMAIN` | No | — | FQDN for Traefik TLS (docker-compose.yml) |
| `CLOUDFLARE_TUNNEL_TOKEN` | No | — | Tunnel token (docker-compose.tunnel.yml) | | `CLOUDFLARE_TUNNEL_TOKEN` | No | — | Tunnel token (docker-compose.tunnel.yml) |