diff --git a/deploy-local.sh b/deploy-local.sh index d6781a9..e382483 100644 --- a/deploy-local.sh +++ b/deploy-local.sh @@ -1,6 +1,22 @@ #!/usr/bin/env bash -# deploy-local.sh -DEST="$HOME/.local/share/mcp-servers/syncthing-mcp" +set -euo pipefail + +SERVER_NAME="syncthing-mcp" +DEST="$HOME/.local/share/mcp-servers/$SERVER_NAME" + +# Clean deploy — wipe previous, copy fresh mkdir -p "$DEST" -rsync -a --delete --exclude '.git' --exclude '.venv' --exclude '__pycache__' . "$DEST/" -cd "$DEST" && uv sync --quiet \ No newline at end of file +rsync -a --delete \ + --exclude '.git' \ + --exclude '.venv' \ + --exclude '__pycache__' \ + --exclude '*.pyc' \ + --exclude '.DS_Store' \ + . "$DEST/" + +# Install/update deps in the runtime location +cd "$DEST" +uv sync --quiet + +echo "✅ Deployed $SERVER_NAME to $DEST" +echo " Restart Claude Desktop to pick up changes." \ No newline at end of file