diff --git a/Dockerfile b/Dockerfile index 392748a..8685dfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ EXPOSE 8000 HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ CMD ["python", "-c", "import httpx; httpx.get('http://localhost:8000/health').raise_for_status()"] -ENTRYPOINT ["syncthing-mcp"] +ENTRYPOINT ["syncthing-blade-mcp"] diff --git a/README.md b/README.md index ce93f59..5c75eb4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# syncthing-mcp +# syncthing-blade-mcp An MCP (Model Context Protocol) server for [Syncthing](https://syncthing.net/) — the open-source continuous file synchronisation tool. @@ -116,7 +116,7 @@ See [SKILL.md](SKILL.md) for the complete LLM skill guide. ## Project Structure ``` -syncthing-mcp/ +syncthing-blade-mcp/ ├── src/syncthing_mcp/ │ ├── __init__.py # Package version │ ├── __main__.py # Entry point (stdio + HTTP transport) @@ -162,7 +162,7 @@ Every tool accepts an optional `instance` parameter to target a specific node. W "syncthing": { "command": "uv", "args": [ - "--directory", "/path/to/syncthing-mcp", + "--directory", "/path/to/syncthing-blade-mcp", "run", "python", "-m", "syncthing_mcp" ], "env": { @@ -196,8 +196,8 @@ The `safe` flag requires: at least one remote device at 100% completion with `re ### Install ```bash -git clone https://github.com/piersdd/syncthing-mcp.git -cd syncthing-mcp +git clone https://github.com/piersdd/syncthing-blade-mcp.git +cd syncthing-blade-mcp uv sync ``` @@ -213,7 +213,7 @@ Open the Syncthing web UI → Actions → Settings → API Key. "syncthing": { "command": "uv", "args": [ - "--directory", "/path/to/syncthing-mcp", + "--directory", "/path/to/syncthing-blade-mcp", "run", "python", "-m", "syncthing_mcp" ], "env": { @@ -230,7 +230,7 @@ Open the Syncthing web UI → Actions → Settings → API Key. ### Streamable HTTP (direct) ```bash -MCP_TRANSPORT=streamable-http MCP_AUTH_TOKEN=secret MCP_PORT=8000 syncthing-mcp +MCP_TRANSPORT=streamable-http MCP_AUTH_TOKEN=secret MCP_PORT=8000 syncthing-blade-mcp ``` ### Docker + Traefik (HTTPS with ACME/Let's Encrypt) @@ -241,7 +241,7 @@ docker compose up -d ``` This deploys behind Traefik with automatic Let's Encrypt TLS certificates. -The MCP endpoint is available at `https://syncthing-mcp./mcp`. +The MCP endpoint is available at `https://syncthing-blade-mcp./mcp`. ### Docker + Cloudflare Tunnel (zero-trust, no open ports) @@ -251,7 +251,7 @@ docker compose -f docker-compose.tunnel.yml up -d ``` Create a tunnel at [Cloudflare Zero Trust](https://one.dash.cloudflare.com) → Networks → Tunnels. -Point the tunnel's public hostname to `http://syncthing-mcp:8000`. +Point the tunnel's public hostname to `http://syncthing-blade-mcp:8000`. Bearer token auth (`MCP_AUTH_TOKEN`) secures the endpoint; `/health` is unauthenticated for probes. ### Claude Code (remote HTTP) @@ -261,7 +261,7 @@ Bearer token auth (`MCP_AUTH_TOKEN`) secures the endpoint; `/health` is unauthen "mcpServers": { "syncthing": { "type": "streamable-http", - "url": "https://syncthing-mcp.example.com/mcp", + "url": "https://syncthing-blade-mcp.example.com/mcp", "headers": { "Authorization": "Bearer YOUR_MCP_AUTH_TOKEN" } diff --git a/deploy-local.sh b/deploy-local.sh index 511fa1c..08ba759 100755 --- a/deploy-local.sh +++ b/deploy-local.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -SERVER_NAME="syncthing-mcp" +SERVER_NAME="syncthing-blade-mcp" DEST="$HOME/.local/share/mcp-servers/$SERVER_NAME" # Clean deploy — wipe previous, copy fresh diff --git a/docker-compose.tunnel.yml b/docker-compose.tunnel.yml index cd0b6aa..57c329b 100644 --- a/docker-compose.tunnel.yml +++ b/docker-compose.tunnel.yml @@ -13,9 +13,9 @@ # The /health endpoint is unauthenticated for Cloudflare health probes. services: - syncthing-mcp: + syncthing-blade-mcp: build: . - container_name: syncthing-mcp + container_name: syncthing-blade-mcp restart: unless-stopped env_file: .env environment: @@ -29,7 +29,7 @@ services: cloudflared: image: cloudflare/cloudflared:latest - container_name: syncthing-mcp-tunnel + container_name: syncthing-blade-mcp-tunnel restart: unless-stopped command: tunnel run environment: @@ -37,7 +37,7 @@ services: networks: - tunnel depends_on: - - syncthing-mcp + - syncthing-blade-mcp networks: tunnel: diff --git a/docker-compose.yml b/docker-compose.yml index 8d13d22..8ba322d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,9 @@ # Copy .env.example to .env and fill in API keys before starting. services: - syncthing-mcp: + syncthing-blade-mcp: build: . - container_name: syncthing-mcp + container_name: syncthing-blade-mcp restart: unless-stopped env_file: .env environment: @@ -20,12 +20,12 @@ services: - traefik labels: traefik.enable: "true" - traefik.http.routers.syncthing-mcp.rule: Host(`syncthing-mcp.${DOMAIN:?set DOMAIN in .env}`) - traefik.http.routers.syncthing-mcp.entrypoints: websecure - traefik.http.routers.syncthing-mcp.tls.certresolver: letsencrypt - traefik.http.services.syncthing-mcp.loadbalancer.server.port: "8000" - traefik.http.services.syncthing-mcp.loadbalancer.healthcheck.path: /health - traefik.http.services.syncthing-mcp.loadbalancer.healthcheck.interval: 30s + traefik.http.routers.syncthing-blade-mcp.rule: Host(`syncthing-blade-mcp.${DOMAIN:?set DOMAIN in .env}`) + traefik.http.routers.syncthing-blade-mcp.entrypoints: websecure + traefik.http.routers.syncthing-blade-mcp.tls.certresolver: letsencrypt + traefik.http.services.syncthing-blade-mcp.loadbalancer.server.port: "8000" + traefik.http.services.syncthing-blade-mcp.loadbalancer.healthcheck.path: /health + traefik.http.services.syncthing-blade-mcp.loadbalancer.healthcheck.interval: 30s networks: traefik: diff --git a/pyproject.toml b/pyproject.toml index 96d5719..b936038 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "syncthing-mcp" +name = "syncthing-blade-mcp" version = "0.3.0" description = "MCP server for Syncthing — token-efficient replication management, multi-instance, safe disk-space reclamation." requires-python = ">=3.11" @@ -12,7 +12,7 @@ dependencies = [ ] [project.scripts] -syncthing-mcp = "syncthing_mcp.__main__:main" +syncthing-blade-mcp = "syncthing_mcp.__main__:main" [dependency-groups] dev = [ diff --git a/src/syncthing_mcp/__main__.py b/src/syncthing_mcp/__main__.py index 7b9cc97..cf67c7f 100644 --- a/src/syncthing_mcp/__main__.py +++ b/src/syncthing_mcp/__main__.py @@ -1,4 +1,4 @@ -"""Entry point for `python -m syncthing_mcp` and the `syncthing-mcp` console script.""" +"""Entry point for `python -m syncthing_mcp` and the `syncthing-blade-mcp` console script.""" import os import sys diff --git a/uv.lock b/uv.lock index 9aae172..1d5d5c0 100644 --- a/uv.lock +++ b/uv.lock @@ -769,7 +769,7 @@ wheels = [ ] [[package]] -name = "syncthing-mcp" +name = "syncthing-blade-mcp" version = "0.3.0" source = { editable = "." } dependencies = [